Click here to Skip to main content
16,007,885 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Refreshing Pin
João Paulo Figueira16-Feb-03 7:24
professionalJoão Paulo Figueira16-Feb-03 7:24 
QuestionHow to change menu caption Pin
Ortie2-Feb-03 2:03
Ortie2-Feb-03 2:03 
Question"The Intel 80486 CPU does not support?? Pin
Raihan1-Feb-03 23:39
Raihan1-Feb-03 23:39 
AnswerRe: "The Intel 80486 CPU does not support?? Pin
Ian Darling4-Feb-03 4:53
Ian Darling4-Feb-03 4:53 
GeneralNewcomer Pin
dlhson21-Feb-03 6:03
dlhson21-Feb-03 6:03 
GeneralRe: Newcomer Pin
Ian Darling4-Feb-03 4:51
Ian Darling4-Feb-03 4:51 
GeneralReading INI File? In eVC++ Pin
anju30-Jan-03 21:26
anju30-Jan-03 21:26 
GeneralRe: Reading INI File? In eVC++ Pin
Daniel Strigl30-Jan-03 23:34
Daniel Strigl30-Jan-03 23:34 
Hi anju!

I use the Win32 API functions RegOpenKeyEx and RegQueryValueEx to read the IRDA port index from the registry and it works fine!

UINT CIrdaPort::FindPortIndex()
{
    // Look into the registry for the IRDA port number

    HKEY hKey = NULL;

    if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, _T("Drivers\\BuiltIn\\IrCOMM"), 0, 0, &hKey) == ERROR_SUCCESS)
    {
        DWORD dwType = 0;
        DWORD dwData = 0;
        DWORD dwSize = sizeof(dwData);

        if (RegQueryValueEx(hKey, _T("Index"), NULL, &dwType, (LPBYTE) &dwData, &dwSize) == ERROR_SUCCESS)
        {
            if (dwType == REG_DWORD && dwSize == sizeof(dwData))
            {
                RegCloseKey(hKey);
                                
                return (UINT) dwData;
            }
        }

        RegCloseKey(hKey);
    }

    return 0;
}


Just take a look on my Pocket PC application Infrared Communication with your Mobile Phone.

I hope this will help you!

Daniel Wink | ;)
---------------------------
Never change a running system!
GeneralRe: Reading INI File? In eVC++ Pin
anju2-Feb-03 21:29
anju2-Feb-03 21:29 
GeneralRe: Reading INI File? In eVC++ Pin
Daniel Strigl2-Feb-03 21:39
Daniel Strigl2-Feb-03 21:39 
GeneralRe: Reading INI File? In eVC++ Pin
Anonymous3-Feb-03 21:26
Anonymous3-Feb-03 21:26 
GeneralRe: Reading INI File? In eVC++ Pin
Daniel Strigl4-Feb-03 4:00
Daniel Strigl4-Feb-03 4:00 
GeneralRe: Reading INI File? In eVC++ Pin
anju4-Feb-03 21:41
anju4-Feb-03 21:41 
GeneralRe: Reading INI File? In eVC++ Pin
Daniel Strigl4-Feb-03 22:59
Daniel Strigl4-Feb-03 22:59 
GeneralRe: Reading INI File? In eVC++ Pin
Raphael Amorim11-Feb-03 10:31
professionalRaphael Amorim11-Feb-03 10:31 
Questionhow to "skin-enabled" my application?? Pin
liro25-Jan-03 5:46
liro25-Jan-03 5:46 
GeneralAdd a name to the list of contacts ... Pin
Daniel Strigl23-Jan-03 20:56
Daniel Strigl23-Jan-03 20:56 
GeneralRe: Add a name to the list of contacts ... Pin
João Paulo Figueira14-Feb-03 7:05
professionalJoão Paulo Figueira14-Feb-03 7:05 
GeneralRe: Add a name to the list of contacts ... Pin
Daniel Strigl14-Feb-03 7:58
Daniel Strigl14-Feb-03 7:58 
GeneralRe: Add a name to the list of contacts ... Pin
TigerNinja_15-Feb-03 14:07
TigerNinja_15-Feb-03 14:07 
GeneralPalmtops and Multimedia Pin
elip21-Jan-03 1:07
elip21-Jan-03 1:07 
QuestionWhere can I find IEEE-428 specification? Pin
gradiov18-Jan-03 18:54
gradiov18-Jan-03 18:54 
GeneralPocketPC FTP dll [confused] Pin
Amit Dey18-Jan-03 6:27
Amit Dey18-Jan-03 6:27 
QuestionWhat's going on with this code? Pin
SonicJet8-Jan-03 14:52
SonicJet8-Jan-03 14:52 
GeneralPocketPC 2002 and USB Pin
#realJSOP7-Jan-03 3:19
professional#realJSOP7-Jan-03 3:19 

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.