It's a library file (*.lib). When I try to compile it as a .dll, it
gives me all kinds of linker errors. Not sure how to compile it as a
dll!
Here are the errors:
Error 4 error LNK2019: unresolved external symbol __imp__ldap_unbind
referenced in function "int __cdecl GetChangeNotifications(wchar_t *)"
(?GetChangeNotifications@@YAHPA_W@Z) adMonlib.obj
I've added the path to the dll's (mfc) where these are located to no
avail.
Herfried K. Wagner [MVP] wrote:
"Bmack500" <br********@gmail.comschrieb:
Okay, this is a pretty basic question. I've created a static library
using c++. Now, I've started a vb.net project. How do I reference the
functions in the static library? I'm using Visual Studio 2005.
I.E., how do I add the library to the project, and call it's functions?
You do not need to add a reference to your VB project if you are talking
about a standard C++ DLL which exports functions. Check out the 'Declare'
statement and the 'DllImportAttribute' class, both can be used to access
functions exported by a native DLL.
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>