File associations - how to force new copy of program

G

gerard horgan

What controls whether a new copy of the associated program is launched on a
Windows XP system when a file in Windows Explorer is double clicked ?

The normal behavior on Windows 200 and 98 is to start a new copy of the
program.

For example, set up an association of extension .XXX with program
PROG-XXX.EXE.

On Windows XP, double click TEST1.XXX and PROG-XXX starts showing contents
of file TEST1.XXX. Now double click TEST2.XXX. The first instance of
PROG-XXX now shows file TEST2.XXX. On Win2k and 98 it would start a separate
copy of PROG-XXX showing TEST2.XXX. .

But it is possible to start another copy of a program. .TXT is associated
with Notepad. Double clicking two .TXT files starts two copies of Notepad
on all windows versions.

Question: how can I force a new copy of PROG-XXX on Windows XP?

The software in question is a database access product developed using Visual
Studio and the MDI model. Could Win XP be so smart that it assumes I do not
want multiple instances?

Gerard Horgan..
 
G

gerard horgan

I understand you comment about the application deciding whether to allow
multiple copies.
But, I wrote this application and it does not prevent multiple instances.

On Windows 98 and 2000 I can start multiple copies of the application by
double clicking associated files.
Why does that not work on Windows XP?

Gerard Horgan

"Steven Liu [MSFT]" said:
Hi Gerard,

The behavior is decided by the application.

Some applications allow to be loaded more than once in the system. Like the
notepad and Internet Explorer.

While we load some applications, it will check the system to see whether it
has already been loaded, if yes, it will close the loaded one or it will
not load again. Like the Windows Media Player and Outlook.

We can't force the application to open in a new copy.

Thanks for using Microsoft News Group!

Sincerely,

Steven Liu

Microsoft Online Partner Support

MCSE 2000

Get Secure! ¨C www.microsoft.com/security

This posting is provided ¡°as is¡± with no warranties and confers no rights.
--------------------
| From: "gerard horgan" <[email protected]>
| Newsgroups: microsoft.public.windowsxp.general
| Subject: File associations - how to force new copy of program
| Lines: 28
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <tzATa.127471$N7.17642@sccrnsc03>
| NNTP-Posting-Host: 12.225.232.127
| X-Complaints-To: (e-mail address removed)
| X-Trace: sccrnsc03 1058985305 12.225.232.127 (Wed, 23 Jul 2003 18:35:05
GMT)
| NNTP-Posting-Date: Wed, 23 Jul 2003 18:35:05 GMT
| Organization: Comcast Online
| Date: Wed, 23 Jul 2003 18:35:05 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!wn14feed!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc
03.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.windowsxp.general:631144
| X-Tomcat-NG: microsoft.public.windowsxp.general
|
| What controls whether a new copy of the associated program is launched on
a
| Windows XP system when a file in Windows Explorer is double clicked ?
|
| The normal behavior on Windows 200 and 98 is to start a new copy of the
| program.
|
| For example, set up an association of extension .XXX with program
| PROG-XXX.EXE.
|
| On Windows XP, double click TEST1.XXX and PROG-XXX starts showing
contents
| of file TEST1.XXX. Now double click TEST2.XXX. The first instance of
| PROG-XXX now shows file TEST2.XXX. On Win2k and 98 it would start a
separate
| copy of PROG-XXX showing TEST2.XXX. .
|
| But it is possible to start another copy of a program. .TXT is associated
| with Notepad. Double clicking two .TXT files starts two copies of Notepad
| on all windows versions.
|
| Question: how can I force a new copy of PROG-XXX on Windows XP?
|
| The software in question is a database access product developed using
Visual
| Studio and the MDI model. Could Win XP be so smart that it assumes I do
not
| want multiple instances?
|
| Gerard Horgan..
|
|
|
|
 
L

Larry

That's pretty odd because in my MFC programs I have to do a LOT of work to
prevent multiple instances and send the command line of secondary instances
to the primary instance. My programs run on XP /always/ launch a second
instance.

What programming language are you using? Maybe the latest VB or the .NET
framework or something added the ability to have single instance apps
automatically? (May be due to libraries as installed in XP vs 98 or
something) Actually I'd we myself with joy if that were true, ALL my apps
are single instance apps :)

Larry

gerard horgan said:
I understand you comment about the application deciding whether to allow
multiple copies.
But, I wrote this application and it does not prevent multiple instances.

On Windows 98 and 2000 I can start multiple copies of the application by
double clicking associated files.
Why does that not work on Windows XP?

Gerard Horgan

"Steven Liu [MSFT]" said:
Hi Gerard,

The behavior is decided by the application.

Some applications allow to be loaded more than once in the system. Like the
notepad and Internet Explorer.

While we load some applications, it will check the system to see whether it
has already been loaded, if yes, it will close the loaded one or it will
not load again. Like the Windows Media Player and Outlook.

We can't force the application to open in a new copy.

Thanks for using Microsoft News Group!

Sincerely,

Steven Liu

Microsoft Online Partner Support

MCSE 2000

Get Secure! ¨C www.microsoft.com/security

