|
-
March 12th, 2012, 10:16 AM
#5
Re: WriteFile(...) exception
 Originally Posted by bkelly
Well, I thought I had the parameters right. So I changed my declarations to:
Code:
DWORD m_bytes_written;
LPDWORD mp_bytes_written;
...
<constructor>
mp_bytes_written = &m_bytes_written;
...
WriteFile( ..., mp_bytes_written, ... )
and now it works.
Why did you need to do all of this just to pass an address of a DWORD?
Code:
DWORD m_bytes_written;
WriteFile( ..., &m_bytes_written, ... )
Regards,
Paul McKenzie
Tags for this Thread
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
|