Click here to Skip to main content
15,920,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A beginners guide to dll's Pin
Joel Holdsworth16-Apr-02 3:37
Joel Holdsworth16-Apr-02 3:37 
GeneralRe: A beginners guide to dll's Pin
16-Apr-02 4:48
suss16-Apr-02 4:48 
Generalcopy resources between two projects Pin
lucy16-Apr-02 2:57
lucy16-Apr-02 2:57 
GeneralRe: copy resources between two projects Pin
Brad Bruce16-Apr-02 3:13
Brad Bruce16-Apr-02 3:13 
GeneralRe: copy resources between two projects Pin
lucy16-Apr-02 3:30
lucy16-Apr-02 3:30 
Generalrunning program from different computer Pin
Rajveer16-Apr-02 2:55
Rajveer16-Apr-02 2:55 
GeneralRe: running program from different computer Pin
Carlos Antollini16-Apr-02 3:34
Carlos Antollini16-Apr-02 3:34 
GeneralSerial Communication Pin
16-Apr-02 2:48
suss16-Apr-02 2:48 
Hi me again with one another question.

I am writing a program which opens a serial port in order to write on it . I succed in opening the serial port and configuring it . Somebody wrote a function for me but this function sends integer to serial.I want to send string to serial . The code is bellow :

int CMC35ProjectDlg::Send(BYTE data)
{
///////////
//Begin
//////////

//Send Data to serial Port

DWORD dwBytes=0;
BYTE d=data;
int ret=d;
BYTE* sbuf=&d;
BOOL stest=WriteFile(hcom,sbuf,1,&dwBytes,NULL);

if ((stest&&dwBytes)==FALSE)
{
MessageBox("Connection between your PC and MC35 device connot be establish.\nPlease try again later.\nCheck the serail cabel.\n(ËÜèïò êáôÜ ôçí åêôÝëåóç ôçò óõíÜñôçóçò send).",
"Error!",MB_OK | MB_ICONSTOP);
ret=-1;

}
return ret;

//////
//End
//////
}

Any idea converting this function to send strings to serial?

Another problem I have is that I want a variable to take the follow content AT+CMGL="REC UNREAD".How can I succed it?

Thank you in advence.

X-The truth is out there.
GeneralRe: Serial Communication Pin
Joaquín M López Muñoz16-Apr-02 10:02
Joaquín M López Muñoz16-Apr-02 10:02 
GeneralRe: Serial Communication Pin
16-Apr-02 20:27
suss16-Apr-02 20:27 
GeneralDeclaring classes inside other classes Pin
Alexandru Savescu16-Apr-02 2:12
Alexandru Savescu16-Apr-02 2:12 
GeneralRe: Declaring classes inside other classes Pin
Joaquín M López Muñoz16-Apr-02 3:18
Joaquín M López Muñoz16-Apr-02 3:18 
GeneralBCG Menu....Right to Left Layout Pin
Ahmad9916-Apr-02 2:09
Ahmad9916-Apr-02 2:09 
GeneralRe: BCG Menu....Right to Left Layout Pin
Alexandru Savescu16-Apr-02 2:15
Alexandru Savescu16-Apr-02 2:15 
Generalcompatibilty issue (VC5.0 and VC6.0) Pin
Drawil16-Apr-02 2:02
Drawil16-Apr-02 2:02 
GeneralRe: compatibilty issue (VC5.0 and VC6.0) Pin
Henk Groenewoud16-Apr-02 2:14
Henk Groenewoud16-Apr-02 2:14 
GeneralRe: compatibilty issue (VC5.0 and VC6.0) Pin
Dominik Reichl16-Apr-02 2:14
Dominik Reichl16-Apr-02 2:14 
GeneralRe: compatibilty issue (VC5.0 and VC6.0) Pin
Drawil16-Apr-02 22:44
Drawil16-Apr-02 22:44 
GeneralRe: compatibilty issue (VC5.0 and VC6.0) Pin
Henk Groenewoud22-Apr-02 23:44
Henk Groenewoud22-Apr-02 23:44 
Questionhow to solute this problem! Pin
white jungle16-Apr-02 1:45
white jungle16-Apr-02 1:45 
AnswerRe: how to solute this problem! Pin
Christian Graus16-Apr-02 1:54
protectorChristian Graus16-Apr-02 1:54 
GeneralRe: how to solute this problem! Pin
white jungle16-Apr-02 4:04
white jungle16-Apr-02 4:04 
GeneralRe: how to solute this problem! Pin
jbarton16-Apr-02 5:47
jbarton16-Apr-02 5:47 
GeneralRe: how to solute this problem! Pin
Christian Graus16-Apr-02 10:30
protectorChristian Graus16-Apr-02 10:30 
AnswerRe: how to solute this problem! Pin
Paul M Watt16-Apr-02 5:27
mentorPaul M Watt16-Apr-02 5:27 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.