Solved

Test ActiveX DLL

Posted on 2000-02-16
7
273 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

685 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