Quote Originally Posted by bkelly View Post
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