Click here to Skip to main content
15,892,253 members
Home / Discussions / C#
   

C#

 
GeneralLoading assemblies Pin
Craig G. Wilson19-Mar-04 4:55
Craig G. Wilson19-Mar-04 4:55 
GeneralRe: Loading assemblies Pin
Heath Stewart19-Mar-04 5:56
protectorHeath Stewart19-Mar-04 5:56 
GeneralRe: Loading assemblies Pin
Craig G. Wilson19-Mar-04 8:03
Craig G. Wilson19-Mar-04 8:03 
GeneralRe: Loading assemblies Pin
Craig G. Wilson19-Mar-04 8:34
Craig G. Wilson19-Mar-04 8:34 
GeneralRe: Loading assemblies Pin
Heath Stewart21-Mar-04 12:36
protectorHeath Stewart21-Mar-04 12:36 
Generalcombobox databinding from webservice in mobile application Pin
Littlefool19-Mar-04 2:43
Littlefool19-Mar-04 2:43 
GeneralCreating virtual File Item in C# Pin
Tristan Rhodes19-Mar-04 2:17
Tristan Rhodes19-Mar-04 2:17 
GeneralRe: Creating virtual File Item in C# Pin
Heath Stewart19-Mar-04 4:34
protectorHeath Stewart19-Mar-04 4:34 
You're answer lies in the documentation for the TYMED data type, which is used in the FORMATETC and STGMEDIUM structures which I mentioned to you months ago when you started this venture. You're only three real options besides creating a physical file to hold the file contents is to lock the file contenxt in global memory (bad for large files), or implement IStream or IStorage to pull the file data when requested.

Say you use an IStream (TYMED_ISTREAM) implementation to "store" your file contents. This is independent of the clipboard format (for which you could still use the CF_HDROP clipboard format). When a drop target says, "hey, I can take a file to be moved or copied", it gets the storage type (TYMED) from the format info (FORMATETC) and gets a pointer to that from the storage medium information (STGMEDIUM). So long as it understands the storage type (which things usually do), it starts making requests on your IStream implementation, which is where you start feeding it information about your file.

That's about as "virtual" as you're going to get, unless you want to go to the practically impossible task of creating a block device in Windows (easy in *nix, NOT easy in Windows).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Creating virtual File Item in C# Pin
Tristan Rhodes19-Mar-04 6:04
Tristan Rhodes19-Mar-04 6:04 
GeneralRe: Creating virtual File Item in C# Pin
Heath Stewart19-Mar-04 6:19
protectorHeath Stewart19-Mar-04 6:19 
GeneralRe: Creating virtual File Item in C# Pin
Tristan Rhodes19-Mar-04 8:15
Tristan Rhodes19-Mar-04 8:15 
GeneralRe: Creating virtual File Item in C# Pin
Heath Stewart21-Mar-04 12:43
protectorHeath Stewart21-Mar-04 12:43 
GeneralVS .Net Pin
ppp00118-Mar-04 23:05
ppp00118-Mar-04 23:05 
GeneralRe: VS .Net Pin
Mazdak18-Mar-04 23:20
Mazdak18-Mar-04 23:20 
GeneralRe: VS .Net Pin
Rhys__66618-Mar-04 23:31
Rhys__66618-Mar-04 23:31 
GeneralRe: VS .Net Pin
Mazdak19-Mar-04 9:37
Mazdak19-Mar-04 9:37 
GeneralRe: VS .Net Pin
Heath Stewart19-Mar-04 4:22
protectorHeath Stewart19-Mar-04 4:22 
GeneralRe: VS .Net Pin
profoundwhispers19-Mar-04 5:45
profoundwhispers19-Mar-04 5:45 
GeneralRe: VS .Net Pin
Heath Stewart19-Mar-04 6:22
protectorHeath Stewart19-Mar-04 6:22 
GeneralRe: VS .Net Pin
profoundwhispers20-Mar-04 22:41
profoundwhispers20-Mar-04 22:41 
GeneralRe: VS .Net Pin
Heath Stewart21-Mar-04 12:57
protectorHeath Stewart21-Mar-04 12:57 
GeneralRe: VS .Net Pin
profoundwhispers20-Mar-04 22:42
profoundwhispers20-Mar-04 22:42 
GeneralCOM Scriptlet Access from CSharp Pin
Davy Mitchell18-Mar-04 23:01
Davy Mitchell18-Mar-04 23:01 
GeneralRe: COM Scriptlet Access from CSharp Pin
Heath Stewart19-Mar-04 4:19
protectorHeath Stewart19-Mar-04 4:19 
GeneralRe: COM Scriptlet Access from CSharp Pin
Davy Mitchell19-Mar-04 8:01
Davy Mitchell19-Mar-04 8:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.