Click here to Skip to main content
15,919,132 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: To convert message "WM_CLOSE" into integer Pin
CPallini29-Apr-08 23:56
mveCPallini29-Apr-08 23:56 
GeneralRe: To convert message "WM_CLOSE" into integer Pin
Cedric Moonen29-Apr-08 23:57
Cedric Moonen29-Apr-08 23:57 
QuestionWin32_SerialPort API example.. Pin
vijay.victory29-Apr-08 23:24
vijay.victory29-Apr-08 23:24 
QuestionRe: Win32_SerialPort API example.. [modified] Pin
CPallini29-Apr-08 23:33
mveCPallini29-Apr-08 23:33 
JokeRe: Win32_SerialPort API example.. Pin
Hamid_RT30-Apr-08 4:47
Hamid_RT30-Apr-08 4:47 
GeneralRe: Win32_SerialPort API example.. Pin
CPallini30-Apr-08 5:04
mveCPallini30-Apr-08 5:04 
GeneralRe: Win32_SerialPort API example.. Pin
Nelek1-May-08 21:56
protectorNelek1-May-08 21:56 
AnswerRe: Win32_SerialPort API example.. Pin
David Crow30-Apr-08 3:43
David Crow30-Apr-08 3:43 
Here's one of my excerpts:

hr = pService->CreateInstanceEnum(_bstr_t("Win32_SerialPortConfiguration"), WBEM_FLAG_RETURN_IMMEDIATELY | WBEM_FLAG_FORWARD_ONLY, NULL, &pEnum);
if (WBEM_S_NO_ERROR == hr)
{
    hr = pEnum->Next(WBEM_INFINITE, 1, &pClass, &ulReturned);
    if (WBEM_S_NO_ERROR == hr)
    {
        hr = pClass->Get(L"Description", 0, &v, NULL, NULL);
        if (VT_NULL != v.vt)
            TRACE("Description = %S\n", V_BSTR(&v));
 
        hr = pClass->Get(L"BaudRate", 0, &v, NULL, NULL);
        if (VT_NULL != v.vt)
            TRACE("BaudRate = %u\n", V_UINT(&v));
 
        hr = pClass->Get(L"BitsPerByte", 0, &v, NULL, NULL);
        if (VT_NULL != v.vt)
            TRACE("BitsPerByte = %u\n", V_UINT(&v));
             
        hr = pClass->Get(L"Parity", 0, &v, NULL, NULL);
        if (VT_NULL != v.vt)
            TRACE("Parity = %S\n", V_BSTR(&v));
 
        hr = pClass->Get(L"StopBits", 0, &v, NULL, NULL);
        if (VT_NULL != v.vt)
            TRACE("StopBits = %S\n", V_BSTR(&v));
 
        pClass->Release()
    }
 
    pEnum->Release();
}


"Love people and use things, not love things and use people." - Unknown

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


Questionhow i add dll (third party tool dll) into my static library Pin
amit_pansuria29-Apr-08 23:11
amit_pansuria29-Apr-08 23:11 
AnswerRe: how i add dll (third party tool dll) into my static library Pin
Nelek29-Apr-08 23:24
protectorNelek29-Apr-08 23:24 
Questionhow can I get the exe's theApp in a regular mfc dll? Pin
code_discuss29-Apr-08 22:48
code_discuss29-Apr-08 22:48 
AnswerRe: how can I get the exe's theApp in a regular mfc dll? Pin
Nitheesh George29-Apr-08 23:01
Nitheesh George29-Apr-08 23:01 
Questionwindows+d Pin
john563229-Apr-08 22:26
john563229-Apr-08 22:26 
QuestionRe: windows+d Pin
CPallini29-Apr-08 23:35
mveCPallini29-Apr-08 23:35 
AnswerRe: windows+d Pin
Hamid_RT30-Apr-08 4:47
Hamid_RT30-Apr-08 4:47 
QuestionI cant well dont no how to connect to a Mysql database. Pin
bradmasterx29-Apr-08 20:54
bradmasterx29-Apr-08 20:54 
AnswerRe: I cant well dont no how to connect to a Mysql database. Pin
_AnsHUMAN_ 29-Apr-08 20:57
_AnsHUMAN_ 29-Apr-08 20:57 
AnswerRe: I cant well dont no how to connect to a Mysql database. Pin
ShilpiP29-Apr-08 21:06
ShilpiP29-Apr-08 21:06 
AnswerRe: I cant well dont no how to connect to a Mysql database. Pin
David Crow30-Apr-08 3:47
David Crow30-Apr-08 3:47 
AnswerRe: I cant well dont no how to connect to a Mysql database. Pin
Hamid_RT30-Apr-08 4:45
Hamid_RT30-Apr-08 4:45 
QuestionAdding a drop down menu to an IE Toolbar button Pin
Arnon A29-Apr-08 20:51
Arnon A29-Apr-08 20:51 
QuestionVC++ - AciveXDLL -Sockets Pin
lgatcodeproject29-Apr-08 20:41
lgatcodeproject29-Apr-08 20:41 
AnswerRe: VC++ - AciveXDLL -Sockets Pin
Cedric Moonen29-Apr-08 20:50
Cedric Moonen29-Apr-08 20:50 
GeneralRe: VC++ - AciveXDLL -Sockets Pin
lgatcodeproject29-Apr-08 20:59
lgatcodeproject29-Apr-08 20:59 
JokeRe: VC++ - AciveXDLL -Sockets Pin
_AnsHUMAN_ 29-Apr-08 21:01
_AnsHUMAN_ 29-Apr-08 21: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.