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