Click here to Skip to main content
15,912,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to convert LPCTSTR for MessageBox Function Pin
Michael Schubert14-Jul-09 12:49
Michael Schubert14-Jul-09 12:49 
AnswerRe: How to convert LPCTSTR for MessageBox Function Pin
David Crow14-Jul-09 16:08
David Crow14-Jul-09 16:08 
QuestionNewbie question, problem compiling Pin
Adassus14-Jul-09 8:19
Adassus14-Jul-09 8:19 
QuestionRe: Newbie question, problem compiling Pin
Roger Stoltz14-Jul-09 8:29
Roger Stoltz14-Jul-09 8:29 
AnswerRe: Newbie question, problem compiling Pin
Randor 14-Jul-09 9:28
professional Randor 14-Jul-09 9:28 
AnswerRe: Newbie question, problem compiling Pin
Maximilien14-Jul-09 9:30
Maximilien14-Jul-09 9:30 
AnswerRe: Newbie question, problem compiling Pin
Adassus14-Jul-09 11:41
Adassus14-Jul-09 11:41 
GeneralRe: Newbie question, problem compiling Pin
Randor 14-Jul-09 11:59
professional Randor 14-Jul-09 11:59 
Same problem, same solution.

Your project is configured for Unicode strings and your string literals are ANSI. To avoid asking the same question again you should make an attempt to learn the difference between Unicode strings and ANSI strings. I recommend the following:

1.) Right click on your project in the solution explorer.
2.) Choose the properties from the popup menu.
3.) Choose 'General' from the left treeview.
4.) In the 'Project Defaults' section view that the 'Character set' is set to Unicode.

This means your project is using Unicode strings. More information below:

About ANSI & Unicode[^]

C++ String Literals[^]

Unicode Programming Summary [^]

Some solutions:
1.) You could change your Character set to 'Not Set' or 'MultiByte character set' and the code above will compile.
2.) You could add an L prefix to the string literals to denote they are wide strings.
3.) You could encapsulate the string using the _T macro so the project will compile in both ANSI and Unicode settings.

Best Wishes,
-David Delaune
GeneralRe: Newbie question, problem compiling Pin
Adassus14-Jul-09 15:44
Adassus14-Jul-09 15:44 
QuestionUSB interaction from user space. I need some light please! Pin
sinosoidal14-Jul-09 6:32
sinosoidal14-Jul-09 6:32 
AnswerRe: USB interaction from user space. I need some light please! Pin
Roger Stoltz14-Jul-09 6:59
Roger Stoltz14-Jul-09 6:59 
AnswerRe: USB interaction from user space. I need some light please! Pin
Randor 14-Jul-09 8:41
professional Randor 14-Jul-09 8:41 
GeneralRe: USB interaction from user space. I need some light please! Pin
sinosoidal15-Jul-09 0:49
sinosoidal15-Jul-09 0:49 
GeneralRe: USB interaction from user space. I need some light please! Pin
Randor 15-Jul-09 8:08
professional Randor 15-Jul-09 8:08 
GeneralRe: USB interaction from user space. I need some light please! Pin
sinosoidal15-Jul-09 9:34
sinosoidal15-Jul-09 9:34 
QuestionProblem with the reading of the BMP file Pin
TeslaShock14-Jul-09 5:27
TeslaShock14-Jul-09 5:27 
AnswerRe: Problem with the reading of the BMP file Pin
Chris Losinger14-Jul-09 6:01
professionalChris Losinger14-Jul-09 6:01 
GeneralRe: Problem with the reading of the BMP file Pin
TeslaShock14-Jul-09 6:13
TeslaShock14-Jul-09 6:13 
AnswerRe: Problem with the reading of the BMP file Pin
Joe Woodbury14-Jul-09 6:38
professionalJoe Woodbury14-Jul-09 6:38 
GeneralRe: Problem with the reading of the BMP file Pin
TeslaShock16-Jul-09 5:13
TeslaShock16-Jul-09 5:13 
QuestionOnInitDialog() never be called Pin
transoft14-Jul-09 2:22
transoft14-Jul-09 2:22 
QuestionRe: OnInitDialog() never be called Pin
CPallini14-Jul-09 2:35
mveCPallini14-Jul-09 2:35 
AnswerRe: OnInitDialog() never be called Pin
transoft14-Jul-09 2:42
transoft14-Jul-09 2:42 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 2:48
Cedric Moonen14-Jul-09 2:48 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 6:05
transoft14-Jul-09 6:05 

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.