Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTaget operating system Pin
Gagnon Claude28-May-09 2:14
Gagnon Claude28-May-09 2:14 
AnswerRe: Taget operating system Pin
Rajesh R Subramanian28-May-09 2:17
professionalRajesh R Subramanian28-May-09 2:17 
AnswerRe: Taget operating system Pin
Single Step Debugger28-May-09 4:33
Single Step Debugger28-May-09 4:33 
QuestionBuild Application in VC++ Pin
anassamar28-May-09 2:06
anassamar28-May-09 2:06 
AnswerRe: Build Application in VC++ Pin
Chandrasekharan P28-May-09 2:11
Chandrasekharan P28-May-09 2:11 
GeneralRe: Build Application in VC++ Pin
anassamar28-May-09 3:58
anassamar28-May-09 3:58 
AnswerRe: Build Application in VC++ Pin
Naveen28-May-09 2:11
Naveen28-May-09 2:11 
AnswerRe: Build Application in VC++ Pin
Rajesh R Subramanian28-May-09 2:12
professionalRajesh R Subramanian28-May-09 2:12 
You are building for Unicode and therefore trying to pass an ANSI string to an API which expects an Unicode string. Include all your literal strings within the TEXT macro.


anassamar wrote:
MessageBox("This is my first Visual C++ Application!");


MessageBox(_T("This is my first Visual C++ Application!"));

The _T macro automatically emits an ANSI or an Unicode string (by prefixing nothing if building for MBCS or by prefixing L to the literal string if building for Unicode)

These links may help you further to understand about string data types:

The Complete Guide to C++ Strings, Part I - Win32 Character Encodings[^]
The Complete Guide to C++ Strings, Part II - String Wrapper Classes[^]

This might help you with International programming and Unicode:

International programming[^]


It is a crappy thing, but it's life -^ Carlo Pallini

AnswerRe: Build Application in VC++ Pin
hourui28-May-09 17:07
hourui28-May-09 17:07 
QuestionHow can i close messagebox without clicking a button? [modified] Pin
Le@rner28-May-09 0:56
Le@rner28-May-09 0:56 
AnswerRe: How can i close messagebox without clicking a button? Pin
Rajesh R Subramanian28-May-09 1:00
professionalRajesh R Subramanian28-May-09 1:00 
AnswerRe: How can i close messagebox without clicking a button? Pin
Chandrasekharan P28-May-09 1:04
Chandrasekharan P28-May-09 1:04 
AnswerRe: How can i close messagebox without clicking a button? Pin
_AnsHUMAN_ 28-May-09 1:05
_AnsHUMAN_ 28-May-09 1:05 
AnswerRe: How can i close messagebox without clicking a button? Pin
KarstenK28-May-09 1:41
mveKarstenK28-May-09 1:41 
AnswerRe: How can i close messagebox without clicking a button? Pin
David Crow28-May-09 4:17
David Crow28-May-09 4:17 
AnswerRe: How can i close messagebox without clicking a button? [modified] Pin
walker_network_ranger8-Jan-13 21:04
walker_network_ranger8-Jan-13 21:04 
QuestionConvert from "String ^" to std::String Pin
tecnico.antonio28-May-09 0:44
tecnico.antonio28-May-09 0:44 
AnswerRe: Convert from "String ^" to std::String Pin
Rajesh R Subramanian28-May-09 1:05
professionalRajesh R Subramanian28-May-09 1:05 
GeneralRe: Convert from "String ^" to std::String Pin
AntoniP28-May-09 1:16
AntoniP28-May-09 1:16 
AnswerRe: Convert from "String ^" to std::String Pin
Stuart Dootson28-May-09 1:33
professionalStuart Dootson28-May-09 1:33 
GeneralRe: Convert from "String ^" to std::String Pin
AntoniP28-May-09 1:43
AntoniP28-May-09 1:43 
QuestionFiltering Techniques in Kernel level Pin
Jacobb Michael28-May-09 0:37
Jacobb Michael28-May-09 0:37 
Questionerror LNK2001: unresolved external symbol "public: static bool Pin
ptr_Electron27-May-09 23:50
ptr_Electron27-May-09 23:50 
AnswerRe: error LNK2001: unresolved external symbol "public: static bool Pin
Rajesh R Subramanian27-May-09 23:52
professionalRajesh R Subramanian27-May-09 23:52 
GeneralRe: error LNK2001: unresolved external symbol "public: static bool Pin
ptr_Electron28-May-09 0:06
ptr_Electron28-May-09 0:06 

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.