Click here to Skip to main content
16,004,833 members
Home / Discussions / COM
   

COM

 
GeneralRe: problem in CoCreateInstance() Pin
biswaranjan_rath7-Dec-04 17:27
biswaranjan_rath7-Dec-04 17:27 
GeneralRe: problem in CoCreateInstance() Pin
ThatsAlok7-Dec-04 17:58
ThatsAlok7-Dec-04 17:58 
GeneralCOM programming Pin
Andy Hunter6-Dec-04 6:08
Andy Hunter6-Dec-04 6:08 
GeneralRe: COM programming Pin
User 2155978-Dec-04 4:17
User 2155978-Dec-04 4:17 
GeneralRe: COM programming Pin
Andy Hunter8-Dec-04 10:11
Andy Hunter8-Dec-04 10:11 
QuestionHow to change name of coclass ? Pin
arun14056-Dec-04 2:02
arun14056-Dec-04 2:02 
GeneralAdding Button to Outlook Message Window Pin
lukevandiest3-Dec-04 9:50
lukevandiest3-Dec-04 9:50 
GeneralPassing string array pointer from managed code to unmanaged .COM Pin
Member 8391433-Dec-04 1:04
Member 8391433-Dec-04 1:04 
The GnucDNA is a component for building P2P applications. It is written in C++. Examples of how to call it from VB.NET and C#.NET can be seen at http://www.gnucleus.com/GnucDNA/docs/examples.html. Works fine for most methods in GnucDNA, but one crucial call to a method called SetSharedDirs is not shown in the examples, and for a good reason: It does not work, it requires the argument to be passed as a string array pointer.

Looks like Microsoft is trying to explain something about how to do it by marshalling at http://samples.gotdotnet.com/quickstart/howto/doc/Interop/StringMarshal.aspx. Also, seem like using unmanaged code in C# by declaring keyword “unsafe” and statement “fixed” may hold a key, but how?

The C++ - method in the .COM can be seen at http://cvs.sourceforge.net/viewcvs.py/gnucleus/GnucDNAR2/ComShare.cpp?sortby=date&view=markup, and looks like so:
void CComShare::SetSharedDirs(VARIANT* pDirPaths)

Anybody able to come up with a call from VB.NET or C#.NET that does not produce a type mismatch – error?

GeneralVBA method calling from an Object type Pin
RChin3-Dec-04 0:28
RChin3-Dec-04 0:28 
GeneralRe: VBA method calling from an Object type Pin
RChin3-Dec-04 0:40
RChin3-Dec-04 0:40 
GeneralRe: VBA method calling from an Object type Pin
Vi26-Dec-04 3:07
Vi26-Dec-04 3:07 
GeneralRe: VBA method calling from an Object type Pin
RChin7-Dec-04 1:14
RChin7-Dec-04 1:14 
GeneralSAFEARRAY(IDispatch*) problem in matlab Pin
tpndtbk2-Dec-04 5:43
tpndtbk2-Dec-04 5:43 
GeneralRe: SAFEARRAY(IDispatch*) problem in matlab Pin
Anonymous3-Dec-04 0:05
Anonymous3-Dec-04 0:05 
GeneralRe: SAFEARRAY(IDispatch*) problem in matlab Pin
tpndtbk3-Dec-04 2:33
tpndtbk3-Dec-04 2:33 
GeneralExporting Outlook Mailboxes programmatically Pin
Kri52-Dec-04 4:59
Kri52-Dec-04 4:59 
GeneralRe: Exporting Outlook Mailboxes programmatically Pin
perlmunger3-Dec-04 5:05
perlmunger3-Dec-04 5:05 
GeneralSystem.Runtime.InteropServices.SEHException Error Pin
vinesh kara1-Dec-04 20:28
vinesh kara1-Dec-04 20:28 
GeneralATL support to existing MFC application Pin
Ro_land1-Dec-04 19:21
Ro_land1-Dec-04 19:21 
GeneralRe: ATL support to existing MFC application Pin
FearlessBurner2-Dec-04 0:04
FearlessBurner2-Dec-04 0:04 
GeneralRe: ATL support to existing MFC application Pin
FearlessBurner2-Dec-04 2:30
FearlessBurner2-Dec-04 2:30 
GeneralRe: ATL support to existing MFC application Pin
Ro_land2-Dec-04 4:16
Ro_land2-Dec-04 4:16 
GeneralRe: ATL support to existing MFC application : END OF THREAD --> SOLUTION Pin
Ro_land2-Dec-04 11:49
Ro_land2-Dec-04 11:49 
GeneralRe: ATL support to existing MFC application : END OF THREAD --> SOLUTION Pin
FearlessBurner2-Dec-04 23:48
FearlessBurner2-Dec-04 23:48 
GeneralCOM+ Transaction Lifetime Pin
ProffK1-Dec-04 18:55
ProffK1-Dec-04 18:55 

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.