[Interest] Run Console and windows screen

Daniel Mota danielmota.producao at gmail.com
Sun Nov 3 18:42:31 CET 2013


Guys... I appreciate a lot all suggestion and help ministered!

The solution was kind of trivial, but not for a starter as me!

But I think knowledge is a growing process, and mutual help, so, maybe some
was interested in the solution.

To reach what I wanted was just necessary to include in the compilation
line the following text:

/SUBSYSTEM:CONSOLE

Inside the linker options (VS2012).

Best regards to all!

Dan



On Tue, Oct 29, 2013 at 2:38 PM, Etienne Sandré-Chardonnal <
etienne.sandre at m4x.org> wrote:

> Strange, I receive attachments all days on this one. Can you send it by
> dropbox/google drive or something else?
>
> Etienne
>
>
> 2013/10/29 Daniel Mota <danielmota.producao at gmail.com>
>
>> Hi...
>>
>> I tried to send you the pack, but it was refused by your server due
>> security reasons... Is there any other email I can send it?
>>
>> Thanks
>>
>> Daniel
>>
>>
>> On Mon, Oct 28, 2013 at 5:26 PM, Etienne Sandré-Chardonnal <
>> etienne.sandre at m4x.org> wrote:
>>
>>> Yes, why not. I am not sure to be able to test a VS project (I have VS
>>> on a computer, but not configured for Qt. But I can compile with MSVC under
>>> QtCreator)
>>>
>>> Etienne
>>>
>>>
>>> 2013/10/28 Daniel Mota <danielmota.producao at gmail.com>
>>>
>>>> yes..
>>>>
>>>> Just tried, no good yet.
>>>>
>>>> Would you mind if I send you the project file (about 5MB) so that you
>>>> can see if I am doing anything wrong?
>>>>
>>>> Thanks
>>>>
>>>> Daniel
>>>>
>>>>
>>>> On Mon, Oct 28, 2013 at 1:57 PM, Etienne Sandré-Chardonnal <
>>>> etienne.sandre at m4x.org> wrote:
>>>>
>>>>> Hi Daniel,
>>>>>
>>>>> Have you tried running the exe manually from explorer or better, from
>>>>> command prompt, rather than VS? To be sure than VS is not embedding the
>>>>> console somewhere.
>>>>>
>>>>> Etienne
>>>>>
>>>>>
>>>>> 2013/10/28 Daniel Mota <danielmota.producao at gmail.com>
>>>>>
>>>>>> Hi Etienne,
>>>>>> I have the application running, and I included the CONFIG tag in the
>>>>>> .pro, with no success.
>>>>>>
>>>>>> I am using Windows 8, and Visual Studio.
>>>>>>
>>>>>> Does it make any difference?
>>>>>>
>>>>>> Thanks again!
>>>>>>
>>>>>> Daniel
>>>>>>
>>>>>>
>>>>>> On Mon, Oct 28, 2013 at 5:08 AM, Etienne Sandré-Chardonnal <
>>>>>> etienne.sandre at m4x.org> wrote:
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> Do you already have a QT windowed application running? In that case,
>>>>>>> adding CONFIG+=console in your .pro file will enable the console, just add
>>>>>>> the cout<<'s and it will work (I actually do it)
>>>>>>>
>>>>>>> Don't forget that if you run the app in Qt Creator, it doesn't open
>>>>>>> a console by default, but displays the output to the "Application Output"
>>>>>>> pane instead. You need to check the "Run in Terminal" option in the Run
>>>>>>> settings of the Project config.
>>>>>>>
>>>>>>> Etienne
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 2013/10/27 Daniel Mota <danielmota.producao at gmail.com>
>>>>>>>
>>>>>>>> Hi Tony!
>>>>>>>>
>>>>>>>> I think by answering you, I may give some clarification to Frank as
>>>>>>>> well.
>>>>>>>>
>>>>>>>> I already have the console application running. (actually, it is
>>>>>>>> giving me good benchmark results)
>>>>>>>>
>>>>>>>> In another project, I already have the windows application running
>>>>>>>> as well (is not very fancy, but it is nice!).
>>>>>>>>
>>>>>>>> but I could not find a way to put both working together, what
>>>>>>>> means... OR I can see the paths being updated, OR I can see the "COUT <<"
>>>>>>>> printed in the screen, but I could not find a way to see the paths being
>>>>>>>> linked, and the console giving me information at the background.
>>>>>>>>
>>>>>>>> Is it better now?
>>>>>>>>
>>>>>>>> Once again, thanks a lot guys!
>>>>>>>>
>>>>>>>>
>>>>>>>> Daniel
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On Sat, Oct 26, 2013 at 1:10 AM, Tony Rietwyk <
>>>>>>>> tony at rightsoft.com.au> wrote:
>>>>>>>>
>>>>>>>>>  Hi Daniel,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I'm still confused...  you haven't said how you want to get the
>>>>>>>>> results into the window app:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> - Is the console application already written, and you want to read
>>>>>>>>> the output and update your window?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> - Or you want the console application to send the data and results
>>>>>>>>> to the window app some other way?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> - Or do you want to incorporate the algorithm code into a window
>>>>>>>>> app, and therefore don't actually need the console?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> - Or something else...?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Regards,
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Tony
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> *From:* interest-bounces+tony=rightsoft.com.au at qt-project.org[mailto:
>>>>>>>>> interest-bounces+tony=rightsoft.com.au at qt-project.org] *On Behalf
>>>>>>>>> Of *Daniel Mota
>>>>>>>>> *Sent:* Saturday, 26 October 2013 10:07 AM
>>>>>>>>> *To:* K. Frank
>>>>>>>>> *Cc:* Qt-interest
>>>>>>>>> *Subject:* Re: [Interest] Run Console and windows screen
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Thanks again Frank
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I think a picture worth a thousand words...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> That's what I am trying to do...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> http://www.youtube.com/watch?v=siW7koL086E
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Just remarking some points:
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 1) I am running under windows, not Linux
>>>>>>>>>
>>>>>>>>> 2) My focus is on the screen, I have the algorithm
>>>>>>>>>
>>>>>>>>> 3) It is not a homework... is a self learning effort, I am a
>>>>>>>>> researcher
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Could you gimme some directions?
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> once again, thanks a lot!
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Best regards
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Daniel
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> Interest mailing list
>>>>>>>>> Interest at qt-project.org
>>>>>>>>> http://lists.qt-project.org/mailman/listinfo/interest
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> _______________________________
>>>>>>>> M. Sc. Daniel de Oliveira Mota
>>>>>>>> UFJF / NCA&T
>>>>>>>> Management Science - Operational Research
>>>>>>>>
>>>>>>>> "The best way to predict the future is to invent it"  Alan Key
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> Interest mailing list
>>>>>>>> Interest at qt-project.org
>>>>>>>> http://lists.qt-project.org/mailman/listinfo/interest
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> _______________________________
>>>>>> M. Sc. Daniel de Oliveira Mota
>>>>>> UFJF / NCA&T
>>>>>> Management Science - Operational Research
>>>>>>
>>>>>> "The best way to predict the future is to invent it"  Alan Key
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> _______________________________
>>>> M. Sc. Daniel de Oliveira Mota
>>>> UFJF / NCA&T
>>>> Management Science - Operational Research
>>>>
>>>> "The best way to predict the future is to invent it"  Alan Key
>>>>
>>>
>>>
>>
>>
>> --
>> _______________________________
>> M. Sc. Daniel de Oliveira Mota
>> UFJF / NCA&T
>> Management Science - Operational Research
>>
>> "The best way to predict the future is to invent it"  Alan Key
>>
>
>


-- 
_______________________________
M. Sc. Daniel de Oliveira Mota
UFJF / NCA&T
Management Science - Operational Research

"The best way to predict the future is to invent it"  Alan Key
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20131103/aaa00b5f/attachment.html>


More information about the Interest mailing list