Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
HPA DLL
Message
From
30/11/1999 14:59:16
 
 
To
30/11/1999 14:50:47
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00296825
Message ID:
00297071
Views:
44
>The 32bit version - according to the Tech Support requires:
>
>errormsg=ABC.InitializeDLL(where ABC is the object ID)
>
>Ed says: "oHPA32N=CreateObj('Hpa32n.dllClass')
> errormsg=oHPA32N.InitializeDLL()" will work - and it does. That is I don't get any errors.
>
>I had misspelled "CreatOBJ" - sorry ED.
>
>But now how to pass the parms?
>

Just like you would to any other COM object in VFP - as a comma-delimited list of arguments passed in the parentheses.

cWhatisYourFavoriteColor = "Red...no blue"
oMyComObject.SillyObj("a Character Literal",@cWhatIsYourFavoriteColor,42)

would pass the string literal and the number by value, and would pass the variable cWhatIsYourFavoriteColor by reference, so that if anything changed the value, the revised value would come back to VFP.

VFP uses a fixed sequence of arguments to a method - if the VB examples use named parameter passing, you need to know the expected order of the variables. This can only be answered from the documentation.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform