Click here to Skip to main content
15,890,717 members
Home / Discussions / COM
   

COM

 
AnswerRe: IPictureDisp to byte array Pin
Stephen Hewitt20-Aug-09 3:52
Stephen Hewitt20-Aug-09 3:52 
AnswerRe: IPictureDisp to byte array Pin
Vi220-Aug-09 21:00
Vi220-Aug-09 21:00 
GeneralRe: IPictureDisp to byte array Pin
Stephen Hewitt23-Aug-09 4:37
Stephen Hewitt23-Aug-09 4:37 
QuestionForwarding Error Description through CComCoClass::Error crashs my app Pin
Don Rolando18-Aug-09 11:02
Don Rolando18-Aug-09 11:02 
AnswerRe: Forwarding Error Description through CComCoClass::Error crashs my app Pin
Don Rolando19-Aug-09 6:47
Don Rolando19-Aug-09 6:47 
QuestionHow can I add c# user control to c++ ATL? Pin
oleg fadi18-Aug-09 11:01
oleg fadi18-Aug-09 11:01 
AnswerRe: How can I add c# user control to c++ ATL? Pin
Don Rolando19-Aug-09 6:52
Don Rolando19-Aug-09 6:52 
QuestionConvert System.__ComObject to a class Pin
DeepToot17-Aug-09 9:35
DeepToot17-Aug-09 9:35 
I am having problems converting a System.__ComObject to a serialized class.

I am running two separate applications, both C#.

App #1 is a winform with a ListView.
App #2 is a C# extension inside another application. The extension is a winform.

I am dragging a ListViewItem onto the extension on App #2.

In App #1 I am looking at the ListView_ItemDrag event

I have two serialized classes - DragClass() and Transport() {from examples I found on net}

DragClass holds the ListViewItem name and also the actual ListViewItem
Transport is a collection class that holds the DragClass

Inside this event I am creating a new instance of DragClass and populating it
Create a new instance of Transport and populate that.

I then call DoDragDrop passing in the Transport as parameter.

On App #2 - In DragDrop event the e.Data returns System.__ComObject

I am using this code to try and cast it:

Transport trans = e.Data.GetData(typeof(Transport)) as Transport;

Transport class is a serialized class on App #2 as well.

is this proper way of doing this? I seem to keep getting null back with error Cannot cast System.__ComObject to System.Type.


Any suggestions?

Thanks
AnswerRe: Convert System.__ComObject to a class Pin
Adam Maras17-Aug-09 10:25
Adam Maras17-Aug-09 10:25 
GeneralRe: Convert System.__ComObject to a class Pin
DeepToot17-Aug-09 10:34
DeepToot17-Aug-09 10:34 
GeneralRe: Convert System.__ComObject to a class Pin
warale00121-Oct-09 1:30
warale00121-Oct-09 1:30 
QuestionHolding a WMI provider instance Pin
srikanthos16-Aug-09 21:38
srikanthos16-Aug-09 21:38 
Questiondraw Visualization in custom directshow [modified] Pin
raj157616-Aug-09 19:43
raj157616-Aug-09 19:43 
QuestionMODI Microsoft Document Image Viewer 11 and 12 Pin Pin
JollyMansArt15-Aug-09 4:35
JollyMansArt15-Aug-09 4:35 
QuestionHow can I disable a KillBit for a special CLSID in a secure environment? Pin
ieaeitsch11-Aug-09 5:31
ieaeitsch11-Aug-09 5:31 
QuestionHow to set Caption and ToolTip to Toolbar button Pin
am 200910-Aug-09 22:47
am 200910-Aug-09 22:47 
QuestionQuestion about VARIANT deallocation Pin
GuimaSun10-Aug-09 4:53
GuimaSun10-Aug-09 4:53 
AnswerRe: Question about VARIANT deallocation Pin
Hristo-Bojilov10-Aug-09 6:12
Hristo-Bojilov10-Aug-09 6:12 
GeneralRe: Question about VARIANT deallocation Pin
GuimaSun10-Aug-09 6:27
GuimaSun10-Aug-09 6:27 
GeneralRe: Question about VARIANT deallocation Pin
Hristo-Bojilov10-Aug-09 6:45
Hristo-Bojilov10-Aug-09 6:45 
GeneralRe: Question about VARIANT deallocation Pin
GuimaSun10-Aug-09 7:08
GuimaSun10-Aug-09 7:08 
AnswerRe: Question about VARIANT deallocation Pin
Stuart Dootson10-Aug-09 8:21
professionalStuart Dootson10-Aug-09 8:21 
GeneralRe: Question about VARIANT deallocation Pin
GuimaSun10-Aug-09 8:43
GuimaSun10-Aug-09 8:43 
AnswerRe: Question about VARIANT deallocation Pin
Vi210-Aug-09 22:01
Vi210-Aug-09 22:01 
GeneralRe: Question about VARIANT deallocation Pin
GuimaSun12-Aug-09 4:12
GuimaSun12-Aug-09 4:12 

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.