Posted: 18th Apr 2003 20:40
I would want to know if you know one DLL in order to transmit and to receive on the serial port rs232 with of the examples for darkbasicpro

help!!!!!
---------------------------------------------
hello
who to convert me the source in c++ and ago in DLL for darkbasicpro so that I copy in c:\Dark Basic Software\Dark Basic Professional\Compiler\plugins-user thanks
http://www.realgametools.net/forums/attachments/WIN32Serial3.zip
Posted: 18th Apr 2003 23:29
Here's the C code for the Serial port program (converted as a DLL). As I said before, I've no idea if its working properly.
Posted: 20th Apr 2003 8:30
THANKS A LOT TO SEND SENDS BUT IT HAS TO RECEIVE DOES NOT RECEIVE WITH HyperTerminal THANKS
Posted: 20th Apr 2003 18:24
Unfortunately its nothing I can test - hopefully someone else will be able tell me whats wrong...

Here are the headers too :

+ Code Snippet
#ifdef SERIAL_EXPORTS
#define SERIAL_API __declspec(dllexport)
#else
#define SERIAL_API __declspec(dllimport)
#endif

#define MAX_RCV_QUEUE		2000
#define	MAX_RSP_SIZE		200

// This class is exported from the Serial.dll
DWORD SERIAL_API Wait(DWORD dwDelay);
DWORD SERIAL_API ReadRsp(DWORD hCOMPort,DWORD store,DWORD storeSize,DWORD errorPtr,DWORD errorSize);
DWORD SERIAL_API WriteCmd(DWORD hCOMPort,LPSTR pchCmd);
void  SERIAL_API ClearTxBuff(DWORD hCOMPort);
void  SERIAL_API ClearRxBuff(DWORD hCOMPort,DWORD errorPtr,DWORD errorSize);
DWORD SERIAL_API CharsReady(DWORD hCOMPort,DWORD errorPtr,DWORD errorSize);
DWORD SERIAL_API CloseComPort(DWORD hCOMPort);
DWORD SERIAL_API OpenComPort(DWORD nPort,DWORD nBaudRate,DWORD errorPtr,DWORD errorSize);
Posted: 21st Apr 2003 18:34
thanks, to send the character with HyperTerminal go very well, receive the number but not the character ascii. help
thanks
Posted: 22nd Apr 2003 16:09
thanks, to send the character with HyperTerminal go very well, receive the number but not the character ascii. help
thanks

help!!!!!!!!!!!!! all forum
Posted: 22nd Apr 2003 16:09
thanks, to send the character with HyperTerminal go very well, receive the number but not the character ascii. help
thanks

help!!!!!!!!!!!!! all forum
Posted: 22nd Apr 2003 16:45
Have you tried reading the data held my store, by the way ?

+ Code Snippet
DWORD ReadRsp(DWORD hCOMPort,DWORD store,DWORD storeSize,DWORD errorPtr,DWORD errorSize)


requires you to pass two pre-allocated memory locations, which is where the data should be stored (in store). Any error messages should be stored in errorPtr

I'll post my test code later on.
Posted: 22nd Apr 2003 21:22
Heres the test code.