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
V

vcplusplus

@vcplusplus
About
Posts
169
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to implement DirListBox and DriveListBox in Visual C++ ?
    V vcplusplus

    The following code will enumerate all the files in the current directory. CFileFind finder; BOOL bWorking = finder.FindFile("*.*"); while (bWorking) { bWorking = finder.FindNextFile(); myListBox.AddString(finder.GetFileName()) }or Use the method CListBox::Dir

    C / C++ / MFC c++ tutorial question

  • Help on Command Line Parameters
    V vcplusplus

    if szCmdLine contains other parameters besides /a or /b, you will need to do this. if (szCmdLine.Find("/b") >= 0 || szCmdLine.Find("/a") >= 0) { MessageBox (NULL, szCmdLine,"met",0); } else { MessageBox (NULL, szCmdLine,"Not met",0); }

    C / C++ / MFC help question

  • How to write o soft keyboard
    V vcplusplus

    http://www.codeproject.com/samples/onscreenkeyboard.asp[^]

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

  • vc++
    V vcplusplus

    If you want to do it at run time, override the virtual function DoModal(); #include <afxpriv.h> // Required for CDialogTemplate int CMyDlg::DoModal() { CDialogTemplate dlt; // Load dialog Template if (!dlt.Load(MAKEINTRESOURCE(CMyDlg::IDD))) { return -1; } // Set Font Size; // Default Value WORD nFontSize = 10; TCHAR chFaceName[100] = "Courier New"; // Open an ini file or read from the registry to get the new font size and face name if (GetNewFontSize(....)) { nFontSize = newsize; } if (GetNewFaceName(....)) { lstrcpy(chFaceName, newfacename); } dlt.SetFont(chFaceName, (WORD)nFontSize); // Get pointer to the modified dialog template LPSTR pData = (LPSTR)GlobalLock(dlt.m_hTemplate); if (pData == NULL) { return -1; } // Let MFC know that you are using your own template m_lpszTemplateName = NULL; InitModalIndirect(pData); // Display Dialog Box INT nResult = CDialog::DoModal(); // Unlock memory object GlobalUnlock(dlt.m_hTemplate); return nResult; }

    C / C++ / MFC c++ tutorial

  • Hook woes
    V vcplusplus

    Are you assigning lpMeasureItemStruct->itemHeight the new height? void CMyView::OnMeasureItem(int nIDCtl, LPMEASUREITEMSTRUCT lpMeasureItemStruct) { ... ... ... lpMeasureItemStruct->itemHeight = nNewHeight; ... ... ... }

    C / C++ / MFC tutorial help question

  • Compile with version.lib
    V vcplusplus

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_core_..lib_files_as_linker_input.asp[^]

    C / C++ / MFC c++ help tutorial question announcement

  • Installing Visual Studio
    V vcplusplus

    http://msdn.microsoft.com/visualc/productinfo/faq/default.aspx#Visual_Studio_Versions_and_Upgrades[^]

    C / C++ / MFC csharp visual-studio help question

  • CFile
    V vcplusplus

    vc-programmer- wrote: CFile is like as sql have new,delete,update. Here is a list of all the methods for CFile. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_mfc_cfile_class_members.asp[^]

    C / C++ / MFC tutorial c++ database announcement

  • Detect Privileges
    V vcplusplus

    NetUserGetInfo(servername, username, USER_INFO_1, bufptr); http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/netusergetinfo.asp[^]

    C / C++ / MFC tutorial question

  • windows ce and pocketpc 2003
    V vcplusplus

    Did you try WM_LBUTTONDOWN and WM_LBUTTONUP?

    C / C++ / MFC

  • Execute a *.exe inside my application
    V vcplusplus

    illidan99 wrote: I want to run another application(B) inside my application(A). In this moment the application B takes control and when it's closed, then my application A retakes the control. ¿Which function or class can I use for this? _spawnl(_P_WAIT, "c:\\MyApp.exe", "c:\\MyApp.exe", NULL, NULL); http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/HTML/_crt__spawnl.2c_._wspawnl.asp[^]

    C / C++ / MFC c++ hardware question

  • Folder creation from inline code?
    V vcplusplus

    You're right, my mistake.:(

    C / C++ / MFC c++ question

  • Folder creation from inline code?
    V vcplusplus

    CreateDirectory("C:\\Engineering Data\\Diagnostic Data\\2004_10_15") will fail if "C:\\Engineering Data\\Diagnostic Data\\" does not exist.

    C / C++ / MFC c++ question

  • stupid array initialization
    V vcplusplus

    int *pArr = new int[Size];

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

  • int to CString
    V vcplusplus

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/_mfc_cstring.3a3a.format.asp?frame=true[^]

    C / C++ / MFC help question

  • Socket Programming using threads
    V vcplusplus

    I have heard that there are problems with CSocket. Check out this article. http://tangentsoft.net/wskfaq/articles/csocket.html[^]

    C / C++ / MFC sysadmin question

  • #define style templates and float
    V vcplusplus

    3.5 and 8.7 are consider constant doubles. When I compile the code below, VC gives me a warning for "a" but not for "b"float a = 2.4; warning C4305: 'initializing' : truncation from 'const double' to 'float' float b = 2.4f;

    C / C++ / MFC c++ wpf help tutorial question

  • How to start a PC/Application from Program
    V vcplusplus

    If you are using NT/2000/XP, you will need to set privileges.
    DWORD dwVersion = GetVersion(); if ( dwVersion < 0x80000000) { // NT/2000/XP HANDLE hToken; LUID tmpLuid; HANDLE handleProcess=GetCurrentProcess(); if (!OpenProcessToken(handleProcess,TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken)) return; if (!LookupPrivilegeValue(0,"SeShutdownPrivilege", &tmpLuid)) return; TOKEN_PRIVILEGES NewState; LUID_AND_ATTRIBUTES luidattr; NewState.PrivilegeCount = 1; luidattr.Luid=tmpLuid; luidattr.Attributes=SE_PRIVILEGE_ENABLED; NewState.Privileges[0]=luidattr; if (!AdjustTokenPrivileges(hToken, false, &NewState, sizeof(TOKEN_PRIVILEGES), 0, 0)) return; } ExitWindowsEx(...);

    C / C++ / MFC help tutorial question

  • SetForegroundWindow fails
    V vcplusplus

    I found a work-around for this problem. http://codeproject.com/dialog/dlgboxtricks.asp[^]

    C / C++ / MFC com help

  • SetForegroundWindow fails
    V vcplusplus

    That's how XP works. It flashes the taskbar instead of having the application take over the screen. If you can, try your App. on a Win 98 machine just to make sure it's XP and not your code.

    C / C++ / MFC com help
  • Login

  • Don't have an account? Register

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