Re: Problem going from .o -> .dll

2003-01-08 Thread Jim
> 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

Re: Problem going from .o -> .dll

2003-01-08 Thread Travis Whitton
> 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

Re: Problem going from .o -> .dll

2003-01-08 Thread Dave Hooper
> $ ./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