Ask the Expert

Problem with ActiveX on Win2000

I have a problem with ActiveX on Win2000. I made a new project using the Microsoft ActiveX Control Wizard. I made no changes to the generated code. When I compile the sources, and try to register the .ocx file, it gives me an error: "LoadLibrary failed. Invalid access to memory location." This works fine with VC++6 on WinNT, but not for VC++6 on Win2000.
You should get the latest service pack for Visual C++ 6, which is SP5 and see if that fixes the problem. Additionally, you should try and debug the DLL to see what's wrong. You can easily debug the DLL registration by setting breakpoints in the entry points and using REGSRV32.EXE as the executing application.

This was first published in May 2002

Join the conversationComment

Share
Comments

    Results

    Contribute to the conversation

    All fields are required. Comments will appear at the bottom of the article.