Click here to Skip to main content
15,891,833 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need help on how to move from one dialog back and next Pin
John5024-Mar-09 0:26
John5024-Mar-09 0:26 
GeneralRe: Need help on how to move from one dialog back and next Pin
Eytukan4-Mar-09 0:41
Eytukan4-Mar-09 0:41 
QuestionGet IP Address Pin
Paulraj G3-Mar-09 22:16
Paulraj G3-Mar-09 22:16 
AnswerRe: Get IP Address Pin
Iain Clarke, Warrior Programmer3-Mar-09 22:33
Iain Clarke, Warrior Programmer3-Mar-09 22:33 
GeneralRe: Get IP Address Pin
Paulraj G3-Mar-09 22:52
Paulraj G3-Mar-09 22:52 
GeneralRe: Get IP Address Pin
PankajB4-Mar-09 1:14
PankajB4-Mar-09 1:14 
GeneralRe: Get IP Address Pin
Iain Clarke, Warrior Programmer4-Mar-09 1:20
Iain Clarke, Warrior Programmer4-Mar-09 1:20 
GeneralRe: Get IP Address Pin
CPallini4-Mar-09 2:00
mveCPallini4-Mar-09 2:00 
#include <windows.h>
#include <tchar.h>
#include <stdio.h>

int _tmain(
            int argc, 
            TCHAR *argv[]
           )
{
   DCB dcb;
   HANDLE hCom;
   BOOL fSuccess;
   TCHAR *pcCommPort = TEXT("COM2");

   hCom = CreateFile( pcCommPort,
                    GENERIC_READ | GENERIC_WRITE,
                    0,    // must be opened with exclusive-access
                    NULL, // default security attributes
                    OPEN_EXISTING, // must use OPEN_EXISTING
                    0,    // not overlapped I/O
                    NULL  // hTemplate must be NULL for comm devices
                    );

   if (hCom == INVALID_HANDLE_VALUE) 
   {
       // Handle the error.
       printf ("CreateFile failed with error %d.\n", GetLastError());
       return (1);
   }
:::::::::::::::::::::
:::::::::::::::::::::
   return (0);
}


Roll eyes | :rolleyes:

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

RantRe: Get IP Address Pin
Iain Clarke, Warrior Programmer4-Mar-09 2:57
Iain Clarke, Warrior Programmer4-Mar-09 2:57 
QuestionRe: Get IP Address Pin
CPallini4-Mar-09 3:30
mveCPallini4-Mar-09 3:30 
AnswerRe: Get IP Address Pin
Iain Clarke, Warrior Programmer4-Mar-09 5:07
Iain Clarke, Warrior Programmer4-Mar-09 5:07 
GeneralRe: Get IP Address Pin
CPallini4-Mar-09 5:50
mveCPallini4-Mar-09 5:50 
GeneralRe: Get IP Address Pin
Iain Clarke, Warrior Programmer4-Mar-09 6:03
Iain Clarke, Warrior Programmer4-Mar-09 6:03 
AnswerRe: Get IP Address Pin
Eytukan3-Mar-09 22:49
Eytukan3-Mar-09 22:49 
AnswerRe: Get IP Address Pin
CPallini3-Mar-09 22:55
mveCPallini3-Mar-09 22:55 
QuestionCPU Problem Pin
MsmVc3-Mar-09 21:27
MsmVc3-Mar-09 21:27 
AnswerRe: CPU Problem Pin
Code-o-mat3-Mar-09 21:44
Code-o-mat3-Mar-09 21:44 
AnswerRe: CPU Problem Pin
Stuart Dootson3-Mar-09 21:47
professionalStuart Dootson3-Mar-09 21:47 
AnswerRe: CPU Problem Pin
Hamid_RT4-Mar-09 1:00
Hamid_RT4-Mar-09 1:00 
GeneralRe: CPU Problem Pin
MsmVc4-Mar-09 1:13
MsmVc4-Mar-09 1:13 
GeneralRe: CPU Problem Pin
Hamid_RT4-Mar-09 1:44
Hamid_RT4-Mar-09 1:44 
GeneralRe: CPU Problem Pin
MsmVc5-Mar-09 23:42
MsmVc5-Mar-09 23:42 
GeneralRe: CPU Problem Pin
David Crow4-Mar-09 3:19
David Crow4-Mar-09 3:19 
Questioncontents of .lib .exe .dll .obj Pin
hrishiS3-Mar-09 21:22
hrishiS3-Mar-09 21:22 
AnswerRe: contents of .lib .exe .dll .obj Pin
«_Superman_»3-Mar-09 22:01
professional«_Superman_»3-Mar-09 22:01 

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.