Thread: creating images with c++

  1. #1
    Registered User
    Join Date
    Apr 2008
    Posts
    99

    creating images with c++

    hi, i just wanna see how people may go about achieving an idea for a program I have. So far my program looks as a disk and maps its partitions and so on giving the user a text based review of the hard disks structure and size of the partitons and that. However I was thinking last night that it may be kool (i know im probably sad!) but to display my hard drive information in an image form. I dont want to create something too snazzy to begin with as I dont even have a clue how to start! Is there ways to determine shape size based on variable sizes for example I have a hardrive and a 2 partitions on it 'E' and 'C'. If 'E' takes up 60% and 'C' 40% of the harddrive, is there a way to determine a shape size buy the size of the partitons?

    thanks any input would be appreciated

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well the first thing you need to do is make sure you have really good backups. You're going to be messing with the disk at quite a low level for some of this, and there won't be much of a safety net between you and "OMG, it's gone!".

    You could probably start by digging here
    http://msdn.microsoft.com/en-us/library/ms805469.aspx

    You can also read the physical disk (permissions permitting)
    http://msdn.microsoft.com/en-us/libr...58(VS.85).aspx
    which may also help figure some other stuff out by following some of the links.

    Here's what's possible
    http://technet.microsoft.com/en-us/s.../bb896650.aspx
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Onclick Event(), On creating Images Componnets
    By Leite33 in forum Windows Programming
    Replies: 0
    Last Post: 10-09-2006, 03:16 PM
  3. CBitmap + big images = bad?
    By dug in forum Windows Programming
    Replies: 18
    Last Post: 06-28-2003, 11:53 PM
  4. Creating a VCD to Show Images
    By Davros in forum Windows Programming
    Replies: 2
    Last Post: 02-06-2003, 04:02 PM
  5. Creating Images in Borland C++ 6
    By stovellp in forum C++ Programming
    Replies: 12
    Last Post: 01-23-2003, 06:03 AM