Click here to Skip to main content
15,888,320 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can draw a Side bar like a CodeProject Left Sidebar? Pin
Richard MacCutchan28-May-10 3:06
mveRichard MacCutchan28-May-10 3:06 
GeneralRe: How can draw a Side bar like a CodeProject Left Sidebar? Pin
Le@rner28-May-10 18:09
Le@rner28-May-10 18:09 
GeneralRe: How can draw a Side bar like a CodeProject Left Sidebar? Pin
Richard MacCutchan28-May-10 22:14
mveRichard MacCutchan28-May-10 22:14 
QuestionHow do i check whether a window is opened or not Win 32 Pin
arun_pk28-May-10 2:21
arun_pk28-May-10 2:21 
AnswerRe: How do i check whether a window is opened or not Win 32 Pin
Aescleal28-May-10 2:30
Aescleal28-May-10 2:30 
AnswerRe: How do i check whether a window is opened or not Win 32 Pin
Emilio Garavaglia28-May-10 2:50
Emilio Garavaglia28-May-10 2:50 
QuestionProblem with manifest file Pin
sashoalm28-May-10 1:55
sashoalm28-May-10 1:55 
AnswerRe: Problem with manifest file Pin
sashoalm28-May-10 3:31
sashoalm28-May-10 3:31 
WTF?! Why does the New Project Wizard add the #ifdef _UNICODE...#endif
#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif

in the code that adds the XP style buttons.

This code was created by the wizard, no changes from me. It basically means "I'll create a manifest for you unless your program is ANSI, in which case f**k you". When I removed the #ifdef everything worked without problems. The only purpose for putting it seems to be to make me waste an hour wondering why I don't have visual styles, and creating 2 projects one with manifest one without, and comparing them with WinMerge, before noticing this little insidious #ifdef. And I'm sure there are people who don't know about the whole manifest thing, they'd be stuck with ugly controls if they make an ANSI project. I've made my project ANSI from the beginning since I had to add a lot of code that won't compile if it's unicode.
There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

GeneralRe: Problem with manifest file Pin
Randor 28-May-10 4:04
professional Randor 28-May-10 4:04 
QuestionHow to find a file is already opened or not? Pin
Paulraj G27-May-10 23:37
Paulraj G27-May-10 23:37 
AnswerRe: How to find a file is already opened or not? Pin
Aescleal28-May-10 0:07
Aescleal28-May-10 0:07 
AnswerRe: How to find a file is already opened or not? Pin
Richard MacCutchan28-May-10 3:01
mveRichard MacCutchan28-May-10 3:01 
AnswerRe: How to find a file is already opened or not? Pin
Randor 28-May-10 4:07
professional Randor 28-May-10 4:07 
GeneralRe: How to find a file is already opened or not? Pin
Aescleal28-May-10 4:21
Aescleal28-May-10 4:21 
AnswerRe: How to find a file is already opened or not? Pin
ThatsAlok30-May-10 20:53
ThatsAlok30-May-10 20:53 
AnswerRe: How to find a file is already opened or not? Pin
rp_suman31-May-10 19:06
rp_suman31-May-10 19:06 
QuestionNot catching the exception Pin
gsainath4u27-May-10 22:27
gsainath4u27-May-10 22:27 
AnswerRe: Not catching the exception Pin
Code-o-mat27-May-10 22:31
Code-o-mat27-May-10 22:31 
GeneralRe: Not catching the exception PinPopular
sashoalm27-May-10 22:34
sashoalm27-May-10 22:34 
GeneralRe: Not catching the exception Pin
Code-o-mat27-May-10 22:41
Code-o-mat27-May-10 22:41 
GeneralRe: Not catching the exception Pin
gsainath4u27-May-10 22:51
gsainath4u27-May-10 22:51 
GeneralRe: Not catching the exception Pin
sashoalm27-May-10 23:21
sashoalm27-May-10 23:21 
GeneralRe: Not catching the exception Pin
Code-o-mat27-May-10 23:34
Code-o-mat27-May-10 23:34 
GeneralRe: Not catching the exception Pin
gsainath4u27-May-10 22:47
gsainath4u27-May-10 22:47 
GeneralRe: Not catching the exception Pin
Code-o-mat27-May-10 22:51
Code-o-mat27-May-10 22:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.