Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


Cannot locate entrypoint SetHandleContext in kernel32

 Keywords:  Cannot locate entrypoint SetHandleContext in kernel32.dll

Question:

I am running a Large (complete) EXE from a temporary directory on a Win2000 machine. I get the error 'Cannot locate entrypoint SetHandleContext in kernel32'. When I press ok, I get another error 3437 Extender dll load failed, on the line addextender("wwwnt32i.dll").

The strange thing is when I run this from WinBatch Studio, it runs fine on the same machine.

I am running Winbatch 2000c, WinNT extender version 11017.

Answer:

After much hoopla. We narrowed it down to, a stray copy of wsock32.dll (the wrong version for Win 2000) in the same directory as the exe. (Note the EXE was located in the 'c:\temp' directory along with this stray wsock32.dll)

When we removed that stray dll from the directory in which the compiled exe was running, it solved the problem.

I personally cannot explain this. I'll just call it the magic of Windows.........

More on this issue...

Check out the following Microsoft Tech article:
http://support.microsoft.com/directory/article.asp?ID=KB;EN-US;Q300179&

For more information about Winsock dll versions, check out:
http://support.microsoft.com/servicedesks/fileversion/dllinfo.asp?sd=MSDN

Try searching for 'wsock32.dll'.


Article ID:   W14846