Solved

How to create a header file when making a dll

Posted on 2008-06-11
1
1,040 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
[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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
In this post we will learn different types of Android Layout and some basics of an Android App.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
Simple Linear Regression

726 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