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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Include Type Library in Project

Status
Not open for further replies.

CajunCenturion

Programmer
Mar 4, 2002
11,381
US
How can one include a type library into a VFP 8.0 project so that any objects and classes defined within that type library may be used by the application?

Thanks.


--------------
Good Luck
To get the most from your Tek-Tips experience, please read
FAQ181-2886
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
You don't need to do that. It's not a question of using the objects in the type library. The objects are in the COM file or DLL, and are automatically available to your code, provided it can find the relevant file.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Thanks Mike. It turns out that it's not just finding the relevant file because the names of these type COM objects as they appear in the object browser may not be the same as the name required by the CREATEOBJECT function.

To find the correct CREATEOBJECT name, search the registry for the name as it appears in the object browser. Once you find it, then use the associated ProgID value as the parameter to CREATEOBJECT.


--------------
Good Luck
To get the most from your Tek-Tips experience, please read
FAQ181-2886
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top