Click here to Skip to main content
15,895,772 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dynamic popup menu Pin
mark novak27-Jul-05 2:13
mark novak27-Jul-05 2:13 
GeneralString Converstions Pin
tomek1826-Jul-05 2:59
tomek1826-Jul-05 2:59 
GeneralRe: String Converstions Pin
mark novak26-Jul-05 3:02
mark novak26-Jul-05 3:02 
GeneralRe: String Converstions Pin
tomek1826-Jul-05 3:10
tomek1826-Jul-05 3:10 
GeneralRe: String Converstions Pin
mark novak26-Jul-05 3:24
mark novak26-Jul-05 3:24 
GeneralRe: String Converstions Pin
tomek1826-Jul-05 3:18
tomek1826-Jul-05 3:18 
GeneralRe: String Converstions Pin
tomek1826-Jul-05 3:43
tomek1826-Jul-05 3:43 
GeneralRe: String Converstions Pin
mark novak26-Jul-05 4:04
mark novak26-Jul-05 4:04 
A project under Visual C++ can be under many configurations. You have console or win32 application, MFC or ATL or both, etc. You control these configurations by defining values. A unicode project is controlled by the macros _UNICODE and UNICODE. The #ifdef _UNICODE is a preprocessor directive. Like an if, but at a preprocessor level which means if it's not true (evaluated at compile time) the code won't be included in the executable.

Try adding

#define _UNICODE
#define UNICODE

to the top of your stdafx.h before you include all the headers, or set them in the project settings under preprocessor definitions. Now your project will be unicode aware. For instance a possible problem in your case is passing an argument as a LPCTSTR, which under an ansi project (_UNICODE & UNICODE not defined) is a pointer to an ansi string. In a unicode project it's a unicode string.
GeneralRe: String Converstions Pin
tomek1826-Jul-05 4:17
tomek1826-Jul-05 4:17 
GeneralRe: String Converstions Pin
mark novak26-Jul-05 4:25
mark novak26-Jul-05 4:25 
GeneralRe: String Converstions Pin
Tim Smith26-Jul-05 3:30
Tim Smith26-Jul-05 3:30 
GeneralRe: String Converstions Pin
tomek1826-Jul-05 4:19
tomek1826-Jul-05 4:19 
GeneralRe: String Converstions Pin
mark novak26-Jul-05 4:28
mark novak26-Jul-05 4:28 
GeneralXML parsing in C++ Pin
72arpita26-Jul-05 2:53
72arpita26-Jul-05 2:53 
GeneralRe: XML parsing in C++ Pin
David Crow26-Jul-05 2:59
David Crow26-Jul-05 2:59 
QuestionHow to draw a rectangle in CRichEditCtrl Pin
Ahmed Kabir26-Jul-05 2:33
Ahmed Kabir26-Jul-05 2:33 
AnswerRe: How to draw a rectangle in CRichEditCtrl Pin
mark novak26-Jul-05 3:06
mark novak26-Jul-05 3:06 
Generalinterpreter needed Pin
Jerome Conus26-Jul-05 2:25
Jerome Conus26-Jul-05 2:25 
GeneralRe: interpreter needed Pin
mark novak26-Jul-05 3:01
mark novak26-Jul-05 3:01 
QuestionHow to add a Bitmap image for background of titlebar Pin
Member 208926526-Jul-05 2:00
Member 208926526-Jul-05 2:00 
AnswerRe: How to add a Bitmap image for background of titlebar Pin
mark novak26-Jul-05 2:48
mark novak26-Jul-05 2:48 
Generalproblem displaying bitmap Pin
Arrun26-Jul-05 1:39
Arrun26-Jul-05 1:39 
GeneralWindows Spy Pin
ddmcr26-Jul-05 0:44
ddmcr26-Jul-05 0:44 
GeneralRe: Windows Spy Pin
mark novak26-Jul-05 2:56
mark novak26-Jul-05 2:56 
GeneralTo get message from Windows if user writes on hard disk Pin
sannik25-Jul-05 23:43
sannik25-Jul-05 23:43 

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.