Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM Via VFP6

Status
Not open for further replies.

tom10

Programmer
Jul 7, 2001
16
GB
I am deveoping an application which requires to address an Active X control provided by another application.

This is provided via an EXE (ie. out-of-session)

I am able to see via the class browser all the function calls that the Active X provides by opening the type library file that came with the SDK.

I have used CreatObject to instantiate but nothing happens. Can you suggest what might be wrong.

This is my first attempt to use COM.

Thanks in advance


Tom Macaulay

 
COM servers, and ActiveX controls are really two different types of files (EXE/DLL vs. OCX).
Can you provide a sample of the code that isn't working. When you say "nothing happens", what does that mean? Usually you'll get some sort of OLE or COM error if the CREATEOBJECT() doesn't work.

Rick
 
Tom,

Have you done any Office Automation? Instantiating an Object thru CreateObject, only makes the methods and properties of the object available. Nothing is supposed to directly happen after the CreateObject line. But you will now have access to the Com Component.

Perry

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top