I just created a DLL for my boss in MSVC ++ 2010. I selected the "New Win32 DLL" with the option "Export characters", so everything is completely standard. The new project files have a certain predefined export, a class, its constructor, a global function and a variable with dummy values, and a dllmain.cpp file with the APIENTRY function. I have not changed anything.
Now my boss wants to use the exported stuff in his VB6 project. He started the VB6 project, made the “Project” - “Links” menu (translated from German into English, so it can be a little different, but I'm sure you know what I mean) and selected the DLL file, also as he says he usually does.
However, VB6 cannot enable it; instead, the error message "cannot include the DLL file" appears (without a real reason). The same thing happened with the standard new DLL project with Visual C ++ 6. My boss thinks this may be because the characters are not actually exported, or VB6 needs special declarations. Does anyone know what the problem is?
source
share