This posting is provided ¡°as is¡± with no warranties and confers no rights.
--------------------
| From: "gerard horgan" <[email protected]>
| Newsgroups: microsoft.public.windowsxp.general
| Subject: File associations - how to force new copy of program
| Lines: 28
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <tzATa.127471$N7.17642@sccrnsc03>
| NNTP-Posting-Host: 12.225.232.127
| X-Complaints-To: (e-mail address removed)
| X-Trace: sccrnsc03 1058985305 12.225.232.127 (Wed, 23 Jul 2003 18:35:05
GMT)
| NNTP-Posting-Date: Wed, 23 Jul 2003 18:35:05 GMT
| Organization: Comcast Online
| Date: Wed, 23 Jul 2003 18:35:05 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!wn14feed!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc
03.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.windowsxp.general:631144
| X-Tomcat-NG: microsoft.public.windowsxp.general
|
| What controls whether a new copy of the associated program is launched on
a
| Windows XP system when a file in Windows Explorer is double clicked ?
|
| The normal behavior on Windows 200 and 98 is to start a new copy of the
| program.
|
| For example, set up an association of extension .XXX with program
| PROG-XXX.EXE.
|
| On Windows XP, double click TEST1.XXX and PROG-XXX starts showing
contents
| of file TEST1.XXX. Now double click TEST2.XXX. The first instance of
| PROG-XXX now shows file TEST2.XXX. On Win2k and 98 it would start a
separate
| copy of PROG-XXX showing TEST2.XXX. .
|
| But it is possible to start another copy of a program. .TXT is associated
| with Notepad. Double clicking two .TXT files starts two copies of Notepad
| on all windows versions.
|
| Question: how can I force a new copy of PROG-XXX on Windows XP?
|
| The software in question is a database access product developed using
Visual
| Studio and the MDI model. Could Win XP be so smart that it assumes I do
not
| want multiple instances?
|
| Gerard Horgan..
|
|
|
|
 
L

Larry

Actually I just realized that your .XXX file association setting might also
have something to do with this. I believe it's possible to have the DDE
settings for the file associations set such that if there is an instance of
an app already running, it can send a windows DDE message to the running app
instead of launching a new one. And if you are using a framework like MFC
for your app, the basic functionality of receiving and interpreting DDE
messages for things like Open and Print may have already been generated for
you so you got that functionality automatically and didn't know about it.

So check your .XXX file association settings on XP and see if that might be
it.

Larry

gerard horgan said:
I understand you comment about the application deciding whether to allow
multiple copies.
But, I wrote this application and it does not prevent multiple instances.

On Windows 98 and 2000 I can start multiple copies of the application by
double clicking associated files.
Why does that not work on Windows XP?

Gerard Horgan

"Steven Liu [MSFT]" said:
Hi Gerard,

The behavior is decided by the application.

Some applications allow to be loaded more than once in the system. Like the
notepad and Internet Explorer.

While we load some applications, it will check the system to see whether it
has already been loaded, if yes, it will close the loaded one or it will
not load again. Like the Windows Media Player and Outlook.

We can't force the application to open in a new copy.

Thanks for using Microsoft News Group!

Sincerely,

Steven Liu

Microsoft Online Partner Support

MCSE 2000

Get Secure! ¨C www.microsoft.com/security

This posting is provided ¡°as is¡± with no warranties and confers no rights.
--------------------
| From: "gerard horgan" <[email protected]>
| Newsgroups: microsoft.public.windowsxp.general
| Subject: File associations - how to force new copy of program
| Lines: 28
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <tzATa.127471$N7.17642@sccrnsc03>
| NNTP-Posting-Host: 12.225.232.127
| X-Complaints-To: (e-mail address removed)
| X-Trace: sccrnsc03 1058985305 12.225.232.127 (Wed, 23 Jul 2003 18:35:05
GMT)
| NNTP-Posting-Date: Wed, 23 Jul 2003 18:35:05 GMT
| Organization: Comcast Online
| Date: Wed, 23 Jul 2003 18:35:05 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!wn14feed!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc
03.POSTED!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.windowsxp.general:631144
| X-Tomcat-NG: microsoft.public.windowsxp.general
|
| What controls whether a new copy of the associated program is launched on
a
| Windows XP system when a file in Windows Explorer is double clicked ?
|
| The normal behavior on Windows 200 and 98 is to start a new copy of the
| program.
|
| For example, set up an association of extension .XXX with program
| PROG-XXX.EXE.
|
| On Windows XP, double click TEST1.XXX and PROG-XXX starts showing
contents
| of file TEST1.XXX. Now double click TEST2.XXX. The first instance of
| PROG-XXX now shows file TEST2.XXX. On Win2k and 98 it would start a
separate
| copy of PROG-XXX showing TEST2.XXX. .
|
| But it is possible to start another copy of a program. .TXT is associated
| with Notepad. Double clicking two .TXT files starts two copies of Notepad
| on all windows versions.
|
| Question: how can I force a new copy of PROG-XXX on Windows XP?
|
| The software in question is a database access product developed using
Visual
| Studio and the MDI model. Could Win XP be so smart that it assumes I do
not
| want multiple instances?
|
| Gerard Horgan..
|
|
|
|
 
