Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8109173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:20:09+00:00 2026-06-06T01:20:09+00:00

I have made an application in C++ and would like to know how to

  • 0

I have made an application in C++ and would like to know how to go about implementing a usage statistics system so that I may gather some data regarding how users use the program.

Eg. IP Address, Number of hours spent in application, and OS used.

In theory I know I can code this myself if I must, but I was wondering if there is a framework available to make this easier to do. Unfortunately I was unable to find anything on google.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T01:20:10+00:00Added an answer on June 6, 2026 at 1:20 am

    Though there is no any kind of such framework, you could reduce the work you have to do (in order to retrieve all these information) by using some approaches and techniques, which I tried describe below. Please, anybody feel free to correct me.

    Let’s summarise, what groups of information do we need to complete the task:

    • User Environment Information. I suggest you to look at Microsoft’s WMI infrastructure, in particular to WMI classes: Desktop, File System, Networking, etc. Using this classes in your application can help you retrieve almost all kind of system information. But if you don’t satisfy with this, see #2.
    • Application and System Performance. Under these terms I mean overall system performance, processor’s count, processes running in OS, etc. To retrieve these data you can use the NtQuerySystemInformation function. With its help, you will get an access to detailed SystemProcessInformation, SystemProcessorPerformanceInformation (retrieves info about each processor) information, and much more.
    • User Related Information. It’s hard to find a framework to do such things, so I suggest you simply start writing code, having in mind your requirements:
      • counting how many times each button was pressed, each text field was changes, etc.
      • measuring delay time between consecutive actions in some kind of predefined sequences (for example, if you have a settings gui form and you expect from the user to fill very fast all required text fields, so using a time delay measuments can give you an information if the user acted as we expected from him or delayed after TextBox2 for a 5 minutes).
      • anything that could be interested to you.

    So, how you could implement the last item (User Related Information) requirements? As for me, I’d do something like folowing (some may seem very hard to implement or too pointless):
    – creating a kind of base Counter class and derive from it some controls (buttons, edits, etc).
    – using a windows hooks for mouse or keybord while getting a child handle (to recognize a control, for example).
    – using Callback class, which can do all “dirty” work (counting, measuring, performing additional actions).

    You could store all this information either in a textfile or an SQLite database or there wherever you prefer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have made a small application in Java and I would like to make
I have this application I made on a utility based app. How would I
I have made an application that gives the user the option to open up
I have made a swings application but there is one problem in that which
I have made a web application that uses master page for Login & Logout
Greetings, I have an asp.net mvc application. I have some links that corresponds to
I've made a small 3D viewer application using DirectX 9.0. Now I would like
I would like to know what I have to do to comply to the
I have some qml that acts as the output from the application (kind of
I have made an application (for my self) for feeds reading, using SyndicationFeed ,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.