Click here to Skip to main content
15,893,904 members
Home / Discussions / C#
   

C#

 
GeneralRe: Two dimensional strongly typed collection Pin
benjymous23-Nov-04 21:54
benjymous23-Nov-04 21:54 
GeneralCalling constructors Pin
pjholliday23-Nov-04 2:57
pjholliday23-Nov-04 2:57 
GeneralRe: Calling constructors Pin
S. Senthil Kumar23-Nov-04 3:12
S. Senthil Kumar23-Nov-04 3:12 
GeneralRe: Calling constructors Pin
Heath Stewart23-Nov-04 6:06
protectorHeath Stewart23-Nov-04 6:06 
GeneralRe: Calling constructors Pin
Daniel Turini23-Nov-04 8:05
Daniel Turini23-Nov-04 8:05 
GeneralPersist ListViewItem backColor when using HideSelection= false Pin
the last free name23-Nov-04 0:05
the last free name23-Nov-04 0:05 
GeneralRe: Persist ListViewItem backColor when using HideSelection= false Pin
mhmoud rawas23-Nov-04 1:37
mhmoud rawas23-Nov-04 1:37 
GeneralCalling C# functions from a DLL from within unmanaged C++ Pin
Uwe Keim22-Nov-04 22:18
sitebuilderUwe Keim22-Nov-04 22:18 
This is a question for Heath [^], I guess Smile | :)

I want to write a managed C# DLL and call functions/classes from a unmanaged C++ application.

I could write a COM component in C#, register it and then #import it in the unmanaged C++ application to generate wrappers.

But: I want to avoid having the need to register the C# COM component, since the C# DLL and the unmanaged C++ application both are located inside the same folder and there is no need for other applications to access the COM component.

What I already tried (results in error C1083 [^]) was to <a href="http://msdn.microsoft.com/library/en-us/vclang/html/_predir_The_.23.import_Directive.asp">#import</a> [<a href="http://msdn.microsoft.com/library/en-us/vclang/html/_predir_The_.23.import_Directive.asp" target="_blank" title="New Window">^</a>] the C# COM DLL by referencing the complete DLL via
#import "C:\Test\MyCSharpClassLib.dll"
, but witthout success.

Also, I looked at the way this example does it: www.perfectxml.com/articles/msxml/TipsAugust02.asp [^], but that didn't help me either.

Question: Is it possible for me to call a C# COM-component from unmanaged C++, without registering it?

Thanks
Uwe

--
Affordable Windows-based CMS: www.zeta-producer.de/enu


GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
mhmoud rawas23-Nov-04 1:47
mhmoud rawas23-Nov-04 1:47 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Mike Dimmick23-Nov-04 2:20
Mike Dimmick23-Nov-04 2:20 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Uwe Keim23-Nov-04 19:29
sitebuilderUwe Keim23-Nov-04 19:29 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Nick Parker23-Nov-04 4:57
protectorNick Parker23-Nov-04 4:57 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Uwe Keim23-Nov-04 5:02
sitebuilderUwe Keim23-Nov-04 5:02 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Heath Stewart23-Nov-04 5:58
protectorHeath Stewart23-Nov-04 5:58 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Uwe Keim23-Nov-04 6:11
sitebuilderUwe Keim23-Nov-04 6:11 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Nick Parker23-Nov-04 7:22
protectorNick Parker23-Nov-04 7:22 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Uwe Keim23-Nov-04 7:34
sitebuilderUwe Keim23-Nov-04 7:34 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Nick Parker23-Nov-04 8:02
protectorNick Parker23-Nov-04 8:02 
GeneralRe: Calling C# functions from a DLL from within unmanaged C++ Pin
Heath Stewart23-Nov-04 8:40
protectorHeath Stewart23-Nov-04 8:40 
GeneralDrawing &amp; Scaling Pin
Prof AKA22-Nov-04 21:37
Prof AKA22-Nov-04 21:37 
GeneralRe: Drawing &amp; Scaling Pin
Gary Thom23-Nov-04 3:17
Gary Thom23-Nov-04 3:17 
GeneralGet the command line parameters of an external process. Pin
Matt Philmon22-Nov-04 19:42
Matt Philmon22-Nov-04 19:42 
GeneralRe: Get the command line parameters of an external process. Pin
Guinness4Strength9-Sep-06 6:53
Guinness4Strength9-Sep-06 6:53 
GeneralRe: Get the command line parameters of an external process. Pin
Matt Philmon9-Sep-06 9:51
Matt Philmon9-Sep-06 9:51 
QuestionDatagrid? Pin
murali_utr22-Nov-04 19:08
murali_utr22-Nov-04 19:08 

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.