Solved

How to create a header file when making a dll

Posted on 2008-06-11
1
1,024 Views
Last Modified: 2013-11-26
I have a created a class project in vb.net 2005 and have created the dll. I also need to create a header file so I can load the library into matlab. How do you create a header file in vb.net?
Pam
0
Comment
Question by:pamwestphal
1 Comment
 
LVL 14

Accepted Solution

by:
rachitkohli earned 250 total points
ID: 21768351
i got following from some site

1. You could package the library as a COM DLL with an embedded type library.  
 
The compiler can then create a header file from this DLL (using #import) so  
 
you have only a single thing (the DLL) that needs to be distributed to the  
 
developers using the library.  
 
2. You could package the library as a managed (.NET) assembly, which  
 
includes rich meta data.  Someone targeting the library can then get the  
 
definitiong using the #using directive.  
 
But for native non-COM development, you'll typically just distribute the  
 
DLL, the associated import library (for static linking against the DLL - no  
 
LoadLibrary/GetProcAddress) and the header file(s) to your developers.  
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
C# GridRow get Old/New Value 1 55
Anyway to make "All" the default in the dropdown? 6 33
Not showing page correctly 3 29
Problem to picture file 20 29
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

947 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

21 Experts available now in Live!

Get 1:1 Help Now