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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
B

BenDev

@BenDev
About
Posts
4
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Help needed! Please help
    B BenDev

    I'm not sure I understand what your code is supposed to do but I can spot something wrong : hHookKey, hHookShell, bHookInstalled should be inside your SHARDATA section. They should be shared between processes. I think ghWndMain should be inside as well. (hwndMain doesn't seem to be used ?) #pragma data_seg("SHARDATA") HHOOK hHookKey = NULL; HHOOK hHookShell = NULL; BOOL bHookInstalled = FALSE; HWND ghWndMain = NULL; #pragma data_seg() ------------------------- Benoit Devigne http://www.bdevigne.com contact@bdevigne.com

    C / C++ / MFC c++ linux help

  • sending messages from a worker thread to cdocument
    B BenDev

    The AfxGetMainWnd() will return the main window of the thread that made the call and it's not likely to be to one you want it receive the message. Furthermore, you should avoid using MFC objects in your thread if they have been created in another thread. MFC doesn't handle that very well... My prefered solution is to pass the HWND you need to your thread as a parameter : CWinThread* pThread = AfxBeginThread(MyThread, (HWND)m_hWnd); // or any HWND you want UINT MyThread(LPVOID pParam) { HWND hWnd = (HWND)pParam; ::PostMessage(hWnd, ... } You can pass a CWnd* as well but remember you want be able to access all its methods. In your case, if you only want to do a pWnd->PostMessage(...), it will work. ------------------------- Benoit Devigne http://www.bdevigne.com contact@bdevigne.com

    C / C++ / MFC question

  • missing export SHELL32.DLL:SHGetSpecialFolderPathA
    B BenDev

    I think you've got a SHELL32.DLL version earlier than 4.71. Internet Explorer 5.5 doesn't update the SHELL32.DLL. It's updated only on Windows 95 or NT4 when you you install Internet Explorer 4 with the integrated shell option (aka desktop update). A clean way of fixing it is to un-install IE 5.5, install IE 4.01 with desktop update and then re-install IE 5.5. ------------------------- Benoit Devigne http://www.bdevigne.com contact@bdevigne.com

    C / C++ / MFC help question

  • running JavaScript from VC++ program
    B BenDev

    Have a look to the MSSCRIPT.OCX ActiveX control. There're some sparse example in the MSDN Library. I hope this control can help you. :cool: ------------------------- Benoit Devigne http://www.bdevigne.com contact@bdevigne.com

    C / C++ / MFC help tutorial c++ javascript 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