Solved

How to create a header file when making a dll

Posted on 2008-06-11
1
1,023 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
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…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
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.

763 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

12 Experts available now in Live!

Get 1:1 Help Now