-
Creating a usable DLL
I using Visual Basic .Net and C++ .Net and trying to get them to interact. Now I've only found one C++ DLL to create and it's on a WIN32 platform and my VB project won't add a reference to it because it wants a DLL on a .Net platform. The error I'm getting is 'This is not a .Net assembly'
Does anyone know how to setup a DLL on a .Net platform or have any idea on how to get around this problem?
-
im not sure, state more exactly what problem you are having? have you set your C++ DLL project to be managed C++? or is it native code? Are you having problems calling it from your VB app? I know theres an article on www.flipcode.com about calling a vb dll in C++
-
I've written up a MFC DLL project in visual c++ and compiled it there. Then I wrote up a WINDOWS APPLICATION program in visual basic and compiled it there. Now when I try to add a reference to DLL from the visual basic program I get the error of 'Not a .Net Assembly'.
The main problem is my VB program can't call any of the functions from my C++ DLL because it won't reference it.