|
-
Dec 3rd, 2001, 12:34 AM
#1
Thread Starter
Lively Member
very perplexing
Can anyone tell me how to make the lpBuffer from ReadFile into a usable string. I need to open a file, read it, then search the entire buffer for certain things. I can't figure out how make what is returned into something I can use. I'm used to VB but I have to make this in C++ which I am not very accustomed to.
-
Dec 3rd, 2001, 09:11 AM
#2
Since lpBuffer probably is char*, you can directly use it as string. If it is not, you need to cast the pointer, like (char*)lpBuffer.
And you got to append a '\0' to the end.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
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
|