|
From: Per W. <pw...@ia...> - 2008-02-19 12:09:46
|
Version 5.5 of the Borland C++ compiler is available for free download. There are also a free version of the M$ compiler. What is "dec C"? Where your posted code supposted to contain a huge amount of references to mail.google.com? /pwm On Tue, 19 Feb 2008, frederico schardong wrote: > 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 > |