Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WNetAddConnection
Message
General information
Forum:
Visual C++
Category:
Coding, syntax & commands
Title:
WNetAddConnection
Miscellaneous
Thread ID:
00751659
Message ID:
00751659
Views:
99
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
Map
View

Click here to load this message in the networking platform