Click here to Skip to main content
16,016,227 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWarning: no message line prompt for ID 0x8005. Pin
pc_dev28-Sep-06 5:54
pc_dev28-Sep-06 5:54 
AnswerRe: Warning: no message line prompt for ID 0x8005. Pin
James R. Twine28-Sep-06 8:53
James R. Twine28-Sep-06 8:53 
QuestionComma Delimeted CString Parsing [modified] Pin
efriese128-Sep-06 5:26
efriese128-Sep-06 5:26 
AnswerRe: Comma Delimeted CString Parsing Pin
-Dy28-Sep-06 5:48
-Dy28-Sep-06 5:48 
AnswerRe: Comma Delimeted CString Parsing Pin
RChin28-Sep-06 6:28
RChin28-Sep-06 6:28 
AnswerRe: Comma Delimeted CString Parsing Pin
David Crow28-Sep-06 7:52
David Crow28-Sep-06 7:52 
GeneralRe: Comma Delimeted CString Parsing Pin
efriese128-Sep-06 8:54
efriese128-Sep-06 8:54 
AnswerRe: Comma Delimeted CString Parsing Pin
James R. Twine28-Sep-06 8:59
James R. Twine28-Sep-06 8:59 
   Well, if you want to drop down to the RTL, you can use sscanf(...) and its variants to scan the values out.
int iRed = 0;
int iGreen = 0;
int iBlue = 0;

//int iTokens = ::_stscanf( sTheString, _T( "%d,%d,%d" ), &iRed, &iGreen, &iBlue );
int iTokens = ::_stscanf( _T( "255,0,0" ), _T( "%d,%d,%d" ), &iRed, &iGreen, &iBlue );
   That should scan the three values into the three variables.

   Generally, if you can build a string using sprintf(...) you can scan it using scanf(...).

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)

QuestionHow to make Button for MSAccess ? Pin
01fanker28-Sep-06 5:20
01fanker28-Sep-06 5:20 
AnswerRe: How to make Button for MSAccess ? Pin
John M. Drescher28-Sep-06 6:04
John M. Drescher28-Sep-06 6:04 
QuestionRe: How to make Button for MSAccess ? Pin
01fanker28-Sep-06 20:29
01fanker28-Sep-06 20:29 
AnswerRe: How to make Button for MSAccess ? Pin
S Douglas30-Sep-06 22:19
professionalS Douglas30-Sep-06 22:19 
Questionhelp creating a com object CDOMessage Pin
flippydeflippydebop28-Sep-06 4:28
flippydeflippydebop28-Sep-06 4:28 
AnswerRe: help creating a com object CDOMessage Pin
led mike28-Sep-06 5:29
led mike28-Sep-06 5:29 
GeneralRe: help creating a com object CDOMessage Pin
flippydeflippydebop28-Sep-06 6:02
flippydeflippydebop28-Sep-06 6:02 
GeneralRe: help creating a com object CDOMessage Pin
led mike28-Sep-06 6:10
led mike28-Sep-06 6:10 
GeneralRe: help creating a com object CDOMessage Pin
flippydeflippydebop28-Sep-06 10:35
flippydeflippydebop28-Sep-06 10:35 
GeneralRe: help creating a com object CDOMessage Pin
flippydeflippydebop29-Sep-06 1:01
flippydeflippydebop29-Sep-06 1:01 
GeneralRe: help creating a com object CDOMessage Pin
led mike29-Sep-06 5:08
led mike29-Sep-06 5:08 
GeneralRe: help creating a com object CDOMessage Pin
flippydeflippydebop1-Oct-06 22:59
flippydeflippydebop1-Oct-06 22:59 
QuestionIs there anybody knowns where was IE's "Manage Add-ons" dialog implemented? Pin
314159265328-Sep-06 3:28
314159265328-Sep-06 3:28 
QuestionModal and modeless dialogs Pin
Wim Engberts28-Sep-06 2:50
Wim Engberts28-Sep-06 2:50 
AnswerRe: Modal and modeless dialogs Pin
David Crow28-Sep-06 2:55
David Crow28-Sep-06 2:55 
GeneralRe: Modal and modeless dialogs Pin
Wim Engberts28-Sep-06 3:01
Wim Engberts28-Sep-06 3:01 
QuestionHow to color every letter in a Listbox diffrent Pin
Mike-Kuki28-Sep-06 2:41
Mike-Kuki28-Sep-06 2:41 

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.