'main' arguments when starting program - how does communicate requests for file to Windows programs?

Someone know what Windows up or sends to a program when it is first started? I don't know yet what to look under. In particular, if I double click on a document (say a data file that I generated with my LabWindows/CVI program) and I have my default program for this file under Windows, how is my program knows it when it starts? (I.e. a double-click on a Word document starts Word and opens this document.) In addition, what happens if my program is already running? No doubt, Windows sends a message to the programs telling them that the user has requested to open a file of the appropriate type.

Windows passes the name of the file you clicked on the application as a command line parameter: the attached program lists simply all the command line arguments received in order to check how it works. I did a few tests by creating a '. '. XYZ"file and then associate this program with it. Then, I created a new operation 'Print', defined in this way:

and received the correct settings, I simply double click on the file and when I click right on it and choose 'print '.

(Note: argv [0] is always the name of the program itself: command line options, if any, starts at index 1).

I can't say anything about your second question: I know that the CVI has a way to see if another instance of the application is running (see the CheckForDuplicateAppInstance command in the utility library), but I don't know how it is implemented.

Tags: NI Software

Similar Questions

  • does anyone know how to restore a single file (my windows 8 buy, reception with my product codes) backup

    does anyone know how to restore a single file (my windows 8 buy, reception with my product codes) backup any help would be appreciated

    LC

    If you do not have access to windows and you used the built in backup, you will have a problem.  There is a way pretty cludgy to get home if you know where it is.  You can download Acronis true image home and convert the backup Windows a one acronis > find the file > convert a windows backup.  Not pretty but doable

  • When starts to Flash builder support export for Windows Mobile OS?

    When starts to Flash builder support export for Windows Mobile OS?

    I think that VB was confused by call you 'Windows Mobile', such as Windows Mobile is MS is obsolete, abandoned Mobile OS for the era pre-iPhone with a stylus and all that, I guess that you probably meant 'Windows Phone' / Windows 8 Metro UI / RT of Windows, the new iPhone, as MS Mobile OS.

    See this thread: http://forums.adobe.com/message/4526684#4526684

  • How to open a PDF file in Windows 7? When I click on an all I get is a blue promotion screen 'extras '.

    How to open a PDF file in Windows 7? All I get is a blue promotion screen 'extras '.

    One of those 'extras' is likely to be Adobe Reader :)

  • How to stop demand for files compressed in my Outlook Express? This request appears on my screen of many times while I'm working.

    How to stop demand for files compressed in my Outlook Express? This request appears on my screen of many times while I'm working, even when I go on the internet, it always appears & crashes me typing.  I have a lot of emails and I don't want to compress their files.

    original title: HOW can I STOP ASKING to COMPRESS the FILES in OUTLOOK EXPRESS

    How to stop demand for files compressed in my Outlook Express? This request appears on my screen of many times while I'm working, even when I go on the internet, it always appears & crashes me typing.  I have a lot of emails and I don't want to compress their files.

    Compress, (Compact in American English), removes waste of space, not your messages. Please read below, but if compact you and still get the prompt, after return. It is another question.

    Why OE insists on compacting folders when I close it? :
    http://www.insideoe.com/FAQs/why.htm#compact

    Compacting your folders periodically is a must to keep OE works fine and at some point, you may lose all your saved messages if you do not. When you delete or move messages, the space they used remains until you compact.

    Never touch anything until the compression is finished.* *.

    See:
    www.oehelp.com/OETips.aspx#2

    With SP2, Automatic compaction in the background has been removed because of problems he has caused. Now, you will get a prompt to compact after 100 closures of OE, you need to do, and do not touch anything until it's finished. If you compact manually, at your convenience, this will also set the counter to zero. See this for more information:
    http://www.insideoe.com/files/maintain.htm#compact

    If you are fully patched, you will now see a copy of your dbx files copied to the Recycle Bin as BAK files. If something goes wrong when compacting, the messages can be easily restored from this backup. A compact manual resets also the counter in the back of the registry to zero now.

    For more information, see the information framed in red here:
    www.oehelp.com/OETips.aspx#2

    To keep things running smooth and harden faster:

    Do not archive mail in default OE folders. It will eventually become corrupt and you may lose mail. Create your own folders defined by the user for mail storage and move your mail to them. Empty the deleted items folder regularly. Keep user created folders under 300 MB, and also empty as is possible to default folders.

    And backup often.

    Outlook Express Quick Backup (OEQB Freeware)
    http://www.oehelp.com/OEBackup/default.aspx

  • How can I decrypt my files on windows vista that are coded on windows xp? __

    How can I decrypt my files on windows vista that are coded on windows xp?
    I tried my best, but I can't solve my problem that the comis is error that
    (an error occurred applying attributes to the file: the location of the file is displayed then access is denied is written)
    There are 4 options ignore, ignore all, tryagain and cancel) Please help me

    If you did not save your certificates to external media before you reinstalled XP, data is almost certainly inaccessible forever. You can contact Elcomsoft to see if their software can help, but there is no backdoor to EFS encryption. This is why you should always follow best practices and know what you're doing * before * encrypt you anything. A lesson of sad and difficult.

    http://www.ElcomSoft.com/aefsdr.html
    http://technet.Microsoft.com/en-us/library/bb457116.aspx - system file (MS) using EFS

    MS - MVP - Elephant Boy computers - don't panic!

  • How to open an .exe file in windows 8 with compatibility mode to windows 7

    How to open an .exe file in windows 8 with compatibility mode to windows 7

    Normally, you can double-click on the Setup file and install the application. If the program requires the compatibility mode, you can do the following:

    http://techingiteasy.WordPress.com/2013/07/08/using-compatibility-mode-in-Windows-8-1/

  • HP officejet 4650: how to print a pdf file of windows 10-hp officejet 4650

    How to print a PDF file using windows 10 to a HP Officejet 4650

    You can install Acrobat Reader (free) DC from Adobe here.

  • How can I play FLV file in Windows Media Player?

    I use windows xp but I can't play the FLV file

    How can I play FLV file in Windows Media Player?

    http://playflv.com/flvplugincodec If this post answers your question, click mark as answer .

  • How to copy a wav file of windows media player on my desktop?

    How to copy a wav file of windows media player on my desktop?

    How to copy a wav file of windows media player on my desktop?

    =======================================
    Try this... right click on the file and choose... Open file location...
    so... copy / paste... from your desktop. John Inzer - MS - MVP - digital media experience

  • When searching for files in Windows Explorer (WIN 7), can the railways under folder reading "c:\help\me\please" instead of "Please (c:\help\me)?

    When searching for files in Windows Explorer (WIN 7), can the railways under folder reading "c:\help\me\please" instead of "Please (c:\help\me)?

    Thank you!

    What you can do is to do a search, right-click on any column heading (for example name, folder, etc.), and then click "Folder path" from the list that appears.  You can also click to turn off the folder.  The next time you're looking for in this area, this column of path of the folder should appear.  You can drag the columns in a different order also.

  • How to open a .vnt file in windows 7?

    How to open a .vnt file in windows 7?

    If it is a file of notes from a mobile phone, you can open it with Notepad. However, according to the manufacturer, it may be encoded and it will be more readable.

    You can try to use your favorite for the .vnt file search engine to find a suitable software. I would avoid anything that resembles a paid ad and exercise extremely prudent.

  • Cannot import the EXHD catalog to new mac error message: Parent folder does not allow for files to be created in the breast of this

    I have an old mac in 6 years that the battery exploded so I bought a new mac (Macbook Pro 13, 2015, running OS X El Capitan). I have an external hard drive that I backed up my LR5 the catalog and raw files on my old Mac. On my new mac, I have my EXHD plugged and the LR5 (of membership cloud of Adobe) running. I'm sailing LR5 to open the catalog on my EXHD do, essentially, on all my edits on my photos on my new computer. I get the attached message that it does not bc the parent folder does not allow for files to be created in the breast of the it.

    What should I do?

    Old mac still works so I was wondering if I could try to save the catalog on a USB (its about 4 GB) and rather than the new mac. Or try to save the EXHD catalog in a different way or something.

    Thank you very much!

    Screen Shot 2016-07-20 at 7.14.08 PM.png

    I copied the EXHD catalog to my new Mac desktop computer and then sailed LR5 catalog on my desktop. WORKED LIKE A CHARM!

  • How can I search for files on the Web in CC?

    How can I search for files on the Web in CC? I can't find a field or research action.

    Thank you

    Search the site of property to https://assets.adobe.com is coming.

    For now if you have a "ton of files" you are probably also using the synchronization file that comes with the creative Cloud desktop application. You can search the creative Cloud Files folder on your local computer using the Mac OS X Finder or Windows Explorer.

  • start-up: how to stop my yahoo messenger and windows messenger from starting when signing

    want to know how to stop my yahoo messenger and windows messenger from starting when signing.

    It is always better to stop programs from starting with Windows from the programs themselves, so look in their choices first. There may be an entry in your start > programs > startup folder which can simply be removed. If a program does not offer a way to control the start-up of its preferences, use msconfig to clear the check box next to its name, apply and OK on. Also take a look in your programs > startup folder to see if there is an entry for the application it.

    Start Orb > Search box > type: msconfig and when it appears in the results area above, right-click and choose 'run as administrator '.

    If you are prompted for an administrator password or a confirmation, type the password, or click on continue. Then see what is on the Startup tab. You don't need to restart immediately, but next time you do, you will get a dialog box saying that you have used the utility. Usually, it will be blocked by Windows Defender, and you need to allow it to run so that you can then check the box that says in effect, "don't mind to this subject again".

    Important - do not use the System Configuration utility to stop the process. Use Services and stop all services, unless you really, really know what you're doing.

    The free Autoruns program is very useful for managing your Startup - http://www.microsoft.com/technet/sysinternals/default.mspx

    MS - MVP - Elephant Boy computers - don't panic!

Maybe you are looking for

  • Firefox 4 protects you from dangerous websites? I miss Norton scoring function

    The Norton toolbar has been removed when I upgraded to the new Firefox 4 and site safety ratings have also been removed during a search (certain sites were evaluated dangerous by Norton if you know to avoid them.) Is there a safety device built into

  • Keychain guard abandonment

    El Capitan works well all of a sudden yesterday Keychain abandoned. I restarted the computer (iMac) and when it comes to application to begin the keychain, I start it and it quit again and again and again.

  • get the MAX to recognize the SCXI modules

    Hello, try to keep it short, we strive for Labview 5.1 running on the XP machine, until we get new set kit to date in the future (current NT machines fail). I tried NiDAQ 7.1 8.1 drivers with a PCI-MIO-16-4th card in a Dell optiplex 755, and the curr

  • "WindowsUpdate 00000502" "WindowsUpdate_dt000"

    I am running WIn 7 64 bit.  WINDOWS 7 update problems.  This last error message. This update I am trying to install: Security for the SQL Server 2005 Service Pack 2 (KB948109) update Download size: 26.2 MB You may have to restart your computer for th

  • Pavilion G6: resetting the bios password

    My bios shows me the following code when I try to enter the bios got 70923744 what should I do about it? * please help!