Solved

Use of Performance Counters in VB6

Posted on 2004-10-11
8
979 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
ID: 12286042
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
ID: 12288596
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
ID: 12288718
Typo: accesses = accessed
0
 

Accepted Solution

by:
DextroSoft earned 250 total points
ID: 12295418
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
ID: 12581809
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

839 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