EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Event to display data from database

Posted: 05/07/2007 15:09:27
by Reinhard Eidelsburger (Basic support level)
Joined: 03/19/2007
Posts: 8


I test with CallbackFileSystem BETA 2 and VB.NET.

What is the right event to display data in a virtual-disk, when I dread data from a database?
At the moment I use CbFsEnumerateDirectory. When I use this event I point to a empty directory, which I can't use for my database.

How can I mount da database and display all data from e.g. an array?

Posted: 05/08/2007 04:28:06
by Eugene Mayevski (Team)

Frankly speaking, I don't understand your question. It's your (as a developer) job to decide, how to represent the database as a file system.

Sincerely yours
Eugene Mayevski
Posted: 05/08/2007 11:09:26
by Reinhard Eidelsburger (Basic support level)
Joined: 03/19/2007
Posts: 8


ok I should explain my problem a bit more :)

I want to integrate data from a database with CallbackFileSystem in a virtual-harddisk. I have in my program some data in an array (dataset, tableobject or whatelese...).

I will now display for example 10 rows of a table as files. The 10 rows have an unique id and should displayed so: 000001.txt, 000002.txt, 000002.txt and so on.

What event I can use for displaying my data? At the moment I use CbFsEnumerateDirctory. I use the event so:

Private Sub CbFsEnumerateDirectory( _
ByVal sender As CallbackFileSystem, _
ByVal DirectoryInfo As CbFsFileInfo, _
ByRef EnumerationContext As IntPtr, _
ByVal Mask As String, _
ByVal Index As Integer, _
ByVal Restart As Boolean, _
ByRef FileFound As Boolean, _
ByRef FileName As String, _
ByRef CreationTime As DateTime, _
ByRef LastAccessTime As DateTime, _
ByRef LastWriteTime As DateTime, _
ByRef EndOfFile As Long, _
ByRef AllocationSize As Long, _
ByRef FileAttributes As UInteger _

When I get the data from a database, I'll have no mRootPath to a directory.

Is there an example who I can display such data in CallbackFileSystem (without an physical directory)?

I hope this explains my problem.

Thanks for your help,
Reinhard Eidelsburger
Posted: 05/09/2007 03:21:44
by Eugene Mayevski (Team)

After you create a storage, you add one or more mounting points. In all cases those mounting points are seen by the operating system as a disk with it's own root directory.
CBFS will call OnEnumerateDirectory to get the contents of this directory. You can report your records as files in the root directory.

Sincerely yours
Eugene Mayevski



Topic viewed 11668 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!