Click here to Skip to main content
11,924,800 members (58,145 online)
Rate this:
Please Sign up or sign in to vote.
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 10-Sep-12 20:11pm

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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

#ifdef _UNICODE

The line that make the controls "3D":

#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='' 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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.151125.3 | Last Updated 11 Sep 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100