Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WNetAddConnection
Message
Information générale
Forum:
Visual C++
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00751659
Message ID:
00751784
Vues:
15
Hi,

You need to add Mpr.lib to list of linked libraries (Project settings->Link tab->Object/library modules). That's all.

>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform