Click here to Skip to main content
16,006,006 members
Home / Discussions / C#
   

C#

 
GeneralRe: Private/Public Pin
Edbert P1-Jun-04 17:34
Edbert P1-Jun-04 17:34 
GeneralRe: Private/Public Pin
Heath Stewart2-Jun-04 3:09
protectorHeath Stewart2-Jun-04 3:09 
GeneralDocking a Windows Form Pin
MeterMan1-Jun-04 13:43
MeterMan1-Jun-04 13:43 
GeneralRe: Docking a Windows Form Pin
Heath Stewart2-Jun-04 3:06
protectorHeath Stewart2-Jun-04 3:06 
GeneralFastest way to convert from/to byte array Pin
Werdna1-Jun-04 13:43
Werdna1-Jun-04 13:43 
GeneralRe: Fastest way to convert from/to byte array Pin
Heath Stewart2-Jun-04 3:04
protectorHeath Stewart2-Jun-04 3:04 
GeneralPassing managed object through clipboard Pin
rkvs1-Jun-04 10:35
rkvs1-Jun-04 10:35 
GeneralRe: Passing managed object through clipboard Pin
Heath Stewart1-Jun-04 11:16
protectorHeath Stewart1-Jun-04 11:16 
This gets into marshaling. You can't just send a managed object through the clipboard (unless you exposed it as a CCW, or COM-Callable Wrapper) and used the interface re-declared (with the necessary GUID, or IID) in unmanaged code. The easiest way is to marshal the object so that it has a well-known representation, whether thats the fields packed into a byte[] array or whatever. You can also use the Marshal class to assist with this.

Those are really the only two ways to do this and marshaling would probably be the best way since it doesn't rely on COM and exposing your object (and all child objects that you must access) as CCWs.

Marshaling also means you can drag and drop your managed object to something that doesn't provide COM programming but instead abstracts drag and drop and provides you the data. With a well-known structure, you can marshal the data back to a representative object. One example would be a scripting language like JScript or VBScript. While you could expose your object as a automation-compatible (i.e., IDispatch implementation) CCW, this requires some knowledge of automation types and automation itself.

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Remoting with Events Pin
Wouter Van Ranst1-Jun-04 10:20
Wouter Van Ranst1-Jun-04 10:20 
GeneralCustom Control Pin
rags1-Jun-04 9:33
rags1-Jun-04 9:33 
GeneralRe: Custom Control Pin
Heath Stewart1-Jun-04 9:57
protectorHeath Stewart1-Jun-04 9:57 
GeneralRe: Custom Control Pin
rags1-Jun-04 10:41
rags1-Jun-04 10:41 
GeneralRe: Custom Control Pin
Heath Stewart1-Jun-04 11:05
protectorHeath Stewart1-Jun-04 11:05 
GeneralRe: Custom Control Pin
rags1-Jun-04 11:15
rags1-Jun-04 11:15 
GeneralRe: Custom Control Pin
Heath Stewart1-Jun-04 11:18
protectorHeath Stewart1-Jun-04 11:18 
GeneralRe: Custom Control Pin
Wackatronic1-Jun-04 9:57
Wackatronic1-Jun-04 9:57 
GeneralRe: Custom Control Pin
rags1-Jun-04 10:43
rags1-Jun-04 10:43 
GeneralLZW compression using C# Pin
Bettie1-Jun-04 9:08
Bettie1-Jun-04 9:08 
GeneralRe: LZW compression using C# Pin
Heath Stewart1-Jun-04 9:11
protectorHeath Stewart1-Jun-04 9:11 
GeneralRe: LZW compression using C# Pin
flipdoubt1-Jun-04 10:50
flipdoubt1-Jun-04 10:50 
GeneralRe: LZW compression using C# Pin
Heath Stewart1-Jun-04 11:07
protectorHeath Stewart1-Jun-04 11:07 
GeneralRe: LZW compression using C# Pin
flipdoubt1-Jun-04 11:09
flipdoubt1-Jun-04 11:09 
GeneralRe: LZW compression using C# Pin
Heath Stewart1-Jun-04 11:13
protectorHeath Stewart1-Jun-04 11:13 
GeneralRe: LZW compression using C# Pin
flipdoubt1-Jun-04 11:31
flipdoubt1-Jun-04 11:31 
GeneralIFormatProvider on DataGridTextColumn Pin
Anfernius1-Jun-04 8:46
Anfernius1-Jun-04 8:46 

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.