How to detect in MS CV 2008 code which properties are compiled now?
Posted on 2011-10-20
I’m programmer with 10+ years in business, but new to MS VC ++ 2008. And to his IDE, quite different no matter I come here from Vb6 ad C#. I have a follow question:
My project is ActiveX DLL and I should build Unicode and non Unicode version. I put settings in Properties page of the project – non Unicode under realese and Unicode under Unicode Release . Fine, but the problem comes with a function which have different name for Unicode and non Unicode. Here you the code - it not working but you will get a idea for what I talk about.
if (release==Unicode) // WHAT TO PUT HERE ???
HICON hIcon = AfxGetApp()->LoadIconW(IDI_ABOUTDLL); //- THIS IS UNICODE VERSION
HICON hIcon = AfxGetApp()->LoadIcon(IDI_ABOUTDLL); // THIS IS NON UNICODE VERSION
Other solution is to replace the function LoadIconW and LoadIcon with a function with equal name for Unicode and non unicode. Please help.