Click here to Skip to main content
16,011,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Code for ISBN validation Pin
Brad Bruce16-May-04 15:51
Brad Bruce16-May-04 15:51 
Generalabout modify window caption Pin
vividtang16-May-04 15:20
vividtang16-May-04 15:20 
GeneralRe: about modify window caption Pin
Prakash Nadar16-May-04 15:54
Prakash Nadar16-May-04 15:54 
Questionwhy to fail in creating a combo box in toolbar? Pin
vividtang16-May-04 14:30
vividtang16-May-04 14:30 
GeneralStatusBar and OnSize Pin
Wigwog16-May-04 13:10
Wigwog16-May-04 13:10 
GeneralRe: StatusBar and OnSize Pin
Roger Allen16-May-04 22:53
Roger Allen16-May-04 22:53 
GeneralVS .net project setting question Pin
cpeed16-May-04 11:46
cpeed16-May-04 11:46 
GeneralRe: VS .net project setting question Pin
Curi0us_George16-May-04 12:17
Curi0us_George16-May-04 12:17 
String literals in C/C++ are always char arrays. If you want unicode (i.e. UTF-16), you'll need wchar_t arrays. You do this by prepending the L character to your strings literals.

e.g.
char * ascii_hello = "Hello World"; // ASCII
wchar_t * wide_hello = L"Hello World"; // UTF-16

The "character set" choice in the settings affects which versions of API functions are called. If it's set to unicode, it will call (for example) MessageBoxW() rather than MessageBoxA() (which would be for ASCII) whenever your code says to call MessageBox().

- C_G

P.S. I believe the A actually stands for ANSI, rather than ASCII, but no matter.
Generalmulti column list boxes Pin
Tyrus18216-May-04 11:12
Tyrus18216-May-04 11:12 
GeneralRe: multi column list boxes Pin
Curi0us_George16-May-04 11:52
Curi0us_George16-May-04 11:52 
GeneralRunning on another Computer Pin
Eversman16-May-04 10:37
Eversman16-May-04 10:37 
GeneralRe: Running on another Computer Pin
User 665816-May-04 10:40
User 665816-May-04 10:40 
GeneralRe: Running on another Computer Pin
toxcct16-May-04 10:59
toxcct16-May-04 10:59 
GeneralRe: Running on another Computer Pin
Tyrus18216-May-04 11:14
Tyrus18216-May-04 11:14 
GeneralRe: Running on another Computer Pin
Michael Dunn16-May-04 17:07
sitebuilderMichael Dunn16-May-04 17:07 
GeneralRe: Array objects and Pointers (Noob question) Pin
toxcct16-May-04 11:02
toxcct16-May-04 11:02 
GeneralSupprted Parameter types for dll's for VB Pin
dalecooper24116-May-04 9:53
dalecooper24116-May-04 9:53 
GeneralRe: Supprted Parameter types for dll's for VB Pin
Hesham Amin16-May-04 12:10
Hesham Amin16-May-04 12:10 
GeneralRe: Supprted Parameter types for dll's for VB Pin
Anonymous16-May-04 23:08
Anonymous16-May-04 23:08 
GeneralCBitmapButton Pin
lostris16-May-04 7:57
lostris16-May-04 7:57 
GeneralSending a message to an MFC control Pin
adrian2716-May-04 6:26
adrian2716-May-04 6:26 
GeneralRe: Sending a message to an MFC control Pin
valikac16-May-04 6:35
valikac16-May-04 6:35 
GeneralRe: Sending a message to an MFC control Pin
Michael Dunn16-May-04 6:39
sitebuilderMichael Dunn16-May-04 6:39 
Generalitoa function in visual c++ 6.0 Pin
Mirelutza16-May-04 5:48
Mirelutza16-May-04 5:48 
GeneralRe: itoa function in visual c++ 6.0 Pin
Tim Smith16-May-04 5:52
Tim Smith16-May-04 5:52 

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.