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

run time error while accessing compiled dll

Status
Not open for further replies.

santosh1

Programmer
Apr 26, 2002
201
0
0
US
Hello-

I compiled a dll compatible and made it project compatible to the previous dll.
When I ran the EXE application, while accessing the dll
I get the following error. Is there any reason why?
Please let me know how I can fix it. I will appreciate
your help very much.

Error:

Class does not support automation or does not support expected interface

Thankyou.

Santosh
 
This can happen for a number of reasons...actually anything that causes ur dll to crash will show this error ive found.

The only way to get rid of it is to debug ur dll...if u dont know how to do it ill leave a few pointers.

- in project properties, select the debugging tab and select (wait for components to be created) option.
- set a break point where u want in a public sub or function
- Start the dll
- Create a standard exe and reference the dll
- dimension an object from the dll
- call a function in the dll where u set the break

The project should switch to the dll for debugging where u call the Public sub or function and u should find ur bug.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top