Solved

Use of Performance Counters in VB6

Posted on 2004-10-11
8
981 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

740 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