Click here to Skip to main content
15,889,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hiii everyone...
I have created a dll application in vs2010 using c++, when i change the property viz General->character set ->using multibyte character set.. the 3Dlook of the dialog based application using the dll disappears..
I have tried simple application which uses same properties but it retains the 3D look..
Please helpmefor the same ie how do i maintain 3d apperance of my dialog with general property set to using multibyte character set...
Thank you in advance
Posted

1 solution

At the bottom of stdafx.h, there are some wizzard generated lines. They begin with:

#ifdef _UNICODE
#endif

The line that make the controls "3D":

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")


They contain Windows common controls manifiest.
Remove the first ifdef (unicode) and the last endif.

The common controls manifiest work ok for both unicode and multibyte (at least I had never had a problem).

Hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900