General information
Category:
Coding, syntax & commands
Hi all,
Hopefully someone can answer this...
I'm writing a DLL and trying to make use of a call to WNetAddConnection2 to allow re-mapping to a drive if not already mapped. Yes, there are probably other alternatives such as using WINAPI.DLL, etc, but I like to understand things behind the scenes too...
I have all the code in place for the LPNETRESOURCE, and pointers to a drive letter, user ID and password to attach with.
I try to compile and it gives an error of
unresolved external symbol _WNetAddConnection2A@16
if I try to rightmouse on the use of it and state "Go to Definition", it properly finds the correct .h file. So, what am I missing here.
TIA
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only