Jump to content

Need help: GUI program to launch Maintenance Tools?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
25 replies to this topic

#1
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Hi

Posted Image

Any ideas on how I could create the above mockup, for real?

I would like;

RAM - Display shows in log (bottom) - Open display system properties
Scheduled Tasks - Display shows in log - Open opens up the scheduled tasks control panel applet
Backup Directory - Display show which it will go to - Open opens it up in explorer
Check Raid - Checks if the Software RAID is healthy - Open opens up Disk Management

I thought of the idea, then I prtscn'd the XAMPP Control Panel for the mockup.

Please tell me if it is possible to do as shown in the mockup.

Thanks in advance,

Panarchy

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It's possible. You'll probably need to use the Windows API heavily to do it, and may want to get a GUI toolkit to facilitate the GUI design.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
I'll have to use the WinAPI?

Okay, well I've done the research;

Scheduled Tasks
http://msdn.microsof....01(VS.85).aspx

Disk Management
A Description of the Diskpart Command-Line Utility (CLI)
http://msdn.microsof....86(VS.85).aspx
OCTL_DISK_PERFORMANCE:
http://msdn.microsof....83(VS.85).aspx

RAM
http://msdn.microsof....89(VS.85).aspx

My question is, how do I link all the above into a GUI program like the mockup I created before?

Thanks in advance for any more help with this,

Panarchy

PS: The 'display' button on Disk Management should show if the drives are Healthy or not

#4
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
It really depends on how you're doing the GUI. Launching another program is just a system() call, but the GUI will depend heavily on what you're creating it with.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#5
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Visual Studio 2008
C++

Oh, and I'd prefer to use the ShellExecute() & CreateProcess() calls.

#6
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
I don't use Visual Studio, unfortunately. It looks like a basic form with a few buttons and a text area, though.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#7
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Well I don't mind doing it with gcc instead. As long as it works.

#8
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
If you use gcc, you're back to selecting the GUI toolkit.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#9
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
I'd be happy to use any GUI toolkit, as long as it's free (or included with Visual Studio 2008), that is, free as an Open-Source project. Also needs to be able to run on any Windows 2003 & XP, without having to install anything extra.

So please for your example, use any GUI toolkit, as long as it works!

Thanks in advance,

Panarchy

#10
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
If you have VS2008, I'd just do it in that. Since it has drag-and-drop, it shouldn't be hard. Then you'll have the onclick events for each button call the appropriate shellexecute().
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#11
Panarchy

Panarchy

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 258 posts
Hmm... I'll check that out. Thanks

#12
hkp

hkp

    Learning Programmer

  • Members
  • PipPipPip
  • 37 posts
According to me you should use visual basic or c/c++ for that