G
Guest
I'm trying to register/unregister a COM DLL from the C# code, basically to
emulate Regsvr32.exe. Using P/Invoke I call LoadLibrary for the DLL and when
that succeeds I call GetProcAddress with the second parameter
"DllRegisterServer". So now I have an address to exported function. However I
can't find a way to call this function from C#. I tried to use unsafe code to
declare a pointer to a function which would not even compile. I played with
delegates with not results. Thanks for any ideas. Kris.
emulate Regsvr32.exe. Using P/Invoke I call LoadLibrary for the DLL and when
that succeeds I call GetProcAddress with the second parameter
"DllRegisterServer". So now I have an address to exported function. However I
can't find a way to call this function from C#. I tried to use unsafe code to
declare a pointer to a function which would not even compile. I played with
delegates with not results. Thanks for any ideas. Kris.