Using WNetGetConnection()

Using WNetGetConnection()

Postby byron.hopp » Tue Mar 19, 2019 5:02 pm

I am trying to utilize the function WNetGetConnection with BCC7 and I get link errors like:

_WNetAddConnectionA
_WNetGetUserA
_WNetConnectionDialog
_WNetDisconnectDialog
_WNetGetConnectionA
_WNetCancelConnectionA

What do I need to add to my link script to get this to work?

Thanks,
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 372
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Using WNetGetConnection()

Postby byron.hopp » Tue Mar 19, 2019 11:14 pm

This function is listed in the Fivewin fwfun.chm, just using BCC7 as the compiler along with Harbour.
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 372
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA

Re: Using WNetGetConnection()

Postby rhlawek » Wed Mar 20, 2019 3:26 am

Try adding mpr.lib to your linker batch file.
User avatar
rhlawek
 
Posts: 194
Joined: Sun Jul 22, 2012 7:01 pm

Re: Using WNetGetConnection()

Postby byron.hopp » Wed Mar 20, 2019 5:15 am

That worked, Thank you...

c:\bcc7\lib\psdk\mpr.lib

I was shelling out to "net use m:>m_net.txt"
Parsing the file.

This is so much better.

Thanks again...
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
 
Posts: 372
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 35 guests