FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Problem with RAS
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM

Problem with RAS

Posted: Fri Apr 20, 2007 08:07 AM

I am trying the sample RATEST.PRG and TESTRAS.PRG but I have this
errors:

Borland C++ 5.5 for Win32 Copyright (c) 1993, 2000 Borland
ratest.c:
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external 'RasDial' referenced from C:\FW27\LIB\FIVEHC.LIB|RASA
PI
Error: Unresolved external 'RasHangUp' referenced from C:\FW27\LIB\FIVEHC.LIB|RA
SAPI
Error: Unresolved external 'RasGetConnectStatus' referenced from C:\FW27\LIB\FIV
EHC.LIB|RASAPI
Error: Unresolved external 'RasEnumConnections' referenced from C:\FW27\LIB\FIVE
HC.LIB|RASAPI
Error: Unresolved external 'RasEnumEntries' referenced from C:\FW27\LIB\FIVEHC.L
IB|RASAPI
Error: Unresolved external 'RasGetErrorString' referenced from C:\FW27\LIB\FIVEH
C.LIB|RASAPI
* There are errors

Regards Maurizio

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Re: Problem with RAS

Posted: Fri Apr 20, 2007 09:38 AM

Try linking rasapi32.lib.

EMG

Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM

Problem with RAS

Posted: Fri Apr 20, 2007 11:55 AM

I have the same problem

Regards MAurizio

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM

Problem with RAS

Posted: Fri Apr 20, 2007 12:27 PM

I confirm. It seems to be a problem in rasapi.c.

EMG

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Problem with RAS

Posted: Tue Apr 24, 2007 10:51 AM

It looks as the Ras API is not supported in all Windows versions.

We are reviewing it

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Problem with RAS

Posted: Tue Apr 24, 2007 11:53 AM
Solved :-)

Please add these lines in rasapi.c:
#include <WinTen.h>
#include <Windows.h>
#include <ClipApi.h>

#ifdef __FLAT__
#define RasDial RasDialA
#define RasHangUp RasHangUpA
#define RasGetConnectStatus RasGetConnectStatusA
#define RasEnumConnections RasEnumConnectionsA
#define RasEnumEntries RasEnumEntriesA
#define RasGetErrorString RasGetErrorStringA
#endif

#include <Ras.h>
#include <RasError.h>
...
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM

Problem with RAS

Posted: Tue Apr 24, 2007 01:42 PM

Thank Antonio

but I have the same error
(I have FW27)

Regards MAurizio

Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Problem with RAS

Posted: Tue Apr 24, 2007 05:36 PM

Maurizio,

Here it is building fine, using FWH 7.04

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion