Click here to Skip to main content
15,910,661 members
Home / Discussions / C#
   

C#

 
GeneralGet Folder Attributes Pin
Daniel Negron14-Dec-03 14:57
Daniel Negron14-Dec-03 14:57 
GeneralRe: Get Folder Attributes Pin
Rampas Tomas14-Dec-03 20:57
Rampas Tomas14-Dec-03 20:57 
GeneralHelp Regarding Image Transfer Pin
Ali Gohar14-Dec-03 9:24
sussAli Gohar14-Dec-03 9:24 
GeneralRe: Help Regarding Image Transfer Pin
Heath Stewart15-Dec-03 4:18
protectorHeath Stewart15-Dec-03 4:18 
GeneralHeath - Further External Drag Drop Questions Pin
Tristan Rhodes14-Dec-03 6:42
Tristan Rhodes14-Dec-03 6:42 
GeneralRe: Heath - Further External Drag Drop Questions Pin
Nick Parker14-Dec-03 7:22
protectorNick Parker14-Dec-03 7:22 
GeneralRe: Heath - Further External Drag Drop Questions Pin
Tristan Rhodes14-Dec-03 12:10
Tristan Rhodes14-Dec-03 12:10 
GeneralRe: Heath - Further External Drag Drop Questions Pin
Heath Stewart15-Dec-03 4:13
protectorHeath Stewart15-Dec-03 4:13 
You don't need the source to any of the COM classes, and all the interfaces are defined either in IDL or header files. Rather than downloading and installing the Platform SDK (or, it can also be installed - and is by default - with VS.NET, though this is an older version but contains what you need), you can look at the definition for the IDataObject interface from MSDN. You'll need to create the interfaces and structs I mentioned in the previous thread.

You just need to create those interface in .NET, using the same signatures (marshaling when necessary). Several attributes - including StructLayoutAttribute and MarshalAsAttribute in the System.Runtime.InteropServices namespace can help you. If you know anything about IDL, you can also create an IDL file that contains forward declarations for the interfaces and struct you need. You compile that IDL file to a TLB (see the documentation for the midl.exe compiler, which is part of the Platform SDK), then use tlbimp.exe (part of the .NET SDK) to import the typelib to a .NET interop assembly. That'll save you from having to define the interfaces from scratch.

Implement COM's IDataObject in a class and pack your information in that. A decent understand of COM is practically necessary to accomplish this.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Heath - Further External Drag Drop Questions Pin
Tristan Rhodes15-Dec-03 6:59
Tristan Rhodes15-Dec-03 6:59 
GeneralRe: Heath - Further External Drag Drop Questions Pin
Heath Stewart15-Dec-03 8:27
protectorHeath Stewart15-Dec-03 8:27 
GeneralRe: Heath - Further External Drag Drop Questions Pin
Tristan Rhodes15-Dec-03 8:58
Tristan Rhodes15-Dec-03 8:58 
GeneralRe: Heath - Further External Drag Drop Questions Pin
Heath Stewart15-Dec-03 9:00
protectorHeath Stewart15-Dec-03 9:00 
GeneralRe: Heath - Further External Drag Drop Questions Pin
Tristan Rhodes15-Dec-03 10:15
Tristan Rhodes15-Dec-03 10:15 
GeneralRe: Heath - Further External Drag Drop Questions Pin
J. Dunlap15-Dec-03 11:11
J. Dunlap15-Dec-03 11:11 
GeneralNever mind... Pin
J. Dunlap15-Dec-03 11:14
J. Dunlap15-Dec-03 11:14 
GeneralRe: Never mind... Pin
Tristan Rhodes15-Dec-03 11:16
Tristan Rhodes15-Dec-03 11:16 
GeneralRe: Never mind... Pin
Tristan Rhodes15-Dec-03 11:33
Tristan Rhodes15-Dec-03 11:33 
GeneralRe: Never mind... Pin
J. Dunlap15-Dec-03 11:43
J. Dunlap15-Dec-03 11:43 
GeneralRe: Never mind... Pin
Tristan Rhodes15-Dec-03 11:52
Tristan Rhodes15-Dec-03 11:52 
GeneralRe: Never mind... Pin
J. Dunlap15-Dec-03 11:46
J. Dunlap15-Dec-03 11:46 
GeneralRe: Heath - Further External Drag Drop Questions Pin
Heath Stewart15-Dec-03 11:23
protectorHeath Stewart15-Dec-03 11:23 
GeneralNevermind 2 Pin
Heath Stewart15-Dec-03 11:25
protectorHeath Stewart15-Dec-03 11:25 
GeneralRe: Nevermind 2 Pin
15-Dec-03 11:41
suss15-Dec-03 11:41 
GeneralOutlookbar-style menu interface Pin
G_ULJEE14-Dec-03 0:25
G_ULJEE14-Dec-03 0:25 
GeneralRe: Outlookbar-style menu interface Pin
Nick Parker14-Dec-03 3:31
protectorNick Parker14-Dec-03 3:31 

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.