Usando C++ no Clipper

Fórum sobre a linguagem CA-Clipper.

Moderador: Moderadores

syda
Usuário Nível 1
Usuário Nível 1
Mensagens: 28
Registrado em: 20 Ago 2003 21:13
Localização: Manaus - AM

Usando C++ no Clipper

Mensagem por syda »

Socorro!!! :eek:

Preciso acessar as funções de uma dll que recebi e mandaram o seguinte código em C++ no arquivo .h
/****************************************************************************
* @doc INTERNAL
* @module dlportio.h |
*
* DriverLINX Port I/O Driver Interface
* <cp> Copyright 1996 Scientific Software Tools, Inc.<nl>
* All Rights Reserved.<nl>
* DriverLINX is a registered trademark of Scientific Software Tools, Inc.
*
* Win32 Prototypes for DriverLINX Port I/O
*
* Please report bugs to:
* Scientific Software Tools, Inc.
* 19 East Central Avenue
* Paoli, PA 19301
* USA
* E-mail: support@sstnet.com
* Web: www.sstnet.com
*
* @comm
* Author: RoyF<nl>
* Date: 09/26/96 14:08:58
*
* @group Revision History
* @comm
* $Revision: 1 $
* <nl>
* $Log: /DLPortIO/API/DLPORTIO.H $
*
* 1 9/27/96 2:03p Royf
* Initial revision.
*
****************************************************************************/

#ifndef DLPORTIO_H
#define DLPORTIO_H

#ifdef __cplusplus
extern "C" {
#endif

#ifndef IN
#define IN
#endif

#define DLPORT_API _stdcall

UCHAR DLPORT_API
DlPortReadPortUchar(
IN ULONG Port
);

USHORT DLPORT_API
DlPortReadPortUshort(
IN ULONG Port
);

ULONG DLPORT_API
DlPortReadPortUlong(
IN ULONG Port
);

VOID DLPORT_API
DlPortReadPortBufferUchar(
IN ULONG Port,
IN PUCHAR Buffer,
IN ULONG Count
);

VOID DLPORT_API
DlPortReadPortBufferUshort(
IN ULONG Port,
IN PUSHORT Buffer,
IN ULONG Count
);

VOID DLPORT_API
DlPortReadPortBufferUlong(
IN ULONG Port,
IN PULONG Buffer,
IN ULONG Count
);

VOID DLPORT_API
DlPortWritePortUchar(
IN ULONG Port,
IN UCHAR Value
);

VOID DLPORT_API
DlPortWritePortUshort(
IN ULONG Port,
IN USHORT Value
);

VOID DLPORT_API
DlPortWritePortUlong(
IN ULONG Port,
IN ULONG Value
);

VOID DLPORT_API
DlPortWritePortBufferUchar(
IN ULONG Port,
IN PUCHAR Buffer,
IN ULONG Count
);

VOID DLPORT_API
DlPortWritePortBufferUshort(
IN ULONG Port,
IN PUSHORT Buffer,
IN ULONG Count
);

VOID DLPORT_API
DlPortWritePortBufferUlong(
IN ULONG Port,
IN PULONG Buffer,
IN ULONG Count
);

#ifdef __cplusplus
}
#endif

#endif // DLPORTIO_H

Posso de alguma maneira utilizar ou transformar isto em Clipper?
Este código fá acesso a uma dll chamada DLPORTIO.DLL que permite acesso a um Relógio de Tempo Real plugado em uma porta partalela do micro, me prometeram uma dll, mas esperava algo mais simples. Não conheço nadica de nada do C++, mas trabalho com o FiveWin, já tentei abrir a dll com o Workshop da Borland, mas só vejo informações sobre a versão, as funções não são mostradas. Desde já agradeço.
Shirley.
Responder