Click here to Skip to main content
15,878,852 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Active document Pin
Nibu babu thomas31-May-06 19:26
Nibu babu thomas31-May-06 19:26 
GeneralRe: Active document Pin
Luksky1-Jun-06 7:49
Luksky1-Jun-06 7:49 
QuestionLearning C++ -- from a C# point of view Pin
matiasdk31-May-06 10:08
matiasdk31-May-06 10:08 
AnswerRe: Learning C++ -- from a C# point of view Pin
Zac Howland31-May-06 10:19
Zac Howland31-May-06 10:19 
QuestionCan i save font in my MFC application? Pin
Immunity1831-May-06 10:07
Immunity1831-May-06 10:07 
AnswerRe: Can i save font in my MFC application? Pin
Benoy Bose31-May-06 19:00
Benoy Bose31-May-06 19:00 
GeneralRe: Can i save font in my MFC application? Pin
NiceNaidu31-May-06 20:10
NiceNaidu31-May-06 20:10 
Questionenumport problem Pin
wang200731-May-06 9:57
wang200731-May-06 9:57 
Ich wuerde Local COM port von meinem Computer suchen. Mein Computer hat nur COM1. Aber wenn ich mit enumport() meinen Computer sucht, zeigt folgendes Ergibnis: COM1,COM2,COM3,COM4 . Wie nutzt Man "enumport()". Mein code wie unten:

Email : wang_ba_de@yahoo.de

UsingEnumPorts(CUIntArray& ports)
{ports.RemoveAll();

DWORD cbNeeded = 0;
DWORD dwPorts = 0;
EnumPorts(NULL,2, NULL, 0, &cbNeeded, &dwPorts);


BOOL bSuccess = FALSE;

BYTE* pPorts = (BYTE*) _alloca(cbNeeded);
bSuccess = EnumPorts(NULL, 2, pPorts, cbNeeded, &cbNeeded, &dwPorts);
if (bSuccess)
{
PORT_INFO_1* pPortInfo = (PORT_INFO_1*) pPorts;
for (DWORD i=0; i<dwports; i++)
="" {
="" int="" nlen="_tcslen(pPortInfo-">pName);
if (nLen > 3)
{
if ((_tcsnicmp(pPortInfo->pName, _T("COM"), 3) == 0) && IsNumeric(&pPortInfo->pName[3], TRUE))
{

int nPort = _ttoi(&pPortInfo->pName[3]);
ports.Add(nPort);
}
}
}
AnswerRe: enumport problem Pin
David Crow31-May-06 10:11
David Crow31-May-06 10:11 
AnswerRe: enumport problem Pin
NiceNaidu31-May-06 19:32
NiceNaidu31-May-06 19:32 
QuestionSocket Class to use with MFC [modified] Pin
SPowers31-May-06 9:48
SPowers31-May-06 9:48 
AnswerRe: Socket Class to use with MFC [modified] Pin
Zac Howland31-May-06 10:13
Zac Howland31-May-06 10:13 
GeneralRe: Socket Class to use with MFC [modified] Pin
SPowers31-May-06 10:19
SPowers31-May-06 10:19 
GeneralRe: Socket Class to use with MFC [modified] Pin
Zac Howland31-May-06 10:37
Zac Howland31-May-06 10:37 
Questionusing a dll to run the graphics of a scr Pin
reasley31-May-06 9:37
reasley31-May-06 9:37 
AnswerRe: using a dll to run the graphics of a scr Pin
David Crow31-May-06 10:10
David Crow31-May-06 10:10 
QuestionRe: using a dll to run the graphics of a scr Pin
reasley31-May-06 10:16
reasley31-May-06 10:16 
QuestionRe: using a dll to run the graphics of a scr Pin
David Crow31-May-06 10:29
David Crow31-May-06 10:29 
AnswerRe: using a dll to run the graphics of a scr Pin
reasley31-May-06 10:31
reasley31-May-06 10:31 
AnswerRe: using a dll to run the graphics of a scr [modified] Pin
Zac Howland31-May-06 10:30
Zac Howland31-May-06 10:30 
GeneralRe: using a dll to run the graphics of a scr [modified] Pin
reasley31-May-06 10:35
reasley31-May-06 10:35 
QuestionVisual Studio 2005, Multithreading option? Pin
Yonggoo31-May-06 9:02
Yonggoo31-May-06 9:02 
AnswerRe: Visual Studio 2005, Multithreading option? Pin
Cedric Moonen31-May-06 9:26
Cedric Moonen31-May-06 9:26 
AnswerRe: Visual Studio 2005, Multithreading option? Pin
Zac Howland31-May-06 10:04
Zac Howland31-May-06 10:04 
AnswerRe: Visual Studio 2005, Multithreading option? [modified] Pin
Yonggoo31-May-06 10:56
Yonggoo31-May-06 10:56 

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.