Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
I

ITboy_Lemon

@ITboy_Lemon
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • The "hide_gui" key in the regedit , i want to know how does it works?
    I ITboy_Lemon

    These days ,i read the source code of cocos2d-x . When i read the CCApplication class of win32 platform , in the function run of CCApplication ,there is a function :

    static void PVRFrameEnableControlWindow(bool bEnable)
    {
    HKEY hKey = 0;

    // Open PVRFrame control key, if not exist create it.
    if(ERROR\_SUCCESS != RegCreateKeyExW(HKEY\_CURRENT\_USER,
        L"Software\\\\Imagination Technologies\\\\PVRVFRame\\\\STARTUP\\\\",
        0,
        0,
        REG\_OPTION\_NON\_VOLATILE,
        KEY\_ALL\_ACCESS,
        0,
        &hKey,
        NULL))
    {
        return;
    }
    
    const WCHAR\* wszValue = L"hide\_gui";
    const WCHAR\* wszNewData = (bEnable) ? L"NO" : L"YES";
    WCHAR wszOldData\[256\] = {0};
    DWORD   dwSize = sizeof(wszOldData);
    LSTATUS status = RegQueryValueExW(hKey, wszValue, 0, NULL, (LPBYTE)wszOldData, &dwSize);
    if (ERROR\_FILE\_NOT\_FOUND == status              // the key not exist
        || (ERROR\_SUCCESS == status                 // or the hide\_gui value is exist
        && 0 != wcscmp(wszNewData, wszOldData)))    // but new data and old data not equal
    {
        dwSize = sizeof(WCHAR) \* (wcslen(wszNewData) + 1);
        RegSetValueEx(hKey, wszValue, 0, REG\_SZ, (const BYTE \*)wszNewData, dwSize);
    }
    
    RegCloseKey(hKey);
    

    }

    i do not understand the key value "hide_gui" .What can it do to effect my app ? I am a new learner in C++ and i am not a english speaker , so if you do not understand my meaning ,i am very sorry for that .

    C / C++ / MFC c++ help question

  • the big-ending and little-ending
    I ITboy_Lemon

    Thank you for help , i got it .

    C / C++ / MFC sysadmin question data-structures help learning

  • the big-ending and little-ending
    I ITboy_Lemon

    Hi,everyone. These days i read a book about the socket .There is a question ,when we bind the address in the server ,we must use the function htons to transform the port to the network byte order, but why do not we need to use the function in the send /recv function ? i guess some reasons ,but i am not sure about it . 1.Because the TCP\IP protocl will do the transform at the back 2.Because of the parameter char*,it makes the buffer to the array of char and that do not need to transform. Is there anyone know this ? I am very appreciate for your help .

    C / C++ / MFC sysadmin question data-structures help learning

  • Get all window hadles
    I ITboy_Lemon

    the function EnumWindows may help you.This function can enum all the window in the window manager .Or you can use the relationship between the dialog and the apps to meet your point.

    C / C++ / MFC c++ visual-studio tutorial question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups