i got a exectuable file from my friend and it does not work in my pc ..
it shows a error as follows
BGI ERROR:GRAPHICS NOT INITIALIZED (USE 'initgraph')
how do i correct the error?
thanks
i got a exectuable file from my friend and it does not work in my pc ..
it shows a error as follows
BGI ERROR:GRAPHICS NOT INITIALIZED (USE 'initgraph')
how do i correct the error?
thanks
You get him to initialise the graphics properly using initgraph.
If he made the program, only he can change it.
- Compiler warnings are like "Bridge Out Ahead" warnings. DON'T just ignore them.
- A compiler error is something SO stupid that the compiler genuinely can't carry on with its job. A compiler warning is the compiler saying "Well, that's bloody stupid but if you WANT to ignore me..." and carrying on.
- The best debugging tool in the world is a bunch of printf()'s for everything important around the bits you think might be wrong.
Actually he will either need to provide you with the Borland Graphics Interface (BGI) files or statically compile these libraries into the executable.
Jim
I see your friend is writing code for ENIAC...
Code://try //{ if (a) do { f( b); } while(1); else do { f(!b); } while(1); //}