Using WNetGetConnection()

Post Reply
byron.hopp
Posts: 254
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Using WNetGetConnection()

Post 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,
Thanks,
Byron Hopp
Matrix Computer Services
byron.hopp
Posts: 254
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Re: Using WNetGetConnection()

Post by byron.hopp »

This function is listed in the Fivewin fwfun.chm, just using BCC7 as the compiler along with Harbour.
Thanks,
Byron Hopp
Matrix Computer Services
User avatar
rhlawek
Posts: 165
Joined: Sun Jul 22, 2012 7:01 pm

Re: Using WNetGetConnection()

Post by rhlawek »

Try adding mpr.lib to your linker batch file.
byron.hopp
Posts: 254
Joined: Sun Nov 06, 2005 3:55 pm
Location: Southern California, USA
Contact:

Re: Using WNetGetConnection()

Post 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...
Thanks,
Byron Hopp
Matrix Computer Services
Post Reply