Click here to Skip to main content
15,896,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCSplitterWnd divider line Pin
Parthi_Appu5-Sep-06 0:36
Parthi_Appu5-Sep-06 0:36 
QuestionLINK : fatal error LNK1104: cannot open file 'Ws2_32.lib' Pin
jalsa G5-Sep-06 0:28
jalsa G5-Sep-06 0:28 
AnswerRe: LINK : fatal error LNK1104: cannot open file 'Ws2_32.lib' Pin
Frank K5-Sep-06 0:46
Frank K5-Sep-06 0:46 
AnswerRe: LINK : fatal error LNK1104: cannot open file 'Ws2_32.lib' Pin
prasad_som5-Sep-06 0:46
prasad_som5-Sep-06 0:46 
GeneralRe: LINK : fatal error LNK1104: cannot open file 'Ws2_32.lib' Pin
jalsa G5-Sep-06 1:16
jalsa G5-Sep-06 1:16 
GeneralRe: LINK : fatal error LNK1104: cannot open file 'Ws2_32.lib' Pin
Frank K5-Sep-06 1:37
Frank K5-Sep-06 1:37 
Questionextracting digits for a char array Pin
flippydeflippydebop4-Sep-06 23:53
flippydeflippydebop4-Sep-06 23:53 
AnswerRe: extracting digits for a char array Pin
prasad_som5-Sep-06 0:42
prasad_som5-Sep-06 0:42 
flippydeflippydebop wrote:
if( isdigit(szBuffer[loopCnt]) != 0 )

isdigit returns true if ASCII representation of input is 0-9.
In your case for setting char to 0(zero), use '0' instead of '\0'.

You code can be modified like this.
char szBuffer[101];
memset(szBuffer,'0',101)

szBuffer[0] = '1';
szBuffer[1] = '0';//you can comment this line
szBuffer[2] = '2';
szBuffer[3] = '0';//you can comment this line
szBuffer[4] = '3';
szBuffer[5] = '0';//you can comment this line

std::string str = szBuffer;

std::ostringstream strm;
for ( int loopCnt = 0; loopCnt < 101; loopCnt++ )
{
if( isdigit(szBuffer[loopCnt]) != 0 )
{
strm << szBuffer[loopCnt];
}
} 



AnswerRe: extracting digits for a char array Pin
David Crow5-Sep-06 5:25
David Crow5-Sep-06 5:25 
AnswerRe: extracting digits for a char array Pin
Hamid_RT6-Sep-06 8:11
Hamid_RT6-Sep-06 8:11 
QuestionHandling WM_INITMENUPOPUP Pin
rrrado4-Sep-06 23:48
rrrado4-Sep-06 23:48 
AnswerRe: Handling WM_INITMENUPOPUP Pin
prasad_som5-Sep-06 1:00
prasad_som5-Sep-06 1:00 
GeneralRe: Handling WM_INITMENUPOPUP Pin
rrrado5-Sep-06 1:23
rrrado5-Sep-06 1:23 
GeneralRe: Handling WM_INITMENUPOPUP Pin
rrrado5-Sep-06 1:31
rrrado5-Sep-06 1:31 
GeneralRe: Handling WM_INITMENUPOPUP Pin
Frank K5-Sep-06 1:34
Frank K5-Sep-06 1:34 
QuestionRe: Handling WM_INITMENUPOPUP Pin
prasad_som5-Sep-06 1:38
prasad_som5-Sep-06 1:38 
AnswerRe: Handling WM_INITMENUPOPUP Pin
rrrado5-Sep-06 2:15
rrrado5-Sep-06 2:15 
GeneralRe: Handling WM_INITMENUPOPUP Pin
prasad_som5-Sep-06 2:40
prasad_som5-Sep-06 2:40 
QuestionUnderlined Text Pin
Anu_Bala4-Sep-06 23:41
Anu_Bala4-Sep-06 23:41 
AnswerRe: Underlined Text Pin
uday kiran janaswamy4-Sep-06 23:51
uday kiran janaswamy4-Sep-06 23:51 
AnswerRe: Underlined Text Pin
Cedric Moonen5-Sep-06 0:14
Cedric Moonen5-Sep-06 0:14 
AnswerRe: Underlined Text Pin
Hamid_RT6-Sep-06 8:04
Hamid_RT6-Sep-06 8:04 
QuestionMessageBoxW and converting to LPCWSTR Pin
sawerr4-Sep-06 22:58
sawerr4-Sep-06 22:58 
AnswerRe: MessageBoxW and converting to LPCWSTR Pin
uday kiran janaswamy4-Sep-06 23:03
uday kiran janaswamy4-Sep-06 23:03 
AnswerRe: MessageBoxW and converting to LPCWSTR Pin
fefe.wyx4-Sep-06 23:10
fefe.wyx4-Sep-06 23:10 

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.