Click here to Skip to main content
15,899,679 members
Home / Discussions / C#
   

C#

 
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 
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 
All the IStream implementation (and it does have to be the actual COM IStream interface, or use the UCOMIStream interface in .NET) has to do is provide an implementation that gets the file bytes. The drop target doesn't care where they come from, as long as the object you pass it supports that interface. Your implementation could simply return the file contents in the IStream::Read method.

And yes, you still need to use the various COM interface for DnD because the similarily-named .NET interfaces don't expose what you need. IIRC, you can still use the managed DoDragDrop but you need to use the COM IDataObject interface.

Use .NET Reflector[^] or ildasm.exe (if you can read IL) to look at how Control.DoDragDrop works. It eventually uses the COM interfaces, otherwise it couldn't communicate with anything that is not a .NET application.

 

Microsoft MVP, Visual C#
My Articles
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 
GeneralRe: COM Scriptlet Access from CSharp Pin
Davy Mitchell21-Mar-04 22:22
Davy Mitchell21-Mar-04 22:22 
GeneralCustomizing http request headers Pin
gerdavax18-Mar-04 22:59
gerdavax18-Mar-04 22:59 

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.