![]() |
|
#1
|
|||
|
|||
Erco video tutorial problemhttp://seriss.com/people/erco/fltk-videos/
I was watcing the tutorials from the above link, they really are great, except one detail. There are based on a .NET compiler, and I work with Dev-C++. I do the FLUID video tutorial and write code into .cxx and .h and import this files in new Dev-C++/Fltk project and compile. Then I go to the console(so I could see the printf output) start my program, and GUI part works perfecty, but there is no console output. I try it again this time with -lshell32 option for linker, and still nothing. What do I need to do to make my GUI app do output to console? |
|
#2
|
|||
|
|||
|
Ok here is the solution for Dev-C++.
Make a new console project. Insert the fltk code, and the in project options -> parameters -> linker add this: -lfltk -lole32 -loleaut32 -luuid -lcomctl32 -lwsock32 -lkernel32 -luser32 -lgdi32 -lm What happened is that we fooled compiler that we are going to make a console application(so he would include console subsystem switch), and then we linked neccessary GUI libraries. (note that there is no -lshell32 , it isn't necessary ???) If the program is then started from GUI it will open console in the background in which you can write with <iostream> (This is great for debugging) If the program is started from console it will output to the console that started it. I thik something similar could be done with .NET I dont have a .NET but if someone has, don't hesitate to post a solution here. |
|
#3
|
|||
|
|||
|
See my reply in the Hide Console thread.
I replied before reading this thread so didn't know you were using dev C, looks like you figured it out, in any case. jorgen |
Recent GIDBlog
Meeting the local Iraqis by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Graphic problem in Unreal Tournament 2004 | zerox | Computer Software Forum - Games | 10 | 09-Oct-2005 12:31 |
| String problem | vaha | C Programming Language | 3 | 24-May-2005 18:21 |
| I need a reliable audio video webhost | onauc | Web Hosting Forum | 1 | 20-Dec-2004 09:28 |
| MPG video playback problem | minimustangs | Computer Software Forum - Windows | 2 | 18-Oct-2004 15:26 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 07:53 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The