News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

cannot get graphical output from dislin using Tools output

Started by kmallick2000, January 12, 2017, 06:42:43 AM

Previous topic - Next topic

kmallick2000

In Windows 10, I am trying to use the Tools to pipe the output from a Fortran code into the console. The program compiles fine and runs as intended. However, when I use the Tools to pipe the output, the graphical content (plots, charts etc) of the dislin (http://www.mps.mpg.de/dislin) do not show at all, while the program runs in a hidden mode. I have to kill the process before I can run it again.

Attached is a screenshot from my setup for the Tools menu as suggested in the past and it seems to be working for the verbose output into stdout. But no luck with the graphical part.

BTW, the same setup works beautifully in Linux (Leap 42.1). The Tools output works great including the graphical content from dislin.

Any help with figuring my problem out in Windows 10 set up for C::B would be greatly appreciated.

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

kmallick2000

It launches fine if I do Run or Build and Run from the top menu.

oBFusCATed

I'm talking about the radio buttons in the screenshot you've attached.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

kmallick2000

ooops, I am sorry, Yes I tried all of the different combinations. some combos work as intended by outputting to an external console. but no luck in the way I want it to work. standard outout to the console inside and GUI as intended.

stahta01

Quote from: kmallick2000 on January 16, 2017, 05:00:18 PM
ooops, I am sorry, Yes I tried all of the different combinations. some combos work as intended by outputting to an external console. but no luck in the way I want it to work. standard outout to the console inside and GUI as intended.

IIRC, That is because you are on Windows.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

kmallick2000

I don't understand why. Another IDE Netbean allows that fine.

BlueHazzard

For me it is not clear what you want to do...
can you please explain in a step by step guide what do you want to do?
As far as i understand you want to run your compiled program trough the Tools plugin?
If you run the program trough Project->Run it runs fine, but if you run it trough Tools->Your program what happens?
What kind of output windows do you get? Ncurses, native mfc, qt?

kmallick2000

#8
Sorry for not being clear.

The main goal is to run my program without a separate console showing. Currently when I compile and run my code, I get a console output as well as a graphic output that uses the dislin routines. For example it shows a graphic plot as shown in the attached screen capture, while opening an external console at the same time:

I would like to pipe any output from the program in to an internal console (as opposed to an external console), but have the graphic output showing externally.

Currently, the Tools menu in Windows do not output anything, but keeps running in the background.

BlueHazzard

i am afraid, but i don't think cb can do this.

There is no native functionality to put the output into a c::b internal window. One possibility is as you have found the tools plugin.
You can also try the Tools+ plugin, but i don't think this will help you...

Why is this not possible? Simply: no one has implemented it, because no one (or at least no cb developer) until now has a need for it.

Maybe there is some workaround i don't know...

kmallick2000

There has been posts in the past that claimed this is possible and the feature needs to be accessed through the Tools menu.

http://forums.next.codeblocks.org/index.php?topic=13175.0

As I mentioned that it works fine in Linux, but not in Windows 10.

It seems to be a pain to make the C::B output appear in the internal console. Other IDEs like Netbeans and Eclipse do it without monkeying around.


oBFusCATed

Quote from: kmallick2000 on January 18, 2017, 04:15:39 AM
It seems to be a pain to make the C::B output appear in the internal console. Other IDEs like Netbeans and Eclipse do it without monkeying around.
Have you tried the other IDEs on Windows? Windows is a bit special when console applications are involved or when gui applications show a console themselves.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

kmallick2000

Thanks again for trying to help.
Yes, outputting to an internal console is the default in NetBeans running in Windows. My program works exactly as I intended in NetBeans. I was hoping to move to C::B for its added features.

BlueHazzard

i tried to find the code responsible for calling the programs and piping the output, but dammmmmm is java a pile of code and folders.... and full of files with 10 lines of only setter and getter....
any help to pointing in the right direction would be nice...

kmallick2000

I am sorry I don't understand what you had asked for. I would love to help/assist.