|
-
November 20th, 2001, 03:21 PM
#1
Help on pointers
I have the following :
BOOL rc = DeviceIoControl(hVxd, ioctl_code, (char*)&cmdBuf,
count, (char*)&replyBuf, sizeof(replyBuf),
&bytesReturned, NULL);
My question is, cmdBuf is returned as a pointer. How can I assign a variable to this returned data so that I can do some manipulation. What I have been trying is :
*somepointer = cmdBuf[i];
or
somearray[8] = cmdBuf[i];
but the compiler complains. What am I doing wrong? I know it should be simple
but I am lost.
Thanks
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
|