Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem using COM object
Message
 
 
To
08/06/2009 21:46:54
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01404188
Message ID:
01404622
Views:
56
This message has been marked as the solution to the initial question of the thread.
Aditya,

Then you are going to have to be much more explicit about the error you are getting. What does AERROR() tell you? Can you access any of the properties? If it works in VB6 then the same basic code should work in VFP.

Using single letter names for variables in Xbase languages is a very bad thing to do, because they can be confused with workarea aliases. Use oX = createobject() for hacking around testing things and a more meaningful variable name in your real code.

>Yes the type of the variable after a createobject is O ,the VB6 code is similar to what is used in vfp except the keyword set i.e.
>set o=createobject("Logic.comutil")
>o.getappname()
>and lastly all the required python stuff is bundled itself into the dll in question.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform