Click here to Skip to main content
15,909,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HWND From Procedd ID Pin
john56324-Mar-10 19:20
john56324-Mar-10 19:20 
AnswerRe: HWND From Procedd ID Pin
Eugen Podsypalnikov4-Mar-10 19:21
Eugen Podsypalnikov4-Mar-10 19:21 
GeneralRe: HWND From Procedd ID Pin
john56324-Mar-10 19:37
john56324-Mar-10 19:37 
GeneralRe: HWND From Procedd ID Pin
Eugen Podsypalnikov4-Mar-10 19:46
Eugen Podsypalnikov4-Mar-10 19:46 
GeneralRe: HWND From Procedd ID Pin
john56324-Mar-10 19:55
john56324-Mar-10 19:55 
GeneralRe: HWND From Procedd ID Pin
Eugen Podsypalnikov4-Mar-10 20:17
Eugen Podsypalnikov4-Mar-10 20:17 
AnswerRe: HWND From Procedd ID Pin
ycc8920095-Mar-10 5:40
ycc8920095-Mar-10 5:40 
QuestionCString "Find" Problem Pin
Anu_Bala4-Mar-10 17:59
Anu_Bala4-Mar-10 17:59 
Hi,
I have a string like " Tag-10 CValve-15 Pump-2 ColorPush-1 Push-5"

Here i have to get the numbers of particular string.
I will find "Tag-" and then i will get the value 10.Like this i have to proceed.
What my problem is when i Find for "Push-",it returns the value as 1
and when i search for "ColorPush-",it return the value as 1.

But for "Push-" i want only the value of 5.How can i get that?
BOOL bFind = sTemp.Find("Tag") != -1 ? TRUE : FALSE;
if(bFind)
{
iPosHypen = sTemp.Find("Tag-");
iPosNewLine = sTemp.Find("\n", iPosHypen+4);
sName = sTemp.Left(iPosNewLine - 1);
sNo = sName.Mid(iPosHypen + 4);
iTagNum[iNo] = atoi(sNo);
}
.
.
bFind = sTemp.Find("Push") != -1 ? TRUE : FALSE;
if(bFind)
{
iPosHypen = sTemp.Find("Push-");
iPosNewLine = sTemp.Find("\n", iPosHypen+5);
sName = sTemp.Left(iPosNewLine - 1);
sNo = sName.Mid(iPosHypen + 5);
iButtonNum[iNo] = atoi(sNo);
}
bFind = sTemp.Find("ColorPush") != -1 ? TRUE : FALSE;
if(bFind)
{
iPosHypen = sTemp.Find("ColorPush-");
iPosNewLine = sTemp.Find("\n", iPosHypen+10);
sName = sTemp.Left(iPosNewLine - 1);
sNo = sName.Mid(iPosHypen + 10);
iPushNum[iNo] = atoi(sNo);
}
Anu

AnswerRe: CString "Find" Problem Pin
Adam Roderick J4-Mar-10 18:10
Adam Roderick J4-Mar-10 18:10 
AnswerRe: CString "Find" Problem Pin
Cool_Dev4-Mar-10 18:32
Cool_Dev4-Mar-10 18:32 
GeneralRe: CString "Find" Problem Pin
Anu_Bala4-Mar-10 18:51
Anu_Bala4-Mar-10 18:51 
GeneralRe: CString "Find" Problem Pin
Adam Roderick J4-Mar-10 19:18
Adam Roderick J4-Mar-10 19:18 
GeneralRe: CString "Find" Problem Pin
Joe Woodbury4-Mar-10 19:39
professionalJoe Woodbury4-Mar-10 19:39 
GeneralRe: CString "Find" Problem Pin
Mohan Ramachandra4-Mar-10 20:06
Mohan Ramachandra4-Mar-10 20:06 
QuestionDynamic button creation Pin
shiv@nand4-Mar-10 17:29
shiv@nand4-Mar-10 17:29 
AnswerRe: Dynamic button creation Pin
Adam Roderick J4-Mar-10 18:15
Adam Roderick J4-Mar-10 18:15 
AnswerRe: Dynamic button creation Pin
shiv@nand4-Mar-10 18:35
shiv@nand4-Mar-10 18:35 
GeneralRe: Dynamic button creation Pin
Mohan Ramachandra4-Mar-10 22:21
Mohan Ramachandra4-Mar-10 22:21 
QuestionVisual Studio C++ 6.0 Dialog question Pin
gedinfo4-Mar-10 15:21
gedinfo4-Mar-10 15:21 
AnswerRe: Visual Studio C++ 6.0 Dialog question Pin
«_Superman_»4-Mar-10 15:53
professional«_Superman_»4-Mar-10 15:53 
GeneralRe: Visual Studio C++ 6.0 Dialog question Pin
gedinfo4-Mar-10 16:12
gedinfo4-Mar-10 16:12 
GeneralRe: Visual Studio C++ 6.0 Dialog question Pin
Gwenio4-Mar-10 16:50
Gwenio4-Mar-10 16:50 
AnswerRe: Visual Studio C++ 6.0 Dialog question Pin
KarstenK4-Mar-10 21:31
mveKarstenK4-Mar-10 21:31 
QuestionConvert a file into .doc template? Pin
gedinfo4-Mar-10 11:18
gedinfo4-Mar-10 11:18 
AnswerRe: Convert a file into .doc template? Pin
«_Superman_»4-Mar-10 15:44
professional«_Superman_»4-Mar-10 15:44 

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.