Click here to Skip to main content
11,417,750 members (47,168 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C++ VS2010
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
good
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
#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.
  Permalink  

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

  Print Answers RSS
0 Sascha Lefévre 340
1 Abhinav S 339
2 OriginalGriff 315
3 Sergey Alexandrovich Kryukov 255
4 deepankarbhatnagar 121
0 Sergey Alexandrovich Kryukov 9,345
1 OriginalGriff 7,712
2 Maciej Los 3,758
3 Abhinav S 3,601
4 Sascha Lefévre 3,198


Advertise | Privacy | Mobile
Web03 | 2.8.150427.4 | 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