Problem with RAS

Problem with RAS

Postby Maurizio » Fri Apr 20, 2007 8: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
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Re: Problem with RAS

Postby Enrico Maria Giordano » Fri Apr 20, 2007 9:38 am

Try linking rasapi32.lib.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Maurizio » Fri Apr 20, 2007 11:55 am

I have the same problem

Regards MAurizio
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Postby Enrico Maria Giordano » Fri Apr 20, 2007 12:27 pm

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

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Tue Apr 24, 2007 11:53 am

Solved :-)

Please add these lines in rasapi.c:
Code: Select all  Expand view  RUN
#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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Maurizio » Tue Apr 24, 2007 1:42 pm

Thank Antonio

but I have the same error
(I have FW27)

Regards MAurizio
User avatar
Maurizio
 
Posts: 825
Joined: Mon Oct 10, 2005 1:29 pm

Postby Antonio Linares » Tue Apr 24, 2007 5:36 pm

Maurizio,

Here it is building fine, using FWH 7.04
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 35 guests