Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cant use COM object methods
Message
De
24/10/2001 12:27:10
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00572485
Message ID:
00572694
Vues:
19
You can definately get return values from the methods. Remove the OLEPUBLIC reference from the class and compile it as a regular VFP class. Then you should be able to debug it and find the problem.

>I´ve created a COM Server that only contains a class named Class1.
>I´ve registered the DLL using regsvr32 successfully.
>This class has a couple of methods, that return string variables.
>Almost I can create an object of this class, when I try to call this methods, I get messagebox saying "Syntax error".I know parameters are right.
>
>Why I get this error message?
>
>I´ve tried using the class adding it to the project, and it does work.
>Isn´t posible to return variables from COM objects?
>Must I get this values from properties?
>
>Thanks for your help,
>Ibai
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform