Click here to Skip to main content
15,922,533 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strange virtual function output Pin
Rajkumar R8-Feb-08 3:40
Rajkumar R8-Feb-08 3:40 
GeneralRe: strange virtual function output Pin
George_George8-Feb-08 21:47
George_George8-Feb-08 21:47 
GeneralRe: strange virtual function output Pin
Rajkumar R8-Feb-08 23:01
Rajkumar R8-Feb-08 23:01 
GeneralRe: strange virtual function output Pin
George_George9-Feb-08 20:57
George_George9-Feb-08 20:57 
GeneralRe: strange virtual function output Pin
Rajkumar R10-Feb-08 22:29
Rajkumar R10-Feb-08 22:29 
GeneralRe: strange virtual function output Pin
George_George10-Feb-08 22:33
George_George10-Feb-08 22:33 
GeneralRe: strange virtual function output Pin
Rajkumar R10-Feb-08 23:04
Rajkumar R10-Feb-08 23:04 
GeneralRe: strange virtual function output Pin
George_George11-Feb-08 22:03
George_George11-Feb-08 22:03 
GeneralEmbedding HTML code into VC Pin
Gita.Bairavi8-Feb-08 1:37
Gita.Bairavi8-Feb-08 1:37 
GeneralRe: Embedding HTML code into VC Pin
Rajkumar R8-Feb-08 3:56
Rajkumar R8-Feb-08 3:56 
GeneralRe: Embedding HTML code into VC Pin
Hamid_RT10-Feb-08 21:28
Hamid_RT10-Feb-08 21:28 
QuestionWhy ++++i works and i++++ does not work? Pin
Don Box8-Feb-08 0:53
Don Box8-Feb-08 0:53 
AnswerRe: Why ++++i works and i++++ does not work? Pin
CPallini8-Feb-08 0:58
mveCPallini8-Feb-08 0:58 
AnswerRe: Why ++++i works and i++++ does not work? Pin
ShilpiP8-Feb-08 1:02
ShilpiP8-Feb-08 1:02 
AnswerRe: Why ++++i works and i++++ does not work? Pin
David Crow8-Feb-08 2:37
David Crow8-Feb-08 2:37 
AnswerRe: Why ++++i works and i++++ does not work? Pin
Gregory Bryant10-Feb-08 16:42
Gregory Bryant10-Feb-08 16:42 
GeneralDirect Show and Multiple sound cards!! Pin
~Jabeen~8-Feb-08 0:41
~Jabeen~8-Feb-08 0:41 
GeneralRe: Direct Show and Multiple sound cards!! Pin
Rajkumar R8-Feb-08 1:49
Rajkumar R8-Feb-08 1:49 
GeneralRe: Direct Show and Multiple sound cards!! Pin
rjkg8-Feb-08 1:58
rjkg8-Feb-08 1:58 
GeneralRe: Direct Show and Multiple sound cards!! Pin
Rajkumar R8-Feb-08 4:20
Rajkumar R8-Feb-08 4:20 
GeneralRe: Direct Show and Multiple sound cards!! Pin
Rajkumar R8-Feb-08 2:23
Rajkumar R8-Feb-08 2:23 
GeneralConvert CString to DWORD or CString to COLORREF Pin
orihime8-Feb-08 0:06
orihime8-Feb-08 0:06 
GeneralRe: Convert CString to DWORD or CString to COLORREF Pin
Rajkumar R8-Feb-08 0:11
Rajkumar R8-Feb-08 0:11 
GeneralRe: Convert CString to DWORD or CString to COLORREF [modified] Pin
CPallini8-Feb-08 0:20
mveCPallini8-Feb-08 0:20 
use strtol [^], for instance
char * p;
TCHAR * p;
CString sz=_T("0xFF00FF");
DWORD dw = _tcstol(sz,&p, 16);
COLORREF cr =_tcstol(sz,&p, 16);


Be aware that COLORREF value maybe set in way you don't expect, for instance
COLORREF cr1 =_tcstol(_T("0x1F00FF"),&p, 16); // cr1 = 0x001f00ff
COLORREF cr2 = RGB(0x1F, 0x00, 0xFF); // cr2 = 0x00ff001f

Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


modified on Monday, February 11, 2008 3:46 AM

GeneralRe: Convert CString to DWORD or CString to COLORREF Pin
orihime10-Feb-08 18:09
orihime10-Feb-08 18:09 

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.