Solved

Use of Performance Counters in VB6

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

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…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

707 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