[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 278
  • Last Modified:

Test ActiveX DLL

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
victorlong
Asked:
victorlong
  • 3
  • 3
1 Solution
 
p_biggelaarCommented:
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
 
BabyFaceCommented:
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
 
victorlongAuthor Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
victorlongAuthor Commented:
To BabyFace:

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

Cheers.
0
 
victorlongAuthor Commented:
Hi p_biggelaar,

Thank you for your help.
0
 
BabyFaceCommented:
Hey Victorlong,

So do I get the points?
0
 
BabyFaceCommented:
Opps,

Thanks
0

Featured Post

Industry Leaders: 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!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now