Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionCString Pin
raju_shiva24-Aug-10 19:23
raju_shiva24-Aug-10 19:23 
AnswerRe: CString PinPopular
Niklas L24-Aug-10 19:43
Niklas L24-Aug-10 19:43 
AnswerRe: CString [modified] Pin
Shivanand Gupta24-Aug-10 20:38
Shivanand Gupta24-Aug-10 20:38 
GeneralRe: CString Pin
goorley24-Aug-10 22:34
goorley24-Aug-10 22:34 
GeneralRe: CString PinPopular
CPallini24-Aug-10 23:28
mveCPallini24-Aug-10 23:28 
AnswerRe: CString PinPopular
CPallini24-Aug-10 21:18
mveCPallini24-Aug-10 21:18 
GeneralRe: CString Pin
raju_shiva24-Aug-10 21:49
raju_shiva24-Aug-10 21:49 
GeneralRe: CString Pin
CPallini24-Aug-10 21:58
mveCPallini24-Aug-10 21:58 
raju_shiva wrote:
str1 = str .Left(str .Find("("));
str2 = str .Right(str .Find("("));


Change to:
int pos = str.Find("(");
str1 = str.Left(pos);
str2 = str.Right( str.GetLength() - pos - 1); 


However, I still would use Tokenize for the overall task.
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

[My articles]

GeneralRe: CString Pin
raju_shiva25-Aug-10 22:20
raju_shiva25-Aug-10 22:20 
GeneralRe: CString Pin
Shivanand Gupta25-Aug-10 8:55
Shivanand Gupta25-Aug-10 8:55 
QuestionUsing DeleteVolumeMountPoint function. Pin
dipuks24-Aug-10 11:53
dipuks24-Aug-10 11:53 
AnswerRe: Using DeleteVolumeMountPoint function. Pin
Peter_in_278024-Aug-10 13:22
professionalPeter_in_278024-Aug-10 13:22 
AnswerRe: Using DeleteVolumeMountPoint function. Pin
Sauro Viti24-Aug-10 21:11
professionalSauro Viti24-Aug-10 21:11 
GeneralRe: Using DeleteVolumeMountPoint function. Pin
dipuks25-Aug-10 2:45
dipuks25-Aug-10 2:45 
QuestionTrouble with VirtualAlloc Pin
garyflet24-Aug-10 8:30
garyflet24-Aug-10 8:30 
AnswerRe: Trouble with VirtualAlloc Pin
Luc Pattyn24-Aug-10 9:24
sitebuilderLuc Pattyn24-Aug-10 9:24 
GeneralRe: Trouble with VirtualAlloc Pin
garyflet24-Aug-10 10:08
garyflet24-Aug-10 10:08 
AnswerRe: Trouble with VirtualAlloc Pin
Luc Pattyn24-Aug-10 10:15
sitebuilderLuc Pattyn24-Aug-10 10:15 
AnswerRe: Trouble with VirtualAlloc Pin
norish24-Aug-10 19:24
norish24-Aug-10 19:24 
AnswerRe: Trouble with VirtualAlloc Pin
Aescleal25-Aug-10 0:55
Aescleal25-Aug-10 0:55 
QuestionMessage Removed Pin
24-Aug-10 6:19
garyflet24-Aug-10 6:19 
AnswerMessage Removed Pin
24-Aug-10 6:53
garyflet24-Aug-10 6:53 
GeneralRe: [Solved] Enabling SE_LOCK_MEMORY_NAME privilege Pin
Maximilien25-Aug-10 3:47
Maximilien25-Aug-10 3:47 
QuestionReusing an Incremented Variable within a Single Statement Pin
Skippums24-Aug-10 5:24
Skippums24-Aug-10 5:24 
AnswerRe: Reusing an Incremented Variable within a Single Statement Pin
Sauro Viti24-Aug-10 5:41
professionalSauro Viti24-Aug-10 5: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.