Solved

Use of Performance Counters in VB6

Posted on 2004-10-11
8
973 Views
Last Modified: 2012-06-27
I am interested in creating/updating performance counters from a VB6 application for monitoring via an external application (note: I have already written the monitoring app in VB.NET to monitor windows & .NET apps).  

I am mainly looking for a good point in the right direction, but of’ course I’ll award extra points if someone has an easy solution.
0
Comment
Question by:chilltemp
  • 3
  • 2
8 Comments
 

Expert Comment

by:DextroSoft
Comment Utility
First thing would be to measure time a little bit more accurate :

Milliseconds:
 MyTime = Format(Now, "dd-MMM-yyyy HH:nn:ss") & "." & Right(Format(Timer, "#0.00"), 2)

Hope this helps,
Dextro

0
 

Author Comment

by:chilltemp
Comment Utility
Dextro,
Thanks, but that's not what I'm looking for.  I'm looking for an interface to the windows performance counters.  I'm sorry if my original message was a little vague.  In VB.NET, this can be accesses via the System.Diagnostics.PerformanceCounter namespace, but I'm looking for something similar in VB6.
0
 

Author Comment

by:chilltemp
Comment Utility
Typo: accesses = accessed
0
 

Accepted Solution

by:
DextroSoft earned 250 total points
Comment Utility
OK....

Have a closer look to the following :

http://www.vbcodemagician.dk/resources/perfs.htm

You'll find the VB6 source-codes for compiling a dll which allows to retrieve the performance counters of Windows. (As an example the (VB6° dll is used in a VBS - script, but can be used in a "normal" vb6 program as well)

Regards,
Dextro
0
 

Expert Comment

by:DextroSoft
Comment Utility
Well...the guy asked a way to access the performance counters of Windows in VB6. Without further notice, I'm pretty sure this is what the latest link I added is providing.

Regards,
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now