Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VB6 and testing DLLs

Posted on 2003-10-21
2
Medium Priority
?
351 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 900 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

Independent Software Vendors: 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!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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 …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses

926 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