Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can I get a cWnd value? Pin
SnapRick11-Jul-02 3:15
SnapRick11-Jul-02 3:15 
AnswerRe: How can I get a cWnd value? Pin
Rage11-Jul-02 3:30
professionalRage11-Jul-02 3:30 
GeneralRe: How can I get a cWnd value? Pin
l a u r e n11-Jul-02 7:13
l a u r e n11-Jul-02 7:13 
GeneralRe: How can I get a cWnd value? Pin
SnapRick11-Jul-02 8:16
SnapRick11-Jul-02 8:16 
GeneralRe: How can I get a cWnd value? Pin
Rage11-Jul-02 23:15
professionalRage11-Jul-02 23:15 
GeneralRe: How can I get a cWnd value? Pin
SnapRick12-Jul-02 3:25
SnapRick12-Jul-02 3:25 
GeneralAT command Pin
moran kaye11-Jul-02 2:35
sussmoran kaye11-Jul-02 2:35 
GeneralRe: AT command Pin
Fred D.11-Jul-02 3:16
Fred D.11-Jul-02 3:16 
well, i'm working on a project that needs to send & receive SMS as well, so here is a procedure to follow :

1) Open the Com port, using CreateFile()
don't forget to set-up the COMMTIMEOUTS & DCB structures.

2) to send an SMS you need to send your AT command as char to your com port (modem), like this :
char c[300] = {0}, r[100] = {0}, tmp[300] = {0};
DWORD dwBytesWrite, dwBytesRead, dwTmp;

// *** INIT PHASE : SET DATA TYPE TO SMS ***
strcpy(c, "AT+CMGF=1\r\n");

and then
if(!WriteFile(hGSMPort,c,strlen(c),&dwBytesWrite,NULL)
...
don't forget to read the reply from the modem.
using ReadFile()

3) when the port is open, create a thread to read new SMS received

hope it helps

Fred
GeneralRe: AT command Pin
Brian Azzopardi11-Jul-02 3:48
Brian Azzopardi11-Jul-02 3:48 
GeneralNewbie struggling with makefile and linker Pin
Janine11-Jul-02 1:58
Janine11-Jul-02 1:58 
GeneralRe: Newbie struggling with makefile and linker Pin
Rage11-Jul-02 3:37
professionalRage11-Jul-02 3:37 
GeneralRe: Newbie struggling with makefile and linker Pin
Janine11-Jul-02 4:02
Janine11-Jul-02 4:02 
GeneralRe: Newbie struggling with makefile and linker Pin
Bill Wilson11-Jul-02 12:01
Bill Wilson11-Jul-02 12:01 
QuestionHow to cut MPEG files? Pin
RichardWdy11-Jul-02 1:29
RichardWdy11-Jul-02 1:29 
AnswerRe: How to cut MPEG files? Pin
Mike Nordell11-Jul-02 1:31
Mike Nordell11-Jul-02 1:31 
GeneralRe: How to cut MPEG files? Pin
RichardWdy11-Jul-02 1:49
RichardWdy11-Jul-02 1:49 
GeneralRe: How to cut MPEG files? Pin
Mike Nordell11-Jul-02 10:56
Mike Nordell11-Jul-02 10:56 
GeneralCan't install Platform SDK Pin
User 665810-Jul-02 23:35
User 665810-Jul-02 23:35 
GeneralRe: Can't install Platform SDK Pin
DanielP11-Jul-02 3:00
DanielP11-Jul-02 3:00 
Generalprint problem startdoc() enddoc() Pin
khaldoun10-Jul-02 23:36
khaldoun10-Jul-02 23:36 
GeneralMDI Child Window Maximising - Getting Large Numbers... Pin
Blade[DMS]10-Jul-02 23:22
Blade[DMS]10-Jul-02 23:22 
GeneralRe: MDI Child Window Maximising - Getting Large Numbers... Pin
Blade[DMS]11-Jul-02 1:51
Blade[DMS]11-Jul-02 1:51 
GeneralIt just stopped working... Pin
Andreas Saurwein10-Jul-02 22:59
Andreas Saurwein10-Jul-02 22:59 
GeneralRe: It just stopped working... Pin
calebcohoon11-Jul-02 7:41
calebcohoon11-Jul-02 7:41 
GeneralRe: It just stopped working... Pin
Andreas Saurwein11-Jul-02 7:59
Andreas Saurwein11-Jul-02 7:59 

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.