Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to check that a OLE server was correctly instanciate
Message
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00338617
Message ID:
00339158
Vues:
21
>I've created a brand new DLL called Proj1.Test in VFP. In it's initialisation event, I return False. Here is the lines I've put in VB:
>
>Dim lotest As proj1.test
>Set lotest = New proj1.test
>
>I get "Automation error" the second line.
>
>If I have to insert an On Error redirection, I will add it. I just want to know if it's the only way to check if a COM was started correctly.
>
>TIA
>Try to change your component or your class name, rebuild it and try again.

«In it's initialisation event, I return False.»

How do you return the value? Try not to return value. The real test I want you to do is to simply add a method to your class that will display a message box and call it from VB. Once this functionning, play with initialization!
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform