Solved

Test ActiveX DLL

Posted on 2000-02-16
7
269 Views
Last Modified: 2008-03-06
I think we may test an ActiveX DLL (or EXE) by project group similar to testing an ActiveX Control.
However, I just can not access Class1 of the DLL from the added project2 by
Dim myClass As New Class1

What wrong I did?

(I didn't make the DLL before test)
0
Comment
Question by:victorlong
  • 3
  • 3
7 Comments
 
LVL 2

Expert Comment

by:p_biggelaar
ID: 2529318
Is it the only class1? Do you get the pop-up option to add class1? Is class1 PrivateNotCreatable? Can you declare it as Dim MyClass As new TheDll.Class1?
0
 
LVL 1

Accepted Solution

by:
BabyFace earned 50 total points
ID: 2529320
Hi,

Did you reference project1 in project2?
In proj2, Goto Project -> References
And put a check beside the project which contained Class1. ex: project1
0
 

Author Comment

by:victorlong
ID: 2529331
Hi p_biggelaar,

>Is it the only class1?

Only one class in the DLL and that is Class1.

>Do you get the pop-up option to add class1?

First time when I run the project group, I got something (forgot what is that). Then I set Project2 as start up project and run the group again and didn't find any pop-up.

>Is class1 PrivateNotCreatable?

Don't know...I will check.

>Can you declare it as Dim MyClass As new TheDll.Class1?

No, that is the point at which an error occured.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:victorlong
ID: 2529342
To BabyFace:

Yes, I didn't do that.....and now it works!!

Cheers.
0
 

Author Comment

by:victorlong
ID: 2529349
Hi p_biggelaar,

Thank you for your help.
0
 
LVL 1

Expert Comment

by:BabyFace
ID: 2529350
Hey Victorlong,

So do I get the points?
0
 
LVL 1

Expert Comment

by:BabyFace
ID: 2529352
Opps,

Thanks
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now