Thread: Graph in console app.

  1. #1
    the Wizard
    Join Date
    Aug 2004
    Posts
    109

    Graph in console app.

    Hi,

    I need som help, I want to display a graph in a window. It has something to do with a mathematical graph I want to display. For now my application is a console app, that calculates some different equations, such like quadratic, triangles and so on, and I want to display this graph from the equation that the program calculates.

    I've read that the Borland graphic.h header is outdated and therefore I'm a little on the scratch, so anything from links showing tutorials about it, another library or anything would be greatly appreciated.
    Some code to study is also welcome.

    I'm using Microsoft Visual C++ 6, if it helps.

    Thx in advance..
    -//Marc Poulsen -//MipZhaP

    He sat down, he programmed, he got an error...

  2. #2
    vae victus! skorman00's Avatar
    Join Date
    Nov 2003
    Posts
    594
    by mathematical graph, I'm guessing you mean a cartesian graph. If that is so, then you may want to look at windows GDI. It's a bit more simple than DirectX or OpenGL if you have windows programming experience. Althouth, I will say that using outdated software isn't always a bad thing. If this is all you plan on using it for, why not use borland's graphics?

  3. #3
    the Wizard
    Join Date
    Aug 2004
    Posts
    109
    Well, I thought about windows GDI, I don't have much experience with it, but a little.
    For my own program it would be okey to use some outdated software, but I just would like to be on the way where I won't run into a barrier when I want to learn more, so why not be on the right way from the beginning?

    Do you know of some http addresses where I can read about it, or have some tutorials? I would greatly appreciate it
    -//Marc Poulsen -//MipZhaP

    He sat down, he programmed, he got an error...

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Perhaps this, if you want some simple graphics
    http://www.libsdl.org/index.php
    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.

  5. #5
    the Wizard
    Join Date
    Aug 2004
    Posts
    109
    Thx Salem, I'll try taking a look at it
    -//Marc Poulsen -//MipZhaP

    He sat down, he programmed, he got an error...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Console app termination
    By C+/- in forum C++ Programming
    Replies: 2
    Last Post: 05-24-2008, 11:29 AM
  2. error help making no sense
    By tunerfreak in forum C++ Programming
    Replies: 5
    Last Post: 04-17-2007, 07:55 PM
  3. Console App w/ Threads and Events?
    By sean in forum C# Programming
    Replies: 1
    Last Post: 07-02-2004, 12:16 AM
  4. Need help migrating console app to windows app
    By DelphiGuy in forum C++ Programming
    Replies: 1
    Last Post: 03-14-2004, 07:05 PM
  5. Project Builder console app
    By Luigi in forum C++ Programming
    Replies: 0
    Last Post: 12-28-2002, 07:57 PM