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
B

bosfan

@bosfan
About
Posts
36
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Print class Members?
    B bosfan

    Hi, sorry ,i'm little late, thanks for answer. regards

    C / C++ / MFC

  • Print class Members?
    B bosfan

    Hello, sorry to all because its late answer, yes reflections should be the solution. Thanks

    C / C++ / MFC

  • Print class Members?
    B bosfan

    Hi, is it possible to print class members, like in Visual Studio in the "Immediate Window", when i write a class name there is an output with all members/variables in the window? Is there an API for this? Thanks for help bosfan

    C / C++ / MFC

  • Need help to show chm-Files?
    B bosfan

    Hello community, i call/open a help-file from my program, this works fine, only one thing i can't resolve: on the help file, if i select a next tab(on the left side), for example tab to search in help content, and close file. Any next start of that file is the last selected tab from previous call. And that is my problem: how to call the help file with selected first tab item, this is how i call a help file: HWND hwndHelp = ::HtmlHelpW(m_hWnd, csPathToHelpFile, HH_DISPLAY_TOPIC, dwTopic); Helpfile is opened, the right topic is shown, but the tab who is selected is the last one of the previous call, how to set the selected Tab to first index? I found this in "HtmlHelp.h": HH_DISPLAY_CONTENT, is this a key to show first tab with topics? Thanks in advance bosfan

    C / C++ / MFC help tutorial database question

  • BEGIN_MESSAGE_MAP never called?
    B bosfan

    Hi, i solved, of course, my mistake what else -.- I have a multiple inheritance of CHeaderCtrl and there was a fault. big sorry :( regards bosfan

    C / C++ / MFC help tutorial question

  • BEGIN_MESSAGE_MAP never called?
    B bosfan

    Hi, thans for Answer, yes i have all in my class definition. It is the same project from: Here in Codeproject If i start this example all works fine, but not if i use this in a new project. Thanks bosfan

    C / C++ / MFC help tutorial question

  • BEGIN_MESSAGE_MAP never called?
    B bosfan

    Hi, i have this Problem in custom CHeaderCtrl control. My message map look like this: BEGIN_MESSAGE_MAP(CHeaderCtrlEx, CHeaderCtrl) // MACROS ON_WM_LBUTTONDOWN() ON_WM_MOUSEMOVE() ON_WM_LBUTTONDBLCLK() ON_REGISTERED_MESSAGE(WM_HDN_ENDDRAG, OnHdnEndDrag) END_MESSAGE_MAP() Now i want to send a message to this header control but they never received it, i never had this before so i don't know what cause this? In a example Project here from codeproject work this "custom header control" very nice, no problems, only in my project? So what to check, where can be my mistake, what im doing wrong?? Thanks for any help! regards bosfan

    C / C++ / MFC help tutorial question

  • CRegKey read from registry?
    B bosfan

    Oh no, yes of course i mean QueryBinaryValue :(, my mistake :(((. One question now, is there any difference in Unicode Version, my App is in Unicode? Regards bosfan

    C / C++ / MFC help tutorial windows-admin question

  • CRegKey read from registry?
    B bosfan

    You right again, i change this, but i think if i do this in this way i can call the function without cast to byte, directly? Something like this: // regkey.QueryBinaryData(_T("key"), (BYTE**)&iArr[0], &bytes); // before regkey.QueryBinaryData(_T("key"), &iArr[0], &bytes); // now with byte array? i try this and this works to, is there any thing wrong now? bosfan

    C / C++ / MFC help tutorial windows-admin question

  • CRegKey read from registry?
    B bosfan

    Hi, thanks for answer, yes the buffer was wrong and i corrected this and now works. regards bosfan

    C / C++ / MFC help tutorial windows-admin question

  • CRegKey read from registry?
    B bosfan

    Hi, thanks for Answer, you right, i solve it in this way! I didn know that i can check "the required size" :( Now: srg.QueryBinaryValue(_T("key"), NULL, &bytes); // then if ERROR_SUCCESS int *iArr = new int[bytes]; srg.QueryBinaryValue(_T("key"), (BYTE**)&iArr[0], &bytes); Now i now how big is the needed size, it is saved in "bytes". And i have all Data from the registry. Best regards bosfan

    C / C++ / MFC help tutorial windows-admin question

  • CRegKey read from registry?
    B bosfan

    Hi, i need some help with CRegKey to read from registry :(. Here what works fine: int *target = NULL; AfxGetApp()->GetProfileBinary(m_strKey, _T("key"), (BYTE **)&target, &bytes); but i need to do this with registry key, like: // CRegKey is there and opened without errors int *target = NULL; myregkey.QueryBinaryValue(_T("key"), (BYTE**)&target, &bytes); Error is allways ERROR_MORE_DATA what means they are more information to read as i do? To write binary data to registry works fine to, only read is my problem now. Only for example here how i write binary to registry: int *value = new int[count]; myregkey.SetBinaryValue(_T("key"), (BYTE*)value, sizeof(int) * count); Can somebody help me how to read binary from registry with CRegKey::QueryBinaryValue?? Thanks in advance bosfan

    C / C++ / MFC help tutorial windows-admin question

  • Question about WINHTTP_STATUS_CALLBACK in WinHTTP?
    B bosfan

    Hi, i use in my project WinHTTP and set a callback function with WinHttpSetStatusCallback. That all works fine, but one thing is where i need some help,my mistake maybe to understand this (how to use it)? How to share information about current statuses with the caller? How to share, information from callback with my own "connect" function? Here what im doing:

    void MyHttp::Connect()
    {
    // Open WinHttpOpen(...);
    HINTERNET hSession = WinHttpOpen( L"application_t", WINHTTP_ACCESS_TYPE_DEFAULT_PROXY, WINHTTP_NO_PROXY_NAME, WINHTTP_NO_PROXY_BYPASS, 0);
    // now set the callback:
    WINHTTP_STATUS_CALLBACK mycall = WinHttpSetStatusCallback(hSession, callback, WINHTTP_CALLBACK_FLAG_ALL_NOTIFICATIONS, NULL);

    /// some other stuff
    }

    // now a piece of the callback :
    void CALLBACK callback(HINTERNET hSession, DWORD_PTR dwContext, DWORD dwInternetStatus, LPVOID lpStatusInformation, DWORD dwStatusInformationLen)
    {
    if (dwInternetStatus == WINHTTP_CALLBACK_STATUS_SECURE_FAILURE)
    {
    DWORD *details = (DWORD*)lpStatusInformation;
    if(WINHTTP_CALLBACK_STATUS_FLAG_CERT_DATE_INVALID & *details)
    {
    // this (is a invalid certificate date, and some other) is the information that i like to share wit my own "connect" function
    }
    }

    This is just a snippet of my function, all works fine, only one thing is left : i need this informations from a callback, is there any way to do this?? Many thanks for help! best regards bosfan

    C / C++ / MFC question cryptography help tutorial

  • For beginners introduction to CFormView, CView ?
    B bosfan

    Hi, thanks for sharing this url's :thumbsup: bosfan

    C / C++ / MFC help question

  • For beginners introduction to CFormView, CView ?
    B bosfan

    Hi, thanks for Answer and the URLs. Best regards bosfan

    C / C++ / MFC help question

  • For beginners introduction to CFormView, CView ?
    B bosfan

    Hi Community, is there a Article about CFormView, CView, CListView etc. for Beginners? I always work with dialog based Applications, so i don’t have any experience with this Classes. Any help would be great for me. Here i like to thanks to all who help me before in my problems :). regards bosfan

    C / C++ / MFC help question

  • Heap corruption problem after AfxBeginThread?
    B bosfan

    Hi, thanks for reply i try to solve this in this way. best regards bosfan

    C / C++ / MFC help debugging c++ performance question

  • Heap corruption problem after AfxBeginThread?
    B bosfan

    Hi, i need some help to solve this problem after create of worker thread. When i create a worker thread i receive this error message:

    Windows has triggered a breakpoint in myprog.exe.

    This may be due to a corruption of the heap, which indicates a bug in myprog.exe or any of the DLLs it has loaded.

    This is the code snippet:

    // create Thread:
    CWinThread* cmythr= AfxBeginThread(controlfunc,params, THREAD_PRIORITY_HIGHEST, 0,CREATE_SUSPENDED,0);
    if(NULL != cmythr)
    {
    cmythr->ResumeThread();
    }

    but after maybe 10 seconds i receive this error message: and the debugger show in this code in the file thrdcore.cpp:

    // first -- check for simple worker thread
    DWORD nResult = 0;
    if (pThread->m_pfnThreadProc != NULL)
    {
    nResult = (*pThread->m_pfnThreadProc)(pThread->m_pThreadParams);
    ASSERT_VALID(pThread);
    }

    A thing what make me confuse is that i cant find this position with memory allocation, i do nothing like this in this Function? No parameter is NULL, what i'm doing wrong? Any help is welcome Thanks bosfan

    C / C++ / MFC help debugging c++ performance question

  • Find ADS Files/Streams?
    B bosfan

    Hi, in this example i need a WDK installed, is this right? Because VS 10 don't know a "NtQueryInformationFile" and i found on microsoft.com that i need "ntifs.h" to include for this? After all ntifs.h is on my system but now i can't find "windowsfamiliy.h" :( Best wishes bosfan

    C / C++ / MFC tutorial question

  • Customize CFileDialog?
    B bosfan

    Hi, thanks for answer :) bosfan

    C / C++ / MFC 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