Solved

Use of Performance Counters in VB6

Posted on 2004-10-11
8
983 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

739 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