Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error: Variable uses an Automation type not supported in VB
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Titre:
Error: Variable uses an Automation type not supported in VB
Divers
Thread ID:
00331104
Message ID:
00331104
Vues:
81
Our application uses GUIDs for primary keys in the database. We are using CoCreatGUID just like the Microsoft example in Http://support.microsoft.com/support/kb/articles/Q176/7/90.asp

Because there are several applications which hit the database, I thought I would be clever and write a DLL in VB to return a guid upon request so we wouldn't be actually copying code.

Unfortunately, I get a compile error when I try to run the code. The error is: Variable uses an Automation type not supported in VB.

My questions are:

Can I call ole32.dll from inside an ActiveX dll or should I stick with copying code?

Can you call APIs from ActiveX dlls at all?


Any input provided would be appreciated.
Répondre
Fil
Voir

Click here to load this message in the networking platform