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
Solved

VB6 and testing DLLs

Posted on 2003-10-21
2
346 Views
Last Modified: 2010-05-01
I am using VB6 to build a Word Addin.

I was intending to create is as a DLL.

However my experience with VB6 is limited to creating the odd very minor exe file, ie just playing.

So can I ask a few questions:

1)What are the differences between all the possible projects, ie standard exe, DLL addin, Dll, DLL exe etc.
2)Which one is best suited for my task.
3) what is the best practice for testing DLLs etc, I mean, if I create a form in a DLL, I cannot simply press F5 and expect it to compile and run, nothing happens. Do I have to create the DLL project, and then create a standard exe project, then compile the DLL and reference the exe project to it? Or is this what the "Groups" are about?

I will split the points up for the questions if needed.

You adivce/thoughts are appreciated.

Regards,
Cassandra
0
Comment
Question by:FowlerB
2 Comments
 

Author Comment

by:FowlerB
ID: 9596298
Also what is the difference between an ActiveX DLL and and a standard DLL?
0
 
LVL 26

Accepted Solution

by:
EDDYKT earned 300 total points
ID: 9598021
>>Also what is the difference between an ActiveX DLL and and a standard DLL?
Activexdll can be create by using createobject which standard dll has to use declare function to call

VB cannot create standard dll

>>1)What are the differences between all the possible projects, ie standard exe, DLL addin, Dll, DLL exe etc.

standard exe run alone and cannot create by using createobjectdll addin is for office which allows all office product to see and use.
dll is in-process
exe is out-process (not run in same address space)

>>2)Which one is best suited for my task.
dll addin I believe.

>>3) what is the best practice for testing DLLs etc, I mean, if I create a form in a DLL, I cannot simply press F5 and expect it to compile and run, nothing happens. Do I have to create the DLL project, and then create a standard exe project, then compile the DLL and reference the exe project to it? Or is this what the "Groups" are about?

Dll is in-process so that you have create a container to run it such as standard exe
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Problem to skip loop 6 62
VB error "Type mismatch" 2 59
VBA filters 2 64
How to set the sa password in a vb6 code for sql connection 9 58
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

790 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