S

Steven Liu [MSFT]

Hi Gerard,

This is the developer issue. I think it's better to create the post in
related developer language queue. The user in that queue will be more
experienced in this area.

Thanks for using Microsoft News Group!

Sincerely,

Steven Liu

Microsoft Online Partner Support

MCSE 2000

Get Secure! ¨C www.microsoft.com/security

This posting is provided ¡°as is¡± with no warranties and confers no rights.
--------------------
| From: "gerard horgan" <[email protected]>
| Newsgroups: microsoft.public.windowsxp.general
| References: <tzATa.127471$N7.17642@sccrnsc03>
<[email protected]>
| Subject: Re: File associations - how to force new copy of program
| Lines: 111
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <roUTa.120784$OZ2.24364@rwcrnsc54>
| NNTP-Posting-Host: 12.225.232.127
| X-Complaints-To: (e-mail address removed)
| X-Trace: rwcrnsc54 1059066519 12.225.232.127 (Thu, 24 Jul 2003 17:08:39
GMT)
| NNTP-Posting-Date: Thu, 24 Jul 2003 17:08:39 GMT
| Organization: Comcast Online
| Date: Thu, 24 Jul 2003 17:08:39 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXS01.phx.gbl!TK2MSFTNGXS02.phx.gbl!cpmsftngxa1
0.phx.gbl!TK2MSFTNGXA05.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online
.de!t-online.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn14feed!wn1
3feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc54.POSTE
D!not-for-mail
| Xref: cpmsftngxa06.phx.gbl microsoft.public.windowsxp.general:632233
| X-Tomcat-NG: microsoft.public.windowsxp.general
|
| I understand you comment about the application deciding whether to allow
| multiple copies.
| But, I wrote this application and it does not prevent multiple instances.
|
| On Windows 98 and 2000 I can start multiple copies of the application by
| double clicking associated files.
| Why does that not work on Windows XP?
|
| Gerard Horgan
|
| | > Hi Gerard,
| >
| > The behavior is decided by the application.
| >
| > Some applications allow to be loaded more than once in the system. Like
| the
| > notepad and Internet Explorer.
| >
| > While we load some applications, it will check the system to see whether
| it
| > has already been loaded, if yes, it will close the loaded one or it will
| > not load again. Like the Windows Media Player and Outlook.
| >
| > We can't force the application to open in a new copy.
| >
| > Thanks for using Microsoft News Group!
| >
| > Sincerely,
| >
| > Steven Liu
| >
| > Microsoft Online Partner Support
| >
| > MCSE 2000
| >
| > Get Secure! ¨C www.microsoft.com/security
| >
| > This posting is provided ¡°as is¡± with no warranties and confers no
| rights.
| > --------------------
| > | From: "gerard horgan" <[email protected]>
| > | Newsgroups: microsoft.public.windowsxp.general
| > | Subject: File associations - how to force new copy of program
| > | Lines: 28
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <tzATa.127471$N7.17642@sccrnsc03>
| > | NNTP-Posting-Host: 12.225.232.127
| > | X-Complaints-To: (e-mail address removed)
| > | X-Trace: sccrnsc03 1058985305 12.225.232.127 (Wed, 23 Jul 2003
18:35:05
| > GMT)
| > | NNTP-Posting-Date: Wed, 23 Jul 2003 18:35:05 GMT
| > | Organization: Comcast Online
| > | Date: Wed, 23 Jul 2003 18:35:05 GMT
| > | Path:
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
| >
|
e.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news-out1.nntp.be!propa
| >
|
gator2-sterling!news-in-sterling.nuthinbutnews.com!cyclone1.gnilink.net!wn14
| >
|
feed!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc
| > 03.POSTED!not-for-mail
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.windowsxp.general:631144
| > | X-Tomcat-NG: microsoft.public.windowsxp.general
| > |
| > | What controls whether a new copy of the associated program is launched
| on
| > a
| > | Windows XP system when a file in Windows Explorer is double clicked ?
| > |
| > | The normal behavior on Windows 200 and 98 is to start a new copy of
the
| > | program.
| > |
| > | For example, set up an association of extension .XXX with program
| > | PROG-XXX.EXE.
| > |
| > | On Windows XP, double click TEST1.XXX and PROG-XXX starts showing
| > contents
| > | of file TEST1.XXX. Now double click TEST2.XXX. The first instance of
| > | PROG-XXX now shows file TEST2.XXX. On Win2k and 98 it would start a
| > separate
| > | copy of PROG-XXX showing TEST2.XXX. .
| > |
| > | But it is possible to start another copy of a program. .TXT is
| associated
| > | with Notepad. Double clicking two .TXT files starts two copies of
| Notepad
| > | on all windows versions.
| > |
| > | Question: how can I force a new copy of PROG-XXX on Windows XP?
| > |
| > | The software in question is a database access product developed using
| > Visual
| > | Studio and the MDI model. Could Win XP be so smart that it assumes I
do
| > not
| > | want multiple instances?
| > |
| > | Gerard Horgan..
| > |
| > |
| > |
| > |
| >
|
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top