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
W

willy_total

@willy_total
About
Posts
11
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Pointer - output
    W willy_total

    You need to have a pointer to a pointer. void a(char **ppcOutput) You also need to free the memory in the main function.

    C / C++ / MFC question

  • How to convert TCHAR to char
    W willy_total

    char *pAnsiString = new char[nSize+1]; wcstombs(pAnsiString, wcpString, nSize+1);

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

  • Overwriting struct in binary file
    W willy_total

    you need to use ios::binary|ios::_Nocreate as the open mode when you do the open to replace the second person

    Managed C++/CLI ios data-structures help tutorial question

  • EditBox & Enter
    W willy_total

    You are making this much harder than it needs to be. This is a very easy thing to code. The following code does exactly what you need. All you have to do is copy it into your code and it will work. You don't need to mess around with the create options. The reason it works is because the IDOK button will be a default button, and will be called when the return is pressed. case WM_COMMAND: { switch(LOWORD(wParam)) { case IDOK: { HWND hWndChild = GetFocus(); if( hWndChild != GetDlgItem(hDlg, IDOK) ) { if( hWndChild == GetDlgItem(hDlg, IDC_EDIT1) ) { char szText[128]; GetWindowText(hWndChild, szText, sizeof(szText)); SetWindowText(GetDlgItem(hDlg, IDCS_TEXT), szText); return TRUE; } } EndDialog(hDlg, LOWORD(wParam)); } return TRUE;

    C / C++ / MFC

  • Socket Programming question
    W willy_total

    you are sending 0 bytes. you need to give it a size that your are sending. You also need to give a size when you recv. It would work best if you just used sizeof(msg)

    Managed C++/CLI question help tutorial

  • EditBox & Enter
    W willy_total

    here is Shay Harel code converted. case IDOK: HWND hWndChild = GetFocus(); if( hWndChild != GetDlgItem(hWnd, IDOK) ) { if( hWndChild == GetDlgItem(hWnd, IDC_MYEDITBOX) ) // do something; }

    C / C++ / MFC

  • need help in TrimStart()
    W willy_total

    The easiest way is to use CString LeftTrim, but if you can't use CString. You might be able to use StrTrim, but it will remove the chars from the left and right, so if that will not work for you, you will have to loop through the string.

    C / C++ / MFC c++ help csharp tutorial

  • need help in TrimStart()
    W willy_total

    you can't use the .Net framework in VC 6.0. You will have to use CString or the C-Runtime Library funcitons.

    C / C++ / MFC c++ help csharp tutorial

  • New notification code for subclassed CButton
    W willy_total

    you can use WM_USER then just add to it if you need more than one

    C / C++ / MFC c++ question announcement

  • I want a Timer fuction on Non UI thread
    W willy_total

    You can't use WaitForSingleObject you have to use MsgWaitForMultipleObjects then Dispatch the message to the other controls while you wait on the timer.

    C / C++ / MFC design

  • I want a Timer fuction on Non UI thread
    W willy_total

    You can use CreateWaitableTimer. It will create a timer that uses events.

    C / C++ / MFC design
  • Login

  • Don't have an account? Register

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