![]() |
| | #1 |
| Registered User Join Date: May 2003
Posts: 5
| Simple C++ GUI programme does'nt run from dos question is WHAT should I do ????????????. I want to run it from Dos (its very essential) tanx . please answer as quickly as possible |
| Shadowhunt is offline | |
| | #2 |
| Spanky Join Date: Nov 2002
Posts: 148
| Are you linking the correct libs?
__________________ Dev C++ Win XP/2k/98 I DO NOT TAKE CLASSES I DONT GET HOMEWORK THIS IS NOT A HOMEWORK QUESTION!!! He's lean he's keen... He's the spank machine! |
| devour89 is offline | |
| | #3 |
| Carnivore ('-'v) Join Date: May 2002
Posts: 2,865
| What graphics functions are you using? What are you using for graphics?
__________________ Just Google It. √ (\ /) ( . .) c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination. |
| Hunter2 is offline | |
| | #4 |
| Hardware Engineer Join Date: Sep 2001
Posts: 1,397
| General comments... I don't know if this will be of any help... If you have C-Editor configured to invoke your Tcc compiler, then assuming everything is set-up properly, the results should be identical from the command line and the IDE. There are Windows IDE compilers that can create DOS applications, and command line compilers (The free Borland compiler) that can make windows applications. Not all compilers can make true-DOS applications. For example, Microsoft Visual C++ can make a console application that runs in a DOS-like window, but these applications will not run on a true-DOS machine. Graphics are NOT part of the ISO/ANSI C++ standard. Every compiler has different graphics functions. You can't use the graphics library from one compiler in another compiler. See the FAQ There are 3rd party libraries that work with multiple compilers (OpenGL). Finally, anybody who thinks any GUI application is simple probably doesn't need any help from me. |
| DougDbug is offline | |
| | #5 | |
| Registered Luser Join Date: Apr 2003
Posts: 17
| Re: Simple C++ GUI programme does'nt run from dos Quote:
Furthermore, if you are using Fonts provided by Borland, you need to copy those .CHR files to the executable folder too. Basically, you have to specify the 'path' of the Graphic library files you'd be using. You can either specify this in the source itself (and put .BGI files in a different folder relative to the executable), or simply put the .BGI files in the same folder as executable. | |
| eMMeMM is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gui Programme does'nt Compiles from DOS | Shadowhunt | C++ Programming | 1 | 06-06-2003 08:05 AM |
| Programs run in dos. Why not windows? | marcusbankuti | C++ Programming | 15 | 08-11-2002 07:33 PM |
| Program to run in Dos only | ihsir | C++ Programming | 2 | 01-19-2002 06:16 PM |
| DOS program versus DOS console program | scromer | A Brief History of Cprogramming.com | 4 | 01-10-2002 01:42 PM |
| How to run DOS commands from c++ | ihsir | C++ Programming | 2 | 12-05-2001 05:59 AM |