Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Pragmas in C Pin
sashoalm27-Dec-09 23:06
sashoalm27-Dec-09 23:06 
AnswerRe: Pragmas in C Pin
Richard MacCutchan27-Dec-09 23:19
mveRichard MacCutchan27-Dec-09 23:19 
AnswerRe: Pragmas in C Pin
Bram van Kampen28-Dec-09 1:31
Bram van Kampen28-Dec-09 1:31 
GeneralRe: Pragmas in C //Is this a Bug in CP?? Pin
Bram van Kampen28-Dec-09 1:42
Bram van Kampen28-Dec-09 1:42 
GeneralRe: Pragmas in C //Is this a Bug in CP?? Pin
Nuri Ismail28-Dec-09 3:29
Nuri Ismail28-Dec-09 3:29 
GeneralRe: Pragmas in C //Is this a Bug in CP?? Pin
Bram van Kampen28-Dec-09 13:30
Bram van Kampen28-Dec-09 13:30 
QuestionError on CString Pin
Anu_Bala27-Dec-09 17:08
Anu_Bala27-Dec-09 17:08 
AnswerRe: Error on CString PinPopular
LunaticFringe27-Dec-09 17:24
LunaticFringe27-Dec-09 17:24 
It would appear that you're compiling with the Unicode character set selected. (Right click on the project in the Solution Explorer, select Properties; it's on the 'Configuration Properties/General' page.)

Your format string is being seen as a string of type char; to convert it to TCHAR's, which will automatically map to wchar_t's when Unicode is selected, use the '_T' macro, just as you did when you initialized the string -

CString sAlrm = _T("");
sAlrm.Format(_T("%-16s %-10s %-10s"),pTagBase->GetTagName(),pTagBase->GetDescription(),pAlrmDisp->sStatus);
.

L u n a t i c F r i n g e

GeneralRe: Error on CString Pin
Anu_Bala27-Dec-09 17:46
Anu_Bala27-Dec-09 17:46 
GeneralRe: Error on CString Pin
Rajesh R Subramanian27-Dec-09 19:27
professionalRajesh R Subramanian27-Dec-09 19:27 
QuestionDeveloping a gui toolkit Pin
bi0phaz327-Dec-09 16:03
bi0phaz327-Dec-09 16:03 
AnswerRe: Developing a gui toolkit Pin
«_Superman_»27-Dec-09 16:10
professional«_Superman_»27-Dec-09 16:10 
GeneralRe: Developing a gui toolkit Pin
bi0phaz327-Dec-09 16:12
bi0phaz327-Dec-09 16:12 
GeneralRe: Developing a gui toolkit Pin
«_Superman_»27-Dec-09 16:15
professional«_Superman_»27-Dec-09 16:15 
QuestionWaking from Sleep/Hybernation Pin
Bram van Kampen27-Dec-09 11:47
Bram van Kampen27-Dec-09 11:47 
AnswerRe: Waking from Sleep/Hybernation Pin
«_Superman_»27-Dec-09 15:08
professional«_Superman_»27-Dec-09 15:08 
GeneralRe: Waking from Sleep/Hybernation Pin
Bram van Kampen28-Dec-09 0:47
Bram van Kampen28-Dec-09 0:47 
GeneralRe: Waking from Sleep/Hybernation Pin
Nelek28-Dec-09 0:55
protectorNelek28-Dec-09 0:55 
GeneralRe: Waking from Sleep/Hybernation Pin
Bram van Kampen28-Dec-09 1:37
Bram van Kampen28-Dec-09 1:37 
QuestionHow to get the parent proccess's path Pin
Joseph Marzbani26-Dec-09 21:38
Joseph Marzbani26-Dec-09 21:38 
AnswerRe: How to get the parent proccess's path Pin
Stephen Hewitt26-Dec-09 23:09
Stephen Hewitt26-Dec-09 23:09 
AnswerRe: How to get the parent proccess's path Pin
rp_suman27-Dec-09 0:25
rp_suman27-Dec-09 0:25 
AnswerRe: How to get the parent proccess's path Pin
Bram van Kampen27-Dec-09 11:50
Bram van Kampen27-Dec-09 11:50 
GeneralRe: How to get the parent proccess's path Pin
raja jamwal31-Dec-09 8:47
raja jamwal31-Dec-09 8:47 
GeneralRe: How to get the parent proccess's path Pin
Bram van Kampen3-Jan-10 23:48
Bram van Kampen3-Jan-10 23:48 

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.