Hi,
I have a com dll where the source code is the same for both it's 32 bit build and it's 64 bit build.
I found an instance where it is necessary to deploy both the x86 and x64 versions on customer boxes but need the GUIDS of the x86 and x64 versions to be obviously different.
Right now I am attempting at build time to "adjust" the GUIDs on the fly, but this is not working.
I am running a command line build script to rebuild and package it all.
Here is what I am doing that does not work (Always evaluates to WIN32). Perhaps because I am
building it using a WIN32 box.
What I need is a preproccesor directive that can detect that I am BUILDING an x64 dll
and choose the GUID I have "assigned" to the x64 dll. Or that I am BUIDLING an x86 dll
and choose that GUID.
I have read about conditional compilation symbols but I am running VS2008 and can't find that in there to even test it.
#ifdef WIN64
const GUID CLSID_BCRSlave = { 0x617a3262, 0x19a3, 0x44b4, { 0xae, 0x38, 0xd2, 0x51, 0xe2, 0x63, 0x02, 0x64 } };
#endif
#ifdef WIN32
const GUID CLSID_BCRSlave = { 0x617a3262, 0x19a3, 0x44b4, { 0xae, 0x38, 0xd2, 0x51, 0xe2, 0x63, 0x02, 0x32 } };
#endif
Thanks a bunch to anyone that can help.
Beta tester awaits.
:Ron