Solved

Test ActiveX DLL

Posted on 2000-02-16
7
274 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

 

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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

738 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