Click here to Skip to main content
15,890,185 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: polymorphism Pin
David Crow11-Nov-09 3:38
David Crow11-Nov-09 3:38 
QuestionAddString() in ListBox Pin
Anu_Bala10-Nov-09 20:20
Anu_Bala10-Nov-09 20:20 
AnswerRe: AddString() in ListBox Pin
«_Superman_»10-Nov-09 20:24
professional«_Superman_»10-Nov-09 20:24 
AnswerRe: AddString() in ListBox Pin
KingsGambit10-Nov-09 20:27
KingsGambit10-Nov-09 20:27 
QuestionRe: AddString() in ListBox Pin
CPallini10-Nov-09 20:32
mveCPallini10-Nov-09 20:32 
AnswerRe: AddString() in ListBox Pin
Anu_Bala10-Nov-09 21:04
Anu_Bala10-Nov-09 21:04 
GeneralRe: AddString() in ListBox Pin
CPallini10-Nov-09 21:25
mveCPallini10-Nov-09 21:25 
AnswerRe: AddString() in ListBox Pin
Rajesh R Subramanian10-Nov-09 21:01
professionalRajesh R Subramanian10-Nov-09 21:01 
Anu_Bala wrote:
pSysBox->AddString((LPCTSTR)RGB(255,0,0));


The RGB[^] macro returns a COLORREF[^]. You're forcing the compiler away from complaining about this by cleverly casting the COLORREF value to an LPCTSTR. Roll eyes | :rolleyes:

If you want to add the string as it is, then try
pSysBox->AddString(_T("RGB(255,0,0)"));



“Follow your bliss.” – Joseph Campbell

AnswerRe: AddString() in ListBox Pin
David Crow11-Nov-09 3:40
David Crow11-Nov-09 3:40 
QuestionNew Virtual Desktop Pin
amitkgupta2810-Nov-09 20:11
amitkgupta2810-Nov-09 20:11 
AnswerRe: New Virtual Desktop Pin
«_Superman_»10-Nov-09 20:21
professional«_Superman_»10-Nov-09 20:21 
QuestionBroke CString Pin
Paulraj G10-Nov-09 19:23
Paulraj G10-Nov-09 19:23 
AnswerRe: Broke CString Pin
«_Superman_»10-Nov-09 19:37
professional«_Superman_»10-Nov-09 19:37 
GeneralRe: Broke CString Pin
Paulraj G10-Nov-09 20:19
Paulraj G10-Nov-09 20:19 
QuestionActiveX Control - Visual C++ 6.0 to Visual Studio 2008 (C++ ) - Urgent Pin
ERLN10-Nov-09 18:33
ERLN10-Nov-09 18:33 
QuestionEdit the maximize box Pin
Anu_Bala10-Nov-09 18:16
Anu_Bala10-Nov-09 18:16 
QuestionFind cursor Pin
sonualex10-Nov-09 18:10
sonualex10-Nov-09 18:10 
AnswerRe: Find cursor Pin
«_Superman_»10-Nov-09 19:01
professional«_Superman_»10-Nov-09 19:01 
GeneralRe: Find cursor Pin
sonualex10-Nov-09 21:26
sonualex10-Nov-09 21:26 
GeneralRe: Find cursor Pin
sonualex11-Nov-09 0:28
sonualex11-Nov-09 0:28 
QuestionRe: Find cursor Pin
David Crow11-Nov-09 3:46
David Crow11-Nov-09 3:46 
AnswerRe: Find cursor Pin
sonualex11-Nov-09 16:52
sonualex11-Nov-09 16:52 
GeneralRe: Find cursor Pin
David Crow12-Nov-09 2:52
David Crow12-Nov-09 2:52 
GeneralRe: Find cursor Pin
sonualex12-Nov-09 17:51
sonualex12-Nov-09 17:51 
QuestionHow to debug an ActiveX control running in Internet Explorer? Pin
Erik10-Nov-09 18:07
Erik10-Nov-09 18:07 

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.