?
Solved

VB.NET building DLLs

Posted on 2003-03-25
3
Medium Priority
?
205 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
[X]
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
  • 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

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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
Course of the Month8 days, 18 hours left to enroll

764 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