GIDForums  

Go Back   GIDForums > Computer Programming Forums > FLTK Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 22-Jul-2005, 09:29
cohadar cohadar is offline
New Member
 
Join Date: Jul 2005
Posts: 10
cohadar is on a distinguished road

Erco video tutorial problem


http://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  
Old 08-Aug-2005, 06:23
cohadar cohadar is offline
New Member
 
Join Date: Jul 2005
Posts: 10
cohadar is on a distinguished road
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  
Old 13-Aug-2005, 10:07
jorgen_ing jorgen_ing is offline
New Member
 
Join Date: Aug 2005
Posts: 3
jorgen_ing is on a distinguished road
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 GIDBlogMeeting the local Iraqis by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 00:51.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.