dvplayltd
asked on
How to detect in MS CV 2008 code which properties are compiled now?
Dear experts!
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
}
else
{
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.
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
}
else
{
HICON hIcon = AfxGetApp()->LoadIcon(IDI_
}
Other solution is to replace the function LoadIconW and LoadIcon with a function with equal name for Unicode and non unicode. Please help.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER