Solved

How to create a header file when making a dll

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

This is an explanation of a simple data model to help parse a JSON feed
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

778 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