Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   load dll created in c# (http://www.go4expert.com/forums/load-dll-created-c-sharp-t16231/)

sercanparlak 17Feb2009 14:48

load dll created in c#
 
Hi,

i'm trying to include a c# dll in c code. i have created the tlb file , registered the dll but i couldn't load it. but i could load in c++. is there any way to achieve this or equivalent of below c++ code ? Thanks

******** C++ Code ********
#import "C:\ComServer.tlb"
IManagedInterface *cpi = NULL;
CoInitialize(NULL);
HRESULT hr = CoCreateInstance(CLSID_InterfaceImplementation,
NULL, CLSCTX_INPROC_SERVER,
IID_IManagedInterface, reinterpret_cast<void**>(&cpi));


All times are GMT +5.5. The time now is 09:34.