Hi, people
Please, I need an example on how to connect to Ads 8 , using odbc and
oledb, whicht's best?

Thanks very much.
Pedro

Is this code ok??



ulRetVal = AdsConnect( "D:\DBF", &hConnection1 )

if ( ulRetVal != AE_SUCCESS )

MESSAGEBOX("OK")

ELSE

MESSAGEBOX
("ERROR CONEXION")

endif



ulRetVal = AdsOpenTable( 0, "D:\data\acceso_modificaciones.dbf", null,
ADS_CDX,;

ADS_ANSI, ADS_COMPATIBLE_LOCKING, ADS_CHECKRIGHTS, ADS_SHARED, &hTable )

if ( ulRetVal != AE_SUCCESS )

MESSAGEBOX("OK")

ELSE

MESSAGEBOX
("ERROR CONEXION")

endif

--

DNS USUARIO.jpg