|
From: frederico s. <fre...@gm...> - 2008-02-19 11:40:35
|
hi for all
I have one code writed in borland/microsoft visual..
so this programs don't free, and I don't have money for its.
who I do to convert to dec C? (ansi C I presume)
The code import functions from .dll file
here is this:
*C++ Builder / Microsoft Visual C++:*
#ifdef __cplusplus
extern "C" {
#endif
#define *GenUSBDLL * "GenUSB.dll";
/*/ valores retornados pelas funções em GenUSB.DLL:*
#define *NO_ERROR * 0;
#define *DEVICE_NOT_PRESENT *1;
#define *NO_DATA_AVAILABLE *2;
#define *INVALID_BAUDRATE *3;
#define *OVERRUN_ERROR * 4;
#define *INVALID_DATABITS * 5;
#define *INVALID_PARITY * 6;
#define *INVALID_STOPBITS * 7;
*int* __stdcall
*DoGetInfraCode<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoGetInfraCode#DoGetInfraCode>
*(*uchar ** *TimeCodeDiagram*, *int* *DummyInt*, *int ** *DiagramLength*);
*int* __stdcall
*DoSetDataPortDirection<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoSetDataPortDirection#DoSetDataPortDirection>
*(*uchar DirectionByte*);
*int* __stdcall
*DoGetDataPortDirection<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoGetDataPortDirection#DoGetDataPortDirection>
*(*uchar ** *DataDirectionByte*);
*int* __stdcall
*DoSetOutDataPort<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoSetOutDataPort#DoSetOutDataPort>
*(*uchar DataOutByte*);
*int* __stdcall
*DoGetOutDataPort<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoGetOutDataPort#DoGetOutDataPort>
*(*uchar ** *DataOutByte*);
*int* __stdcall
*DoGetInDataPort<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoGetInDataPort#DoGetInDataPort>
*(*uchar ** *DataInByte*);
*int* __stdcall
*DoEEPROMRead<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoEEPROMRead#DoEEPROMRead>
*(*ushort Address*, *uchar ** *DataInByte*);
*int* __stdcall
*DoEEPROMWrite<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoEEPROMWrite#DoEEPROMWrite>
*(*ushort Address*, *uchar DataOutByte*);
*int* __stdcall
*DoRS232Send<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoRS232Send#DoRS232Send>
*(*uchar DataOutByte*);
*int* __stdcall
*DoRS232Read<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoRS232Read#DoRS232Read>
*(*uchar ** *DataInByte*);
*int* __stdcall
*DoSetRS232Baud<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoGetRS232Baud#DoGetRS232Baud>
*(*int BaudRate*);
*int* __stdcall
*DoGetRS232Baud<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoGetRS232Baud#DoGetRS232Baud>
*(*int ** *BaudRate*);
*int* __stdcall
*DoGetRS232Buffer*<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoGetRS232Buffer#DoGetRS232Buffer>
(*uchar ** *RS232Buffer*, *int* *DummyInt*, *int ** *RS232BufferLength*);
*int* __stdcall
*DoRS232BufferSend*<http://mail.google.com/mail/GenUSB_DLL_help.htm#DoRS232BufferSend#DoRS232BufferSend>
(*uchar ** *RS232Buffer*, *int* *DummyInt*, *int ** *RS232BufferLength*);
#ifdef __cplusplus
}
#endif
tankyou for all
|