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
M

mkuhac

@mkuhac
About
Posts
10
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to close or recycle "FILE f_ptr" after using it
    M mkuhac

    DavidCrow wrote:

    The only way to free it up is to close the application.

    Depends. If array data is global then yes.

    C / C++ / MFC data-structures performance tutorial

  • Unused member functions
    M mkuhac

    1. Are they included in compiled files (.obj, .dll,...) 2. What about unused friend functions? -- modified at 7:41 Thursday 13th April, 2006 Anybody? Look I know that different compilers optimize code differently, but I would like to know : A) What does the standard say? B) What code MSVC 7.1 produces?

    C / C++ / MFC question code-review

  • Using VC7.1 compiler under VC6 IDE.... woes.... :S
    M mkuhac

    kevingpo wrote:

    Does MFC/ATL still exist in VS.NET2003 or have they been replaced with STL?

    This is illogical question because STL is collection oriented, while MFC and/or ATL/WTL are GUI oriented. Can you build Windows application with just collections (no menus, windows, buttons...)??

    C / C++ / MFC visual-studio csharp c++ php database

  • Which is faster...
    M mkuhac

    Windows API

    C / C++ / MFC c++ json question

  • Is it possible to get info between HWND and Process handle?
    M mkuhac

    Answer to your 2. question: // assuming that you have window handle // get process ID from window handle DWORD dwProcessId = 0; GetWindowThreadProcessId (hWnd, &dwProcessId); // get process handle from process ID HANDLE hProcess = NULL; hProcess = OpenProcess (PROCESS_ALL_ACCESS, FALSE, dwProcessId);

    C / C++ / MFC question

  • convert int to char??
    M mkuhac

    TCHAR szBuffer[16]; INT iValue = 5; ::wsprintf (szBuffer, TEXT("%d"), iValue);

    C / C++ / MFC question

  • cout
    M mkuhac

    Try this, if you are using Win API only: INT CDECL ConPrintf (LPCTSTR lpszFormat, ...) { TCHAR szBuffer[1024]; INT iRet; DWORD cbWritten; HANDLE hStdOut = NULL; va_list va; va_start (va, lpszFormat); iRet = wvsprintf (szBuffer, lpszFormat, va); va_end (va); hStdOut = GetStdHandle (STD_OUTPUT_HANDLE); WriteConsole (hStdOut, szBuffer, iRet * sizeof (TCHAR), &cbWritten, NULL); return iRet; } Usage is identical to wsprintf, but it writes to console output.

    C / C++ / MFC

  • Need Your Help!!!!
    M mkuhac

    // Wnd is an instance of CWnd HWND hwndEdit = ::GetDlgItem (Wnd.GetSafeHwnd(), ID_EDIT);

    C / C++ / MFC help

  • What about assembly?
    M mkuhac

    Reverse engineering IS legal in most countries, patent stealing is not.

    Site Bugs / Suggestions graphics game-dev security question

  • initializing pointers / handles
    M mkuhac

    what is the difference between (c): HMENU hMenu = NULL; and HMENU hMenu = (HMENU) NULL; or (c++): HMENU hMenu = 0; and HMENU hMenu = reinterpret_cast(0); Is cast operator while initializing pointers really necessary?

    C / C++ / MFC question c++
  • Login

  • Don't have an account? Register

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