Thread: Simplest way to create a good graph?

  1. #1
    Registered User
    Join Date
    Nov 2010

    Simplest way to create a good graph?

    "Is it even possible?" - is what I'm wondering. Yes, I'm talking C language, and I use Visual Studio 2008 for coding.

    Is there any way that would allow me to draw the x and y axis as well lines? Possibly defined based on equations I enter? Regardless, just getting out of that limiting console box while still using ANSI C language, ideally compiled with Visual Studio 2008.

    Would happily accept thoughts and ideas on this. Note that I'm still midway through research. If someone might already have some details about this I'd appreciate greatly if you could help me cut off time wasted on searches which yield no results

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    Anything not involving the console is going to require OS/Compiler specific libraries.

    Which you go for is hard to say, but since you're using VS2008, then perhaps the simple GDI interface would work.
    GDI+ (Windows)
    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.

  3. #3
    Registered User
    Join Date
    Nov 2010
    Thanks for the reply. I've spent several hours searching in relation to using GDI but I got simply nowhere. If anyone might have some sample code handy I'd appreciate giving it a run. Just a simple line being drawn would do me fine, the simpler the code the happier I'd be.

    What I did stumble upon was a japanese-commented program which made us of a non-standard graphics.h header file. Many mentioned doing something in relation to win32() but unless I can stumble upon some source code, no amount of theory will help me

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. scene graph rendering techniques
    By ichijoji in forum Game Programming
    Replies: 7
    Last Post: 03-19-2006, 12:17 AM
  2. Scene Graph - Compiling
    By Shamino in forum Game Programming
    Replies: 17
    Last Post: 03-05-2006, 11:57 AM
  3. In a game Engine...
    By Shamino in forum Game Programming
    Replies: 28
    Last Post: 02-19-2006, 11:30 AM
  4. Cannot create MDI Client Win
    By JaWiB in forum Windows Programming
    Replies: 1
    Last Post: 10-31-2005, 10:05 PM
  5. linked list recursive function spaghetti
    By ... in forum C++ Programming
    Replies: 4
    Last Post: 09-02-2003, 02:53 PM