Hoes to Make an Application an Associated Program? (1 Viewer)

llyal

Registered User.
Local time
Today, 16:13
Joined
Feb 1, 2000
Messages
72
Hoes to Make an Application an Associated Program?

I have a made a simple image viewer; i would like this program to display graphics when i open graphic files instead of having to start the application then open the image; example, when i click on a JPG file, the Microsoft Imaging program opens and shows the picture; I would like my image program to do the same thing; How do i make my own application do this?

All I need is a general overview and some terminology so that I can search the internet; I don't know where to begin looking;

Thank you!

--LLyal
 

Fornatian

Dim Person
Local time
Today, 16:13
Joined
Sep 1, 2000
Messages
1,396
FROM WINDOWS 98 HELP FILE:

To change which program starts when you open a file

In My Computer or Windows Explorer, on the View menu, click Folder Options.
Click the File Types tab.
In the list of file types, click the one you want to change.
Click Edit.
In Actions, click Open.
Click Edit.
In Application used to perform action, enter the program you want to use to open files that have this extension, and then click OK.
Note
The settings for selected file types are shown in File type details.

****
i think that answers the question?

Ian
 

rich.barry

Registered User.
Local time
Today, 16:13
Joined
Aug 19, 2001
Messages
176
Fornatian's reply comes close to answering the question.

You'll see by looking at some of the file types already associated with applications that the path & executable is followed by a %1 or similar.

This %1 is the file to be opened by the application, e.g. the file name & path that you just double clicked in Windows Explorer.

The hard bit will be to pass this file information to your Access application so that it knows what file to open.
I've yet to think up a way.
 

Fornatian

Dim Person
Local time
Today, 16:13
Joined
Sep 1, 2000
Messages
1,396
Cheers Rich, didn't know that.

Ian

PS Is your first name Rich or are you an affluent show off named Barry?
 

llyal

Registered User.
Local time
Today, 16:13
Joined
Feb 1, 2000
Messages
72
To All,

You guys came the closest of all the newsgroups; the answer lies in the VB command function; the VB app can use this to read the command line parameter passed to it - in the case of associated files, it is the file pathname;

My image viewer works great! For <50 KB size, it very fast;

--Llyal
 

Users who are viewing this thread

Top Bottom