Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


refering a dll in an vb application?

Posted on 2003-03-20
Medium Priority
Last Modified: 2010-04-17
Dear Friends,
    Please find the doubt what I have as follows...
  1)a)we have a activex dll developed using VB or vc++.
    b)what is the difference between resitering it using regsvr32 and refering it using a project references option.Is both the operations are madatory to use that dll in the client machine.please explain me what is the difference?

Question by:sekhar2000
  • 2
LVL 23

Accepted Solution

Roshan Davis earned 500 total points
ID: 8172421

Registering a Component/ActiveX is making that ActiveX accessible on that machine. So any application can use that ActiveX in that Machine.

Now the Active X is available on the machine, that is registered...

Now we want to access that available Active in a specific Application. For that, the application must know what is its UNIQUE Class ID/Global ID, and what are its export functions, what are its interfaces etc.

That is when your application using a specific active, you are launcing that application on another machine, that will give expected result only when you registered that ActiveX in that machine.

Good Luck
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 500 total points
ID: 8173071
Registering is to tell Windows where to find this DLL (the full path) when an application request it.

Referencing is to give VB the ability to provide intellisense and be able to do some check at compile time (does the method exist, are the arguments OK, ...)

Expert Comment

ID: 9446965
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
Post your closing recommendations!  No comment means you don't care.
LVL 70

Expert Comment

by:Éric Moreau
ID: 9447045
split points between emoreau and roshmon

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Loops Section Overview

580 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