Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › CPU Speed Converter (VB.Net Version)
New Posts  All Forums:Forum Nav:

CPU Speed Converter (VB.Net Version)

post #1 of 35
Thread Starter 
Well, I was using SoaDMTGguy's converter and I decided to make my own cute one in VB.Net.

All credits for Idea/Info go to Modki and SoaDMTGuy

Seems to work pretty well, please report any bugs to me.

Suggestions/Questions/Comments please!

This is a version 1.0, I am planning on getting rid of the label boxes and use Message boxes to report the speed.

edit- DO NOT CLICK CANCEL! Please!
edit2- Thanks to Prosser13 for being my sexy code checker. ;-)
edit3- Fixed some typo's
edit4- Uploaded Source

Thanks!
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
post #2 of 35
I got an error already :s

I clicked on "Cancel" when I clicked on the arrow to go from X2 to P4 and this came up:

Code:
See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.InvalidCastException: Cast from string "" to type 'Double' is not valid. ---> System.FormatException: Input string was not in a correct format.
   at Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String Value, NumberFormatInfo NumberFormat)
   --- End of inner exception stack trace ---
   at Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String Value, NumberFormatInfo NumberFormat)
   at Microsoft.VisualBasic.CompilerServices.DoubleType.FromString(String Value)
   at OCN_CPU_Speed_Converter.Main.btn64toP4_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Control.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnClick(EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
OCN CPU Speed Converter
    Assembly Version: 1.0.2668.19191
    Win32 Version: 1.0.2668.19191
    CodeBase: file:///C:/DOCUME~1/James/LOCALS~1/Temp/Rar$EX00.453/OCN%20CPU%20Speed%20Converter.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
    Assembly Version: 1.0.5000.0
    Win32 Version: 1.1.4322.2032
    CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 7.0.5000.0
    Win32 Version: 7.10.6001.4
    CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
----------------------------------------

************** JIT Debugging **************
To enable just in time (JIT) debugging, the config file for this
application or machine (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the machine
rather than being handled by this dialog.
Actually, seems to happen with all the Cancel buttons

EDIT: Another edit.

Pressing the button to convert C2D to AMD X2/64/FX brings up a box asking me to Input the comparable Pentium 4/D to covert to C2D :s
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
post #3 of 35
Thread Starter 
Ok, thanks. I will take this to the code lab tomorrow to see what is wrong with that, I haven't encountered that before =/ .

So just don't click cancel .
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
post #4 of 35
I won't

Another edit adding - being your sexy code checker

OK, looks like all the AMD --> P4/D/C2D have the wrong writing
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
post #5 of 35
Thread Starter 
Thanks prosser, Repped you for being a cool dude.
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
post #6 of 35


You need to sort out your text, it confuses me
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
post #7 of 35
Thread Starter 
Quote:
Originally Posted by prosser13 View Post


You need to sort out your text, it confuses me
Gahh lol, ok. I can't believe I didn't see this before.
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
post #8 of 35
Lol, least the code works.

I'm trying desperately to remember how you limit the number of decimal places in the answer to just 2
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
post #9 of 35
Thread Starter 
Quote:
Originally Posted by prosser13 View Post
Lol, least the code works.

I'm trying desperately to remember how you limit the number of decimal places in the answer to just 2
Just use an integer or another smaller style of input.

Fixed!
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
MONOLITH
(13 items)
 
  
CPUMotherboardGraphicsRAM
E6600 L631A871 eVGA 780i Dual G92 GTS's Corsair Dominator 2GB 
Hard DriveOptical DriveOSMonitor
Samsung Spinpoint F1 1TB Lite-On LightScribe Win Vista SP1 BenQ FP241w 
KeyboardPowerCaseMouse
Saiktek Eclipse II Corsair HX620 Rocketfish Razer Copperhead 
Mouse Pad
Steelpad Qck Heavy 
  hide details  
Reply
post #10 of 35
Looking good and great oppurtunities for upgrading

How quick and easy would it be to, instead of having initial speed, have the variable, and same for converted?

Another thing which will be a lot quicker - when you click the button it highlights the inital one with a red border and one its going to convert it to with a yellow border, then have the text in the appropriate colour
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
Main Rig
(13 items)
 
  
CPUMotherboardGraphicsRAM
Intel C2D E6700 Asus P5KPL-AM mATX Palit GTS250 2 x 2GB OCZ PC2-8500 
Hard DriveOptical DriveOSMonitor
Western Digital 500GB Pioneer DVD-RW Windows 7 Ultimate 64-bit Viewsonic VA2213w 
KeyboardPowerCaseMouse
Logitech Media Keyboard Deluxe 750W Thermaltake Toughpower Antec NSW4400 Logitech MX510 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Application Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Application Programming › CPU Speed Converter (VB.Net Version)