Console application from a GUI optinal

Hello world

I have a single aplication to run a GUI OR a console interface. The GUI of the ICB is used in normal cases by the majority of users.

If the function is called with a special command line parameter, the program starts as a console application. Otherwise, the GUI is used.

If I use the framework of the "command line" for the project, console interface works as expected, but in graphical mode, I always a black empty console in the background window.

If I use the 'project of application' setting the GUI works are planned, but the command line interface is still running in a separate window.

Right now I use the application project setting because the CMD line interface is less important. When I invoke my project, I use a hose of Windows to transfer the output of the child process window back to the parent to help command line window:

myProgram.exe | MORE

It does not work without problems with the dynamic changing command line output buffers because the pipe is flush to the ends of the line. That's why I'm looking for another way.

  • Is it possible to decide weather to launch an application or a console application when running? I guess not...
  • Is it possible to hide the console window when compiled as a console application, but from the GUI of the CVI.
  • Is there another way to archive my goal?

Thank you very much

Jonny

Hi Peter,.

Thank you for your response. Cause I can solve the problem the way you described, but it is a work around and no real solution if you ask me.

Today, I found a nother way using the windows SDK.

#include

AttachConsole (ATTACH_PARENT_PROCESS);

Everythink works as expected today.

Jonny

Tags: NI Software

