I'm trying to use a c .dll, is it possible to use/include the required .h-files directly in VB or do I have to rewrite all the declarations in VB itself?
Printable View
I'm trying to use a c .dll, is it possible to use/include the required .h-files directly in VB or do I have to rewrite all the declarations in VB itself?
The latter.
Thanks for the quick answer, although.....
The amount of "rewriting" makes me consider to move my application to C++
C++/CLI might be worth a look for you. CLI IntelliSense is broken in VS2010, making it a bit of a pain. I think it works in 2008 and it definitely works in 2012. It would mean you could still potentially write the bulk of your application in VB. There would still be quite a lot of work to do in writing a wrapper but you end up with being able to access the dll from VB as you would any other framework component, i.e. nice and friendly and no nasty PInvoke.
Maybe the PInvoker add-in would be something for you.
Thanks for this one. Actually I'm trying to use it, but I'm stuck with the trials to install the AddIn Version. It requires Visual Studio 2010, and I'm having trouble to get it.