i'm writing snap-in mmc3.0, should support both x64 , x86 platform, guid should different. in c++ know there macros _win32, can't find in c#. target let code looks
#ifdef _win32 [snapinsettings("x86_guid")] #else [snapinsettings("x64_guid")] #endif x86_guid , x64_guid should constant.
i have been looking around while, no answer.
you can create new solution / project platform 64-bit build , define different guid-s different platforms. you'll build 2 dll-s of mmc snap-in: 1 32-bit platforms , 1 64-bit platforms.
in build->configuration manager create new build platfom (for example x64) , go build in project properties define new symbol x64 build target. _win64. can leave platform target dropdown any cpu, make sure 64-bit mmc loads _win64 build version. (i'm not familiar how set mmc snap-ins don't know involves.)
once above configuration steps, can pretty duplicate c++ code in c# check build target:
#ifdef _win64 [snapinsettings("x64_guid")] #else [snapinsettings("x86_guid")] #endif the guid-s hardcoded strings they'd constants.
Comments
Post a Comment