|
-
April 5th, 2012, 04:04 AM
#5
Re: String.Find() not working ...
I certainly did debug it 
I am using a Trace from inside of VC++ 2010 Express.
I have this in my code:
Code:
size_t xpos;
xpos = comData.find("X:");
Then just below that line, I have the trace: {xpos}
The output log says: CXX0017: Error: symbol "xpos" not found
Yet, if i just change it to {comData} then I see the original "X:123Y:123Z:123" so I know the traces are working pproperly... it just doens't make sense.
My guess is for some reason that find() is not returning anything...
I should also mention, I have used string.find_first_of(); before this, and it works fine... could that be causing the other functions to hang or something?
Last edited by ChadReitsma; April 5th, 2012 at 04:13 AM.
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
|