Solved

VB6 and testing DLLs

Posted on 2003-10-21
2
342 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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now