<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type></HEAD>
<BODY>
<DIV>
<DIV style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">It seems to work now. Please correct me but there is a difference, whether command is inserted in 'Execute commands' section or not of Build Settings.<BR><BR>Sent from Nokia Lumia 920</DIV></DIV>
<DIV dir=ltr>
<HR>
<SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">From: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><A href="mailto:vitali.s@elisanet.fi">Vitali Samurov</A></SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Sent: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">‎24.‎9.‎2013 9:08</SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">To: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><A href="mailto:users@lists.geany.org">Geany general discussion list</A></SPAN><BR><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Subject: </SPAN><SPAN style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">Re: [Geany-Users] calling a console application?</SPAN><BR><BR></DIV>Hi,<BR><BR>any ideas about my case?  :)<BR><BR>Br,<BR>Vitali<BR><BR>Vitali Samurov [vitali.s@elisanet.fi] kirjoitti: <BR>> Hi,<BR>> <BR>> I was trying to run not GUI but console windows applications. Here are my steps:<BR>> <BR>> 1). Compilation. Build -> Set Build Commands:<BR>> %HOMEPATH%\GITworks\diygeiger_mk161\Tools\mkl2mkp_en -i "%f"  <BR>> <BR>> It works  - when I press F8, an empty (black)  Win console appears, but I can see the output of mkl2mkp_en.exe in Geany Compiler output window.<BR>> <BR>> 1). Upload to device:<BR>> %HOMEPATH%\GITworks\diygeiger_mk161\Tools\pmkcom-0.18.i386.win32.exe %d\%e.mkp --p 3 -s 19200 -wp 0 6<BR>> <BR>> Also works, with the same empty Win console.<BR>> <BR>> 3). Run compiled binary in a Win emulator:<BR>> %HOMEPATH%\GITworks\diygeiger_mk161\Tools\vk6.exe -i %d\%e.mkp<BR>> <BR>> This is what I would like to be running not in an empty win console. <BR>> <BR>> Br,<BR>> Vitali<BR>> <BR>> <BR>> <BR>> <BR>> Matthew Brush [mbrush@codebrainz.ca] kirjoitti: <BR>> > On 13-09-19 10:12 PM, Vitali Samurov wrote:<BR>> > > Hello Community,<BR>> > ><BR>> > > is it possible to call an external console application from Geany in<BR>> > > such a way that it will start a Windows console with fully functional<BR>> > > input / output?<BR>> > > I have assigned compiler and flash-tool  in 'Set Build Command'<BR>> > > settings, they start in a clean console, but it is Ok since I can see<BR>> > > STDOUT in Geany window. But it is not Ok when I want to start an emulator.<BR>> > ><BR>> > <BR>> > Hi,<BR>> > <BR>> > Can you please elaborate a bit more on what tools you are using <BR>> > specifically, what build commands you have set, what you are expecting <BR>> > and what you are getting, in a little more detail?<BR>> > <BR>> > If I had to guess from your description, it sounds like you are trying <BR>> > to run a Windows GUI program (google for WinMain) which doesn't get any <BR>> > stdio streams to write to, rather than a console application that's <BR>> > hooked up to stdio streams. This is kind of a quirk of Windows where GUI <BR>> > apps can't (by default) output to stdout and stderr. Maybe your <BR>> > particular GUI tool has a command-line option to attach a console to it.<BR>> > <BR>> > Cheers,<BR>> > Matthew Brush<BR>> > <BR>> > _______________________________________________<BR>> > Users mailing list<BR>> > Users@lists.geany.org<BR>> > https://lists.geany.org/cgi-bin/mailman/listinfo/users<BR>> > <BR>> <BR>> <BR>> -- <BR>> <BR>> --- Sent from the web-mail ---<BR>> <BR>> <BR>> <BR>> _______________________________________________<BR>> Users mailing list<BR>> Users@lists.geany.org<BR>> https://lists.geany.org/cgi-bin/mailman/listinfo/users<BR>> <BR><BR><BR>-- <BR><BR>--- Sent from the web-mail ---<BR><BR><BR><BR>_______________________________________________<BR>Users mailing list<BR>Users@lists.geany.org<BR>https://lists.geany.org/cgi-bin/mailman/listinfo/users<BR></BODY></HTML>