Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing parameters to ole automation server dll
Message
From
30/04/1999 17:36:55
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Title:
Passing parameters to ole automation server dll
Miscellaneous
Thread ID:
00214135
Message ID:
00214135
Views:
44
I'm trying to use a function from an ole server. The prototype is:

GetAuth(string Code,string Machid,short Users)

I am getting a type mismatch error returned from the server. Apparently its the short Users parameter that causes the error because if I omit parameter 3 I get an error message telling me the number of parameters is incorrect. If I then remove the @ symbol from one to the two string types I get the type mismath error again.

Here is how I try to use it:

lccode = space(60)
lcid = space(60)
lnusers = 0
object.GetAuth(@lccode,@lcid,@lnusers)

The server is supposed to modify the parameters so I can use them in my program. I have tried passing the parameters by value instead of reference but still can't get it to work.

Any suggestions would be greatly appreciated.
Thanks,
David
Reply
Map
View

Click here to load this message in the networking platform