Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

USB unit

Status
Not open for further replies.

rsch1973

Programmer
Sep 30, 2002
8
GB
Hello all,
I have bought a new GSM modem. Now I would like to write a programme with the BCB6 pro, which should communicate with the modem. How can I do it with the BCB? Could somebody gives me a tip (example, Internet page or a good book) how and where I should start first?

Thank you for your help.

Regards,
Ronald
 
Well, first it has nothing to do with the USB, you should open a COM-port and communicate over that device and for that there are several good refrences like or msdn.microsoft.com/library/techart/msdn_serial.html or
In the FAQ there are some good links and answers too.

I do myself use GSM-modems in my Bouild-In systems and a manual on the protocoll is invaluable.

Totte
 
BTW, You could install the TPAPRO package, it's a wonder of commands and functions with the serial port and modem. There is a link in this forum somewhere, search for TPAPRO.

Totte
 
Hi,
Thank you Totte. I have tried it. Receiving is working but I have some problems to send something. I am using:
WriteFile(hComm,text,50,&dwBytesWrite,NULL);
The error message from Builder is "Undefined symbol dwBytesWrite"
Could somebody help me? Cheers,
Ronald
 
Sounds like you didn't make the DWORD dwBytesWrite. Add that to the front of your routine. If you don't need to know how many bytes were actually written, then just make that value NULL. I believe that works.

WriteFile(hComm, text, 50, NULL, NULL);

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top