?
Solved

VB.NET building DLLs

Posted on 2003-03-25
3
Medium Priority
?
207 Views
Last Modified: 2010-05-01
I have the standard version of VB.NET and I was reading a book on creating dll's from classes.  I understand that the standard version does not provide a template to create class libraries.  When I loaded the sample that came with the book I was however able to compile the sample into a dll.  So without a template I tried to start a Windows Application project…remove the form…add a class and make my own dll class library.  Sounded too easy and I didn’t think it would work and it didn’t.  Told me that I was missing a Main Sub when I compiled it.

After comparing the example that compiled to a dll and my own attempt, I found that the output type property on my project was Windows Applications and I have no way to change it to DLL.   The example didn’t show the name of its output property.  I’m sure its DLL or Class Library or something like that but is restricted because of the VB.Net standard limitations.

So my question is:  how does the example distinguish itself as a dll class library?  Can I with a text editor or something, modify my file so that VB thinks it’s a dll class library so I can compile it into a dll?

Maybe a better solution would be ?
1.     Start a new Windows Application to generate a new GUID and copy that line of code.
2.     Load the dll example and replace the GUID with then new GUID
3.     Replace the example class with my class
4.     Try compiling to a DLL


I’m awarding the points to the easiest solution.
0
Comment
Question by:woodsrr
  • 2
3 Comments
 

Author Comment

by:woodsrr
ID: 8204047
Or is there a way to get the class template and load it on my machine?  Is it something I can just download?

0
 

Accepted Solution

by:
sexy_teddie earned 600 total points
ID: 8209688
There is a .Net section to ask this question in and you may have better luck there.  But I think the answer is:  You have the standard addition which Microsoft set up with limited abilities.  If you look at the difference between your example code and your code you may find out what causes the file to know it will be compiled to a dll.
0
 

Author Comment

by:woodsrr
ID: 8209834
Your probably right.  I'll repost in the .Net section.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
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…
Suggested Courses

621 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