Page 1 of 1

Using WNetGetConnection()

Posted: Tue Mar 19, 2019 5:02 pm
by byron.hopp
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,

Re: Using WNetGetConnection()

Posted: Tue Mar 19, 2019 11:14 pm
by byron.hopp
This function is listed in the Fivewin fwfun.chm, just using BCC7 as the compiler along with Harbour.

Re: Using WNetGetConnection()

Posted: Wed Mar 20, 2019 3:26 am
by rhlawek
Try adding mpr.lib to your linker batch file.

Re: Using WNetGetConnection()

Posted: Wed Mar 20, 2019 5:15 am
by byron.hopp
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...