creating images with c++

This is a discussion on creating images with c++ within the C++ Programming forums, part of the General Programming Boards category; hi, i just wanna see how people may go about achieving an idea for a program I have. So far ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,497
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

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, 03:02 PM
  5. Creating Images in Borland C++ 6
    By stovellp in forum C++ Programming
    Replies: 12
    Last Post: 01-23-2003, 05:03 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21