FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Using WNetGetConnection()
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Using WNetGetConnection()
Posted: Tue Mar 19, 2019 05: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
Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Using WNetGetConnection()
Posted: 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
Posts: 195
Joined: Sun Jul 22, 2012 07:01 PM
Re: Using WNetGetConnection()
Posted: Wed Mar 20, 2019 03:26 AM

Try adding mpr.lib to your linker batch file.

Posts: 408
Joined: Sun Nov 06, 2005 03:55 PM
Re: Using WNetGetConnection()
Posted: Wed Mar 20, 2019 05: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

Continue the discussion