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
G

GuyM

@GuyM
About
Posts
56
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CListCtrl Bug when resizing - only happens when a newly inserted item causes scroll bar to appear
    G GuyM

    I'm getting the same thing with a CListView derived class. If you solve this issue - please let me know... Thanks.

    C / C++ / MFC help

  • Handling Double-Click in the header-control of a CListCtrl
    G GuyM

    Hi all, How can I catch/handle a double-click (left mouse button) on the header control of a CListCtrl. TIA

    C / C++ / MFC question

  • CListCtrl Selection of Item Problem
    G GuyM

    You can catch the OnSelChangeListCtrl(...) and always keep the index of the previously selected item. Once you get that there is no selected item (when clicking under the last item) just call ListCtrl.SetItemState(PrevSelItem, LVIS_SELECTED, LVIS_SELECTED);

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

  • CreateProcess problem.
    G GuyM

    Try the following:

    CString strExeAndParams = _T("\"C:\\MyExe.exe\" Param1 Param2");
    BOOL bOK = CreateProcess(NULL, (TCHAR*)(LPCTSTR)strExeAndParams, ...);

    Note that the path to the executable is wrapped with \" - because if the path has as space in it (like in "Program Files"), Windows will interpret the first half as the EXE name and the second half as the first command-line parameter. Hope this helps ...

    C / C++ / MFC help tutorial question

  • What "mapping" is all about?
    G GuyM

    Your assumption is correct. This is what happens when an executable calls a function from a DLL directly. With "GetProcAddress()", the DLL is loaded to memory (and mapped to addresses) when you call "LoadLibrary()". After the DLL is mapped, the call to "GetProcAddress()" will return the address that is mapped to that specific function. Hope this answers your question ... :)

    C / C++ / MFC question performance lounge

  • tcscpy_s.inl
    G GuyM

    What does the constructor of Analysis do with szTemp ? Could it be that the constructor deletes (frees) this pointer ?

    C / C++ / MFC help question

  • SDI to MDI
    G GuyM

    Personaly, I would create a new (MDI) project and copy in the relevant parts from the old project. This is because it is not so straight-forward to convert a project from SDI to MDI. You need to: 1. Change your CMainFrame class so that is derives from CMDIFrameWnd and not CFrameWnd. 2. Create a CChildFrame class that derives from CMDIChildWnd. 3. Assuming you're using Document/View architecture, you'll need to modify your CSingleDocTemplate to CMultiDocTemplate. 4. A few more little stuff that I can't really think of right now ... :doh: Hope this helps ...

    C / C++ / MFC

  • What "mapping" is all about?
    G GuyM

    What exactly is your question ... ?? :confused:

    C / C++ / MFC question performance lounge

  • WaitForSingleObject Query
    G GuyM

    In the first version the call to CreateEvent(...) should come before CreateThread(...), because the new thread might start and end before the original thread reaches CreateThread() ... Otherwise, both are OK. Hope this helps ...

    C / C++ / MFC c++ database question

  • Can't open project workspace
    G GuyM

    These files are generated by VC++. They contain information about your project/workspace, for example the *.clw holds Class-Wizard information and *.ncb contain intellisense data for your project. When VC++ loads your project, it collects data from these files (if they do not exist, they are rebuilt). If one of these files gets corrupted (don't ask me why, but it happens :(), then VC++ fails to load your project/workspace. So the solution is to just delete these files and let VC++ rebuild them properly ...

    C / C++ / MFC c++ help workspace

  • Can't open project workspace
    G GuyM

    Try the following: 1. Close VC++. 2. Delete the *.opt, *.ncb, *.aps and *.clw files (don't worry - they will be recreated later). 3. Reopen the VC++ and select your *.dsw.

    C / C++ / MFC c++ help workspace

  • Hi All !(CString Class)
    G GuyM

    the "Compare" function returns 0 (!!!) if the two strings are EQUAL, like strcmp(...)

    C / C++ / MFC help

  • How to make visible the inserted item in Tree control?
    G GuyM

    Try calling - YourTreeCtrl.Expand(hParent, TVE_EXPAND) where "hParent" is the leaf which is now the parent of the new item

    C / C++ / MFC help question data-structures tutorial

  • One Istance of the application
    G GuyM

    The Semaphore is actually like a system-wide flag - it's handled by the OS. Once you create (and lock) the named semaphore from one instance of your application, Windows will not let you do that in the second instance ...

    C / C++ / MFC question

  • How to read/write data from/to USB port ?
    G GuyM

    Again, assuming your device's USB driver acts like a regular serial-port : http://www.codeproject.com/system/chaiyasit_t.asp[^] Otherwise ... :confused:

    C / C++ / MFC help tutorial question

  • How to read/write data from/to USB port ?
    G GuyM

    Well, that depends on the driver for your specific device. If your device's USB driver acts like a serial-port then you need the ReadFile() and WriteFile() (just like in a serial port) Otherwise, you'll have to refer to the documentation/spec of your device ...

    C / C++ / MFC help tutorial question

  • system menu on dialog
    G GuyM

    :omg: Hey, I just checked it, and you know what ? You're absolutely right !!! :omg: Sorry, my bad :doh: You rule !! Guy.

    C / C++ / MFC tutorial

  • Vista ComboBox
    G GuyM

    That's not the problem ... The real problem is that now the buttons look like ComboBoxes ... :doh:

    The Lounge question

  • Opening a TCP/IP connection over ActiveSync
    G GuyM

    Hi Guys, I have an application running on a PDA (WinCE), and I want to send messages on TCP/IP over ActiveSync (USB) to a debug/logging application running on my PC. The PC application can run as a Server or as a Client (both are supported). Is there anything special I need to do in order to open the TCP connection over ActiveSync ? Can anyone help me with this ? Thanks in advance, Guy.

    Mobile sysadmin debugging help question

  • system menu on dialog
    G GuyM

    in the system-menu, not the Cancel button ... :) Here's the code:

    void CYourDlg::OnClose()
    {
    AfxMessageBox("Don't close!");
    }

    ... and don't forget to add the ON_WM_CLOSE() macro in the dialog's message-map.

    C / C++ / MFC tutorial
  • Login

  • Don't have an account? Register

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