Make dll" option is cli...">

"Error loading DLL" when compiling a DLL in VB6

I have a visual base 6 ".dll project" that uses links, and when the "File-> Make dll" option is clicked, it should generate a DLL file. Well, when you click "File-> Make dll", the error "Error loading DLL."

How can I see which links are missing?

+6
source share
6 answers

Under Project β†’ Links.

Look for the word MISSING: before the dll, which is not there.

+2
source

I saw that this error occurs when referenced components are recompiled without compatibility, but previous dll versions were not pre-registered not , therefore registry keys for typelibs are not deleted and these dummy registry entries point to new DLLs.

I usually communicate with them using an internal registry cleaner, which can remove typelibs / clsid / interfaces from register based on the location of the typelib disk. You can try to move the physical files of the link projects to another location on the disk and regsvr32 them there, manually delete the links from the project file, restart the IDE and reopen the project, finally add the links and check that the dll location in the additional dialogs links to the location of the new files .

+2
source

If you do not have MISSING links, try compiling project libraries using project compatibility instead of binary compatibility. VB6 can be confused with binary compatibility when there are several libraries in the library hierarchy.

+1
source

It was a while, but from the top menu - "Project" β†’ "Links", and the missing ones are usually highly certified or skipped next to them.

0
source

In the project β†’ Links, double-check the location of all your links. Your link may have the correct name, but may point to another instance of the same library.

0
source

In 2019, the same error occurred on my old xp laptop in a project migrated from Excel VBA to VB6. I read all the answers above and could not solve the problem (for starters, there are no missing links, and not many changes were made to the default library locations). What actually solved my problem is rather strange. I double-clicked and opened all the forms and Designer modules (in fact, loading their components into memory) and voila, the error disappeared on its own. I tried to reproduce the error and it returns when I run the IDE again. Finally, it turned out that there is one such cumbersome user form with great control - the culprit. I could not understand which control was causing the dll error, but so far the work has been completed.

0
source

Source: https://habr.com/ru/post/904157/


All Articles