Click here to Skip to main content
14,297,566 members

ATL / WTL / STL

 
QuestionRe: C++ 11 std::unique_ptr related compiling error Pin
yufengzjj2-Jun-15 4:19
memberyufengzjj2-Jun-15 4:19 
AnswerRe: C++ 11 std::unique_ptr related compiling error Pin
Theo Buys8-Jul-15 1:34
memberTheo Buys8-Jul-15 1:34 
AnswerRe: C++ 11 std::unique_ptr related compiling error Pin
vickoza10-Jul-15 6:23
membervickoza10-Jul-15 6:23 
QuestionCListBox with wchar or WCHAR, Resolved Pin
bkelly1327-May-15 8:09
memberbkelly1327-May-15 8:09 
AnswerRe: CListBox with wchar or WCHAR Pin
emadns27-May-15 9:39
memberemadns27-May-15 9:39 
AnswerRe: CListBox with wchar or WCHAR Pin
Richard MacCutchan27-May-15 21:10
protectorRichard MacCutchan27-May-15 21:10 
GeneralRe: CListBox with wchar or WCHAR Pin
bkelly1328-May-15 3:40
memberbkelly1328-May-15 3:40 
GeneralRe: CListBox with wchar or WCHAR Pin
Richard MacCutchan28-May-15 3:55
protectorRichard MacCutchan28-May-15 3:55 
If you are working in Unicode the the Format statement requires that the format string be declared as Unicode, with either the L prefix or TEXT() macro, thus:
a.Format( L"%s", b ); // %s will be compiled as Unicode always
a.Format( TEXT("%s"), b ); // %s will be compiled as Unicode or ASCII depending on the project settings

Also, you should use upper case S to indicate that the contents of b is actually an ASCII, rather than Unicode, string.


bkelly13 wrote:
I really wish I was not the only one here working with C++.
You are not, if you look in the C/C++ forum you will see fairly regular questions.
GeneralRe: CListBox with wchar or WCHAR, Problem discovered Pin
bkelly1329-May-15 3:57
memberbkelly1329-May-15 3:57 
GeneralRe: CListBox with wchar or WCHAR, Problem discovered Pin
Richard MacCutchan29-May-15 4:33
protectorRichard MacCutchan29-May-15 4:33 
Questionis it true? fells he is boast, please somebody help me test . Pin
1971 powerChina7-May-15 15:19
member1971 powerChina7-May-15 15:19 
QuestionRe: is it true? fells he is boast, please somebody help me test . Pin
ZurdoDev18-May-15 4:54
professionalZurdoDev18-May-15 4:54 
QuestionServer execution failed in MFC COM Pin
Hydera29-Apr-15 23:59
memberHydera29-Apr-15 23:59 
AnswerRe: Server execution failed in MFC COM Pin
achal375418-May-15 22:00
memberachal375418-May-15 22:00 
QuestionCListViewCtrl HitTest problem Pin
ush_28-Apr-15 9:38
memberush_28-Apr-15 9:38 
Questioncannot get text of __DATE__ (resolved) Pin
bkelly1322-Apr-15 9:24
memberbkelly1322-Apr-15 9:24 
AnswerRe: cannot get text of __DATE__ Pin
Richard MacCutchan22-Apr-15 23:19
protectorRichard MacCutchan22-Apr-15 23:19 
GeneralRe: cannot get text of __DATE__ Pin
bkelly1324-Apr-15 2:01
memberbkelly1324-Apr-15 2:01 
Questionfunction to delete a class (resolved) Pin
bkelly1321-Apr-15 3:42
memberbkelly1321-Apr-15 3:42 
AnswerRe: function to delete a class Pin
Richard MacCutchan21-Apr-15 21:11
protectorRichard MacCutchan21-Apr-15 21:11 
GeneralRe: function to delete a class Pin
bkelly1322-Apr-15 4:08
memberbkelly1322-Apr-15 4:08 
QuestionRe: function to delete a class Pin
Richard MacCutchan22-Apr-15 6:27
protectorRichard MacCutchan22-Apr-15 6:27 
AnswerRe: function to delete a class Pin
bkelly1322-Apr-15 9:15
memberbkelly1322-Apr-15 9:15 
GeneralRe: function to delete a class Pin
Richard MacCutchan22-Apr-15 22:27
protectorRichard MacCutchan22-Apr-15 22:27 
GeneralRe: function to delete a class Pin
bkelly1323-Apr-15 16:16
memberbkelly1323-Apr-15 16:16 

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.