Click here to Skip to main content
15,917,062 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 12:47
professionalRichard Andrew x6430-Nov-13 12:47 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Richard Andrew x6430-Nov-13 11:44
professionalRichard Andrew x6430-Nov-13 11:44 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard30-Nov-13 12:15
Anthony Appleyard30-Nov-13 12:15 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard30-Nov-13 19:37
Anthony Appleyard30-Nov-13 19:37 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Richard MacCutchan30-Nov-13 21:29
mveRichard MacCutchan30-Nov-13 21:29 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard30-Nov-13 23:58
Anthony Appleyard30-Nov-13 23:58 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard1-Dec-13 1:52
Anthony Appleyard1-Dec-13 1:52 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Richard MacCutchan1-Dec-13 2:56
mveRichard MacCutchan1-Dec-13 2:56 
GeneralRe: Visual C++ 2008 mis-compiling :: re-listing of query. Pin
Anthony Appleyard1-Dec-13 3:26
Anthony Appleyard1-Dec-13 3:26 
AnswerRe: Visual C++ 2008 mis-compiling Pin
jschell2-Dec-13 10:03
jschell2-Dec-13 10:03 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard2-Dec-13 11:14
Anthony Appleyard2-Dec-13 11:14 
GeneralRe: Visual C++ 2008 mis-compiling Pin
ahmad_ali2-Dec-13 23:36
ahmad_ali2-Dec-13 23:36 
GeneralRe: Visual C++ 2008 mis-compiling Pin
Anthony Appleyard3-Dec-13 6:33
Anthony Appleyard3-Dec-13 6:33 
QuestionMaking icons? Pin
Anthony Appleyard29-Nov-13 23:13
Anthony Appleyard29-Nov-13 23:13 
AnswerRe: Making icons? Pin
Richard MacCutchan29-Nov-13 23:59
mveRichard MacCutchan29-Nov-13 23:59 
AnswerRe: Making icons? Pin
Richard Andrew x6430-Nov-13 7:53
professionalRichard Andrew x6430-Nov-13 7:53 
GeneralRe: Making icons? Pin
David Crow30-Nov-13 14:56
David Crow30-Nov-13 14:56 
AnswerRe: Making icons? Pin
«_Superman_»1-Dec-13 18:42
professional«_Superman_»1-Dec-13 18:42 
GeneralIn conjunction with Pin
enhzflep3-Dec-13 6:43
enhzflep3-Dec-13 6:43 
AnswerRe: Making icons? Pin
Joe Woodbury2-Dec-13 9:02
professionalJoe Woodbury2-Dec-13 9:02 
QuestionVisual C++ 2008 query Pin
Anthony Appleyard29-Nov-13 21:38
Anthony Appleyard29-Nov-13 21:38 
I have Visual C++ 2008. I have written several programs using it over years.

In one of these programs is

MessageBox(0,Outfile,"output to file",MB_OK);

If I rebuild in debug mode, it compiles and links OK.

If I rebuild in release mode, I get this fault:

error C2664: 'MessageBoxW' : cannot convert parameter 2 from 'char [1024]' to 'LPCWSTR'

Outfile is declared as char[1024]. What should I set where to get it to assemble/link the .exe file using the version of MessageBox() that needs char[] mode parameters and not the version that needs array-of-long-character parameters?

modified 30-Nov-13 3:45am.

AnswerRe: Visual C++ 2008 query Pin
Jochen Arndt29-Nov-13 22:14
professionalJochen Arndt29-Nov-13 22:14 
GeneralRe: Visual C++ 2008 query Pin
Anthony Appleyard29-Nov-13 22:48
Anthony Appleyard29-Nov-13 22:48 
GeneralRe: Visual C++ 2008 query Pin
Jochen Arndt29-Nov-13 23:03
professionalJochen Arndt29-Nov-13 23:03 
GeneralRe: Visual C++ 2008 query Pin
Anthony Appleyard29-Nov-13 23:10
Anthony Appleyard29-Nov-13 23:10 

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.