Similar Questions

  • I downloaded an application from my iphone and then deleted. Now when I open AppStore I purchased apps and its still there. How can I remove it from there though even I have no more app?

    I downloaded an application from my iphone and then deleted. Now when I open AppStore I purchased apps and its still there. How can I remove it from there even if I have no more app?

    The applications that you have downloaded will be available for re - download also a practice.

    Apps y cannot be removed, you can hide only.

    Read here: hide and expose the purchases made on the iBooks Store - Apple Support, App Store or iTunes Store

  • How can I remove an application from the App Store in the section update application?

    How can I remove an application from the App Store in the section update application?

    You can not delete Apps from the update tab. It's just a list

    The list is just for information purposes. Finally, they are deleted from the list on their own.

  • How to run an Application from Firefox?

    Hello
    I want to run an application from my Firefox browser, for example I want to run Notepad.exe from Firefox. I wrote the following program and it opens Notepad from Microsoft Internet Explorer successfully, but when I try to open the same page of Firefox, nothing happens. Firefox only opens it. Is there some sort of opening the Applications in Firefox? Kindly tell me how to open an Application of the Firefox browser.

       <script type="text/javascript" language="javascript">
           function RunFile() {
    
           WshShell.Run("C:\Windows\System32\KinectClothing2.exe", 1, false);
    
           }
       </script>
    

    Maybe the extension "external applications 2 buttons" at https://addons.mozilla.org/en-US/firefox/addon/external-application-button/ which is based on the extension of origin began by Torisugari over ten years ago.

  • Having trouble getting my phone to allow installing applications from 'unknown source '.

    I downloaded CompanionLink software to allow me to sync my new BackFlip with MS Outlook. The CL site told me how to change the security settings to allow this download must be installed on my phone. However, the screens on the phone are not exactly as described on the website of CompanionLink. It says I have to say on the phone to allow installation of applications from "Unknown Sources", but I can't find where to change this security setting. If anyone can help me, I would be very grateful.

    Also, if anyone has better suggestions for synchronization of Contacts, lists of tasks, calendar and Notes of MS Outlook to Backflip, I understand that too.

    Thank you!!!

    Fixed for AT & T

    Mark

    Support Forums Manager

  • Installation of application from an unknown source?

    When I try to install some application that i've copied to the SD card, get the error such as "Cannot install Application of unknown Source".

    When I google, I got a news as parameters-> Applications-> check "allow the application from an unknown source."

    But this option is available in Android 2.0 and higher. Motorola Backflip comes with android 1.5, is it possible to install applications from an unknown source? Is there any software for this?

    Correction for AT & T phones.

    Mark

    Support Forums Manager

  • Stop applications from the default home screen

    I don't know if this question was asked, I couldn't find anything when I looked. Is there a way to stop applications from loading automatically on the homescreen after download?

    It's a game store put Google. While in the game store, go to menu, settings and uncheck auto-ajouter Widgets.

  • Satellite A100 PSAA9A - drivers and applications from the recovery disk

    This laptop was reformated HARD drive and I decided to try Windows 7 (beta), which is currently installed and working well. I would like to install the original drivers and applications from the Toshiba recovery disc but I don't want to reinstal the operating system (XP). Is this possible?

    As far as I know that is not possible because applications from the recovery disk and drivers are for Windows XP and they are not compatible with Windows 7.
    In addition it of not possible to install the only special drivers or applications from the recovery disc.

    You can download all the drivers and tools on the site of Toshiba, but I doubt that it of compatible with Windows 7, but you can try it out and post your result here.
    http://EU.computers.Toshiba-Europe.com

  • How can I add an existing application from my phone to my Apple Watch?

    I would like to add an existing application from my phone to my Apple Watch. Is this possible?

    Hello

    Apple Watch can install applications that State "offers Apple Watch app for iPhone" in their descriptions in iTunes and the App Store.

    See, for example, dark sky information:

    - https://itunes.apple.com/gb/app/dark-sky-hyperlocal-weather/id517329357?mt=8

    To see which applications already installed on your iPhone can also be installed on your watch:

    -On your iPhone, in the application of Eve, go to: My Watch (tab) > scroll down to see the list of apps > for everything that you want to add to your watch, press the name of the application, and then enable the setting for "Show App on Apple Watch" > allow a few moments for the application to install.

  • How to remove applications from the startup folder

    How to remove applications from the startup folder

    Settings > users and groups > Login Items.

  • How to remove an application from a device with the Profile Manager?

    I use iOS devices 9.1 in collaboration with Apple Configurator 2.1 and 5.0.15 Profile Manager. Configurator locks iPads and the Profile Manager is used for the distribution of applications. We are assigning apps in device that is a great feature. However, when I delete an application from a device with the Profile Manager, the application does not remove himself. The Profile Manager back the license and I can redistribute app for iPad one another even if the application is still installed and usable on the iPad first.

    Is this a bug? It seems that it should remove the app. If I delete the management profile in distance from the unit, it removes apps.

    Click on the gear box and then delete Apps and select the application you want to remove.

    Initially, I did what you did probably has been to select the name of the application, then press the 'less', who pulled out of the app in the list, but it has not removed the iPad, he just removed their license.  Through the gearbox and to remove it it removes of the iPad.

    You may have already thought of it, but I found this post unanswered after two months, and once I found the answer, I thought I'd put it here.

  • Additions/removing applications from the dock

    Hello
    two little question.

    1. is it possible to add/remove applications from the docking station? I have pictures and it iTunes for some reason or another, and I did not really need them.

    2 is. a similar question, possible to uninstall some of the Apps such as Notes, reminders, game Center, etc., or if not remove them from the desktop computer?

    Thank you very much

    1, Yes, hold down one of the applications on the home screen or to dock the iPad and after a second or two, they should start to tremble; You can then drag apps on the dock and on him (if you currently have 6 apps on the dock, you have to drag a stop until you can put a different application on it); Press the home button when you are done so as to stop the shaking apps

    2, no, none of the built-in apps can be deleted. For applications you mentioned (Safari and apps store can be hidden through settings > General > Restrictions) you could move to your last home screen or put them on a page in a folder app to make them less visible.

    Organizing applications: https://help.apple.com/ipad/9/#/iPad997db08a

    Records of the App: https://help.apple.com/ipad/9/#/iPad997daa3f

  • Read/write of console application programmatically

    Hi all

    I develop a VI who would write a string to a third party (current running on the BACK) console application and then read that data of this console new in LabVIEW. I think that this is possible by using the Windows API, but I would like to know which would be the best method to implement this.

    Thank you

    FraggerFox

    BACK is an operating system. It is not Windows (even if there are leftovers BACK in the Windows source code). So say that something is running on BACK means it runs on another computer. Is this the case? There is the command window in Windows. -What are you talking about? So, is this a command line app? If Yes, it is a way to use the Windows API to capture the contents of the command line window and paste the content in there. I showed an example in this thread: Re: URGENT! How we read stdout directly?

  • Trying to figure out how to move applications from the internal memory to the SD card on Tablet A200.

    Any new on this forum. I tried for a long time to move some applications from the internal memory to the 32 GB SD card on my Tablet A200. Do not have the same tools as my smart phone. Can anone help? attempts to free some memory. Very frustrated.

    Kerndigg

    Unable to save apps on the SD card, only files. If you want to save the files to the bottom, you will need a file manager.

  • Remove an application from the start of the race

    Hello

    I have an application that runs automatically whenever I start my PC and windows.  And every time I have to spend time close because I do not use it.

    How can I prevent the application from running whenever I start windows?

    Thank you!

    Craig

    Two places to check.
     
    1: Start | Search and type msconfig. On the Srartup tab, see if the program is listed and uncheck the box if it is. You will need to reboot to complete the change.
     
    2: Start | All programs | Startup folder. See it's in there. Delete it if it is.
     

Maybe you are looking for