How do I build a dll on windows?

56 views
Skip to first unread message

Jamie Stotz

unread,
Mar 8, 2015, 11:18:51 AM3/8/15
to pdfhummus-in...@googlegroups.com
I've heard that it is difficult or impossible to use C++ with VB.net. Is it possible with this library to build a DLL? If so, how do I do it?

I followed the instructions for compiling on windows, but I was using Visual Studio Express 2013. It seemed to build correctly as static libraries, which I guess is the default. It put 4 .lib files in the Win32 folder. However, I couldn't add them as a reference to another solution. So I changed the preference setting to DLL and when I built it I got many (50-70) errors that said something about missing external symbols. (That may not have been the exact phrase; I can get the exact messages if it is important.)

Thanks

Gal Kahana

unread,
Mar 9, 2015, 4:28:10 PM3/9/15
to pdfhummus-in...@googlegroups.com
The simplest way to do this is to create a C++ dll that links statically to the hummus libraries, and export only the functions that you want to use in VB.

Alternatively modify the cmake files and add relevant code into the hummus code, folliwng these guidelines:
that's the more complicated option.

Gal.
Reply all
Reply to author
Forward
0 new messages