Hello everybody,

This one for those who like graphics programming with C. Can any one of you tell me how to make stand alone graphics exe through C.
i have read a paragraph on this topic but its not happenning.

It will very nice of you if you code simple program like this:

#include<stdio.h>
#include<graphics.h>
#include<conio.h>

int main(void)
{
  int gd=DETECT,gm;
  initgraph(&gd,&gm,"c:\\tc\\bgi');
  setcolor(RED);
  circle(100,100,25);
}

<< moderator edit: added code tags: [code][/code] >>

and show me how to make it standalone exe. :sad: :confused:

Recommended Answers

All 2 Replies

It looks like you are trying to make some old Borland code for DOS. Perhaps there are some examples in the Code Snippets.

First you need to have the right compiler(Old Turbo C++ 3.0?) for the code to compile.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.