|
-
June 1st, 2006, 09:40 AM
#1
How to use Tokenize() wid CStrings in VC6
Hi,
I am not able to use Tokenize() method wid CString objects in my VC6 application while same code was compiled successfully in VC.Net.
int curPos = 0;
CString resToken = strDecimalWords.Tokenize(" ",curPos);
while strDecimalWords which is CString object,contains "1 hundred 23".
but VC compiler is showing this compile time error.
f:\advivr\ivractionmanager.cpp(495) : error C2039: 'Tokenize' : is not a member of 'CString'
Can anyone suggest wat to do.
Regards
-
June 1st, 2006, 10:00 AM
#2
Re: How to use Tokenize() wid CStrings in VC6
There is a library routine strtok() that may be suitable for your needs. Read the documentation carefully as there are various caveats to its use.
Nope that helps.
-
June 2nd, 2006, 02:04 AM
#3
Re: How to use Tokenize() wid CStrings in VC6
Tokenize is not available in the CString implementation of VC6. You can use strtok like Andrew Hain said.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|