Loading native COM libraries in a 64-bit environment

I have 32-bit / 64-bit COM DLLs in C ++: mycom32.dll, mycom64.dll. Both of them are exactly the same , but mycom32.dll is compiled for 32-bit, and mycom64.dll is compiled for 64-bit. This means that the BOTH DLLs have the same UUID and the same CLSID!

Now, sometimes I want to use this COM from 32-bit processes, and sometimes I want to use this COM from 64-bit processes.

Is it possible to load the desired DLL without creating two different CLSIDs and check at runtime if the process is 32bit / 64bit?

+5
source share
1 answer

; , " " .

, .

+5

All Articles