Information générale
Catégorie:
Codage, syntaxe et commandes
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
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement