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
R

Rolf Kristensen

@Rolf Kristensen
About
Posts
171
Topics
11
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Monitoring application memory usage
    R Rolf Kristensen

    The application can monitor itself[^] if you want. Or you can activate Windows Performance Counters[^] for your application, and use Performance Monitor to monitor your application.

    C / C++ / MFC question c++ linux debugging tools

  • How to store and retrieve data from database via internet using VC++2008
    R Rolf Kristensen

    You just answered the question yourself. You create a web-server-application (ASP.NET / PHP / CGI / Java etc.) on the same network as the database. Now the web-client-application can access the database through the web-server-application over the internet.

    C / C++ / MFC tutorial sysadmin c++ database

  • Any (free) Unit testing frame work for MFC code?
    R Rolf Kristensen

    Other test frameworks: Google Test[^] (Google Test Adapter (Adds VS2012 support)[^] Microsoft.VisualStudio.TestTools.CppUnitTestFramework (VS2012 only)[^] It can be a good idea to investigate how well the unit testing framework works together with your build server. It can give "free" benefits like test performance graphs, that can show if a recent code change have degraded performance.

    C / C++ / MFC c++ testing beta-testing help question

  • don't use the drive into Ring0
    R Rolf Kristensen

    Introduction to the WDF User-Mode Driver Framework[^] Windows User Mode Driver Framework[^]

    C / C++ / MFC tutorial question

  • How to make an edit box accept only digits from 0 - 9 in mfc.?
    R Rolf Kristensen

    If using DoDataExchange and DDX_Text, then you also have access to DDV_MinMaxInt (And other DDV friends[^])

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

  • CComboBox for lots and lots of options
    R Rolf Kristensen

    If you could find a ComboBox that expands into CListCtrl, then you can use the grouping feature of the CListCtrl. But an easier solution is just to use two ComboBoxes. One that allows one to select user type, and one that displays the filtered result within the selected user type.

    C / C++ / MFC graphics design data-structures sales question

  • How to get a ip address from system name
    R Rolf Kristensen

    Here is how to get ip address from system name:

    • How Can I get the Ip address of System
    C / C++ / MFC tutorial

  • Memory usage
    R Rolf Kristensen

    CString csMsg;
    PROCESS_MEMORY_COUNTERS_EX procMemInfo = {0};
    procMemInfo.cb = sizeof(procMemInfo);
    if (GetProcessMemoryInfo(GetCurrentProcess(), (PROCESS_MEMORY_COUNTERS*)&procMemInfo, sizeof(procMemInfo)))
    {
    // Log how much physical and total memory we are using
    // - Win7 (and newer) reports commit-size in this member
    if (procMemInfo.PagefileUsage==0)
    procMemInfo.PagefileUsage = procMemInfo.PrivateUsage;
    ULONG ulWorkingSetSize = (ULONG)(procMemInfo.WorkingSetSize / 1024 / 1024);
    ULONG ulPagefileUsage = (ULONG)(procMemInfo.PagefileUsage / 1024 / 1024);
    CString csProcessMemInfo;
    csProcessMemInfo.Format(_T("WorkingSetSize=%lu MBytes, CommitChargeSize=%lu MBytes"), ulWorkingSetSize, ulPagefileUsage);
    csMsg += csProcessMemInfo;
    }
    MEMORYSTATUSEX memStatus = {0};
    memStatus.dwLength = sizeof(memStatus);
    if (GlobalMemoryStatusEx(&memStatus))
    {
    // Log how much address space we are using (detect memory fragmentation)
    ULONG ulUsedVirtual = (ULONG)((memStatus.ullTotalVirtual-memStatus.ullAvailVirtual) / 1024 / 1024);
    ULONG ulAvailVirtual = (ULONG)(memStatus.ullAvailVirtual / 1024 / 1024);
    CString csMemStatus;
    csMemStatus.Format(_T("UsedVirtual=%lu MBytes, AvailableVirtual=%lu MBytes"), ulUsedVirtual, ulAvailVirtual);
    csMsg += csMemStatus;
    }

    C / C++ / MFC performance tutorial question

  • Strange memory leak
    R Rolf Kristensen

    If the sizeof(PROCESSENTRY32) == 48, then I have found your leak.

    C / C++ / MFC csharp c++ visual-studio data-structures performance

  • Application error 0xc0150002 when run MFC in Window 7
    R Rolf Kristensen

    Make sure to check the EventLog (Application + System) it can many times have interesting information, about failed program starts. Also even if you find it impossible to install VC6 on Win7, then you can still debug using WinDBG (Windows Debugging Tools).

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

  • Help to find an excesive memory allocation in my application
    R Rolf Kristensen

    I can recommend using VLD[^] and compile your application in release mode with the define VLD_FORCE_ENABLE.

    C / C++ / MFC sysadmin performance help tutorial question

  • need help with serial communications
    R Rolf Kristensen

    The latest version can be found here

    C / C++ / MFC help question

  • MFC CListCtrl FindItem is not working
    R Rolf Kristensen

    You could insert the column you want to search in first, and then change the display order afterwards so it becomes the second column. Or just implement your own search method:

    CString token = "hello";
    for(int i=0;i

    C / C++ / MFC c++

  • Can I create a dialog template for other dialog boxes?
    R Rolf Kristensen

    Here is an example Enhanced MFC Message Boxes[^] (Download 1.2 lite)

    C / C++ / MFC question learning

  • Corruption of the heap. Why ?
    R Rolf Kristensen

    I can recommend using Application Verifier[^] and then run your application within a debugger. Then it should break the application at the initial corruption of the heap. Application Verifier is part of the Windows SDK[^]

    C / C++ / MFC help question data-structures debugging performance

  • How to create your own Remote Desktop Application in Visual C++ or MFC
    R Rolf Kristensen

    Maybe this can help - Remote Control PCs[^] Alternative you can checkout this very simple .NET version Screen Cast Server with Control[^]

    C / C++ / MFC c++ tutorial

  • XML Data To C++ Objects
    R Rolf Kristensen

    These XML to CPP frameworks are also called ORM (Object Relational Mapping): QxOrm - C++ ORM (Object Relational Mapping) Library[^] XSD: XML Data Binding for C++[^] boost::serialization[^] I have little experience with "automatic" xml mappers, but when choosing a framework then ensure they can SAX parse (much faster) and also support versioning of XML documents (Support for mapping from old XML documents with deprecated and missing tags).

    C / C++ / MFC performance c++ html wpf wcf

  • Suggest a third party library for MFC applications
    R Rolf Kristensen

    Implement the GUI in .NET that can communicate with whatever backend.

    C / C++ / MFC performance c++ design algorithms

  • CListCtrl
    R Rolf Kristensen

    Inherit from CGridListCtrlEx - Grid Control Based on CListCtrl[^] and override CGridListCtrlEx::OnDisplayRowFont()

    C / C++ / MFC tutorial question

  • changing column value to hyper link
    R Rolf Kristensen

    Here are different examples of creating a hyperlink in the CListCtrl: A list control with hyperlink function[^] Simple CListCtrl with HyperLink Function[^] CListCtrl With Web Links[^]

    C / C++ / MFC 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