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!

Class Defintion _________is not found

Status
Not open for further replies.

Keepontrying

Programmer
May 12, 2003
67
US
I place the class inside my project, locate the class inside my directory and even set classlib to my directory and yet when I make the call createobject("nameofclass") I get the "class defintion is not found" error.

The class I am using is a activex.dll I register it with the regsvr32 and it reported sucessful. any suggestion?

John
 
Check the path just before calling the class, I doubt it could have changed !!
Sebastian
 
I place the class inside my project,
locate the class inside my directory
set classlib to my directory
..

SET CLASSLIB TO myPathmyClasslIB
IS THE CORRECT WAY. In a compiled application where the class is included in the project, the path will be ignored.

Have you tried, creating a sample form in which you drag and drop the activex from the class library into the form and try running it. If it runs correctly, then,
Open the class browser and see the code for the form you tested. Compare it with code you have made.
You will know where you make the error.
:)

ramani :)
(Subramanian.G)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top