Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Type mismatch with new dll
Message
Information générale
Forum:
Visual Basic
Catégorie:
Contrôles ActiveX
Divers
Thread ID:
00427186
Message ID:
00427207
Vues:
12
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
I'm having a problem with version compatiblity when changing a dll. I'm running VB 6 on Windows NT.
I have two activex dlls and an exe, the first dll is passed to the second by the exe project, I have changed the interface of the second, removed mutual references from the other two projects , cleared the registry of all refs to the dlls, recompiled both dlls with version compatibility set off, registered the dlls and added the new references to both the first dll and the exe project. When the running the project and passing one dll to the other I get a type mismatch error.

Can anybody shed any light on the situation?
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

Hi Simon -- you say you do this:
"recompiled both dlls with version compatibility set off, "

and I think that's your problem. You actually want it ON (either project or binary compatibility). Binary is probably the safest -- it will compare your new DLL to a specified DLL (i.e., the old one) and regenerate all the required library info. You say you clear out the registry -- I would have thought that this would do the same, but a) it does not, or b) you missed something, or c) there's info stored yet somewhere else that we don't know about....

You may also need to recompile the EXE (I am not sure, in passing the first DLL to the second, whether or not the EXE needs to reference to progid and all that other good stuff -- if so, you will need to recompile).

Hope this helps.

Vin
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform