> Thank you kindly for the suggested fixes. I have applied them; however,
> the problem is still there. I guess I can just build my wrapper using
> the object file instead of a dll file, but I am curious why the two
> would behave differently.
>
cause a DLL is an exe file with a funny extension it
> This is not a forum for debugging other peoples' code, but ...
>
> 1. You are using HANDLE * instead of HANDLE
> 2. Your logic for nul termination is totally wrong:
> snip
> Try that little lot and see what happens. At the worst it will let you
> diagnose any real error correctly.
Thank
> $ ./driver.exe
> EOF
> g(smiley face)Err: Close failed
This is not a forum for debugging other peoples' code, but ...
1. You are using HANDLE * instead of HANDLE
2. Your logic for nul termination is totally wrong:
c->buffer[nBytesRead + 1] = '\0';
should be
c->buffer[nBytesRe
3 matches
Mail list logo