Solved

How to create a header file when making a dll

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

Industry Leaders: 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

Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

738 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