473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Starting an application from a file

Hello,
My question is: How do I get my application to start by double clicking on a
file. I have made my application to save files with a specific extension.
I associated those files to my application through the standard routine of
windows (double clicking, a pop up menu asks me what application I want to
start this file with etc.). However, if I click on a file, it does start
the application but I do not see the contents of the file. Instead, I need
to go to the "File, Open" menu and re-open the file to get all the data. It
is like clicking on a word document and starting MS Word but it is all
blanc.
Could someone please let me know what I need to add to my application to
read the existing files when I double click them so that I don't need to use
the File-Open menu?
Thank you in advance for the help.
J.C.
Jul 17 '05 #1
2 2886
xyz
Double clicking causes the operating system to launch the application
and it passes the file that you clicked as a parameter. Your
application may be ignoring these start-up parameters.

You can test by typing your command with a parameter from
Start->Run

For example: C:\appdir\app.exe C:\appdir\file.ext

Your application should check to see if a parameter was specified, and
if so, open the file in the parameter.
If your application can handle this type of invocation, it will
probably work properly when the "file.ext" is double clicked.

xyz
========

On Sun, 02 Nov 2003 00:32:54 GMT, "Jason Charalambides"
<da************@netscape.com> wrote:
Hello,
My question is: How do I get my application to start by double clicking on a
file. I have made my application to save files with a specific extension.
I associated those files to my application through the standard routine of
windows (double clicking, a pop up menu asks me what application I want to
start this file with etc.). However, if I click on a file, it does start
the application but I do not see the contents of the file. Instead, I need
to go to the "File, Open" menu and re-open the file to get all the data. It
is like clicking on a word document and starting MS Word but it is all
blanc.
Could someone please let me know what I need to add to my application to
read the existing files when I double click them so that I don't need to use
the File-Open menu?
Thank you in advance for the help.
J.C.


Jul 17 '05 #2
Jason Charalambides wrote:
Hello,
My question is: How do I get my application to start by double clicking on a
file. I have made my application to save files with a specific extension.
I associated those files to my application through the standard routine of
windows (double clicking, a pop up menu asks me what application I want to
start this file with etc.). However, if I click on a file, it does start
the application but I do not see the contents of the file. Instead, I need
to go to the "File, Open" menu and re-open the file to get all the data. It
is like clicking on a word document and starting MS Word but it is all
blanc.
Could someone please let me know what I need to add to my application to
read the existing files when I double click them so that I don't need to use
the File-Open menu?
Thank you in advance for the help.
J.C.


See the documentation about how to retreive parameters with the Command
function.

/Z

--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d-@ s:- a C++ ULS>++ P L+>+++ E- W++ N++ o? K- w(++)>+++$
!O M- V? PS PE Y+ PGP- t 5 X+ R- tv++ b+ DI D+ G e++ h+ r++ y+
------END GEEK CODE BLOCK------

Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: johnmann56 | last post by:
Hello. I have written a simple image viewer application using C# .NET. It only needs to display one image at a time. When a different program, in C, running on the same machine, does a...
8
by: Dirk | last post by:
Hello, Can anyone tell me what the best way is to prevent an application from starting up twice. Thanks, Dirk
4
by: Jesse | last post by:
Hi, Can anyone suggest how to go about running a windows application from outside the starting form. ie. making a call to the initial form and then showing it. I have tried this using a...
2
by: Sara T. | last post by:
I always found that web page written by ASP.NET (VB.NET) generate error when starting at the first times. If I click refresh button on the IE again, it can work as well. What's wrong ? Again...
4
by: Kristof Despiere | last post by:
Suppose you have one domain, filled with a couple of users. What needs to be done now is I need to start a windows application from a webform by pressing a button on the webform (for example). ...
3
by: Thomas Wenzl [MVP] | last post by:
Hello, Initial situation: - ASP.NET application. - Users upload a file - that file has to be converted into another file format using a unmanged application that uses a lot of COM components ...
7
by: Jason Ratcliffe | last post by:
Hi, We've got a small .net application launcher which is run each time a user connects to our terminal services server instead of the standard shell. We found that it takes a variable amount of...
7
by: | last post by:
Hi to everyone! I have an Apache Webserver running on Win2000. I try to start a console application an the server though PHP, with the functions exec() or passthru() but it doesn't work. The...
4
by: durumdara | last post by:
Hi! My problem is that: The "test.py" is working in every machine that I use except in my home machine. Formerly it worked but now not. I don't know what happened, I searching for some...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.