Click here to Skip to main content
15,860,859 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Owner Draw MenuItem Displaying large in Size in Debug but in release it is Ok Pin
Richard MacCutchan30-Apr-13 21:34
mveRichard MacCutchan30-Apr-13 21:34 
GeneralRe: Owner Draw MenuItem Displaying large in Size in Debug but in release it is Ok Pin
002comp1-May-13 0:25
002comp1-May-13 0:25 
SuggestionRe: Owner Draw MenuItem Displaying large in Size in Debug but in release it is Ok Pin
Richard MacCutchan1-May-13 1:49
mveRichard MacCutchan1-May-13 1:49 
QuestionDetect specific finger tip in convexhull Pin
Dilan Shaminda30-Apr-13 19:34
professionalDilan Shaminda30-Apr-13 19:34 
SuggestionRe: Detect specific finger tip in convexhull Pin
Vaclav_1-May-13 5:46
Vaclav_1-May-13 5:46 
GeneralRe: Detect specific finger tip in convexhull Pin
Dilan Shaminda1-May-13 20:16
professionalDilan Shaminda1-May-13 20:16 
GeneralRe: Detect specific finger tip in convexhull Pin
Dilan Shaminda1-May-13 20:16
professionalDilan Shaminda1-May-13 20:16 
QuestionThe "hide_gui" key in the regedit , i want to know how does it works? Pin
ITboy_Lemon30-Apr-13 16:42
professionalITboy_Lemon30-Apr-13 16:42 
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 :
C++
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 .
AnswerRe: The "hide_gui" key in the regedit , i want to know how does it works? Pin
Richard MacCutchan30-Apr-13 21:31
mveRichard MacCutchan30-Apr-13 21:31 
QuestionAccess structure variable value using string representing variable's name in C++. Pin
shanmugarajaa30-Apr-13 1:43
shanmugarajaa30-Apr-13 1:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Sivaraman Dhamodharan30-Apr-13 2:10
Sivaraman Dhamodharan30-Apr-13 2:10 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Chris Losinger30-Apr-13 4:07
professionalChris Losinger30-Apr-13 4:07 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Newbie0030-Apr-13 7:43
Newbie0030-Apr-13 7:43 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
jschell30-Apr-13 9:47
jschell30-Apr-13 9:47 
AnswerRe: Access structure variable value using string representing variable's name in C++. Pin
Stefan_Lang1-May-13 22:09
Stefan_Lang1-May-13 22:09 
QuestionCatch OnKeyDown in CDialog Pin
_Flaviu29-Apr-13 23:52
_Flaviu29-Apr-13 23:52 
AnswerRe: Catch OnKeyDown in CDialog Pin
Chris Losinger30-Apr-13 1:52
professionalChris Losinger30-Apr-13 1:52 
GeneralRe: Catch OnKeyDown in CDialog Pin
_Flaviu30-Apr-13 2:11
_Flaviu30-Apr-13 2:11 
QuestionReadfile to read parent process console buffer Pin
ForNow29-Apr-13 15:51
ForNow29-Apr-13 15:51 
AnswerRe: Readfile to read parent process console buffer Pin
«_Superman_»2-May-13 19:11
professional«_Superman_»2-May-13 19:11 
GeneralRe: Readfile to read parent process console buffer Pin
ForNow3-May-13 4:11
ForNow3-May-13 4:11 
QuestionNo more DSP but DSW and SLN in VC6.0 Pin
Vaclav_29-Apr-13 9:36
Vaclav_29-Apr-13 9:36 
QuestionRe: No more DSP but DSW and SLN in VC6.0 Pin
David Crow29-Apr-13 9:40
David Crow29-Apr-13 9:40 
AnswerRe: No more DSP but DSW and SLN in VC6.0 Pin
Vaclav_29-Apr-13 14:11
Vaclav_29-Apr-13 14:11 
GeneralRe: No more DSP but DSW and SLN in VC6.0 Pin
Richard MacCutchan29-Apr-13 23:11
mveRichard MacCutchan29-Apr-13 23:11 

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.