Quote:
> You mean ShellExecute "OPEN" a file by association? You can't control this,
> as the "number of instances" is controlled by the program associated with
> the file. (If it's your program which is the associated program, you can
> detect this easily enough and act accordingly).
Yes? Well to tell the truth, that kind of answer does not say much as to
how I can do it. Roger Abbott might have already provided enough help,
but any more is appreciated.
Quote:
> Or do you mean your program needs to open a file created by another program?
> In this case, surf on over to http://www.wotsit.org look up the file
> format, open the file using BINARY or other suitable access and read the
> data.
Erm (sigh), no that is not the problem and... there are various methods
on how to "open a file created by another program", tho I must admit I
would not want to discuss that as I will never be able to make use of
it.
All my files are of course in quite readable text format, to make it
easier to debug.
Quote:
> I have no clue why you would think DDE is involved. I have posted on the
> PowerBASIC site some PB/CC code to read/change Excel(r) spreadsheet files
> (*.xls) using Excel's DDE interface, but that's just the easy way to access
> Excel files from other than Excel. Go to
> www.powerbasic.com/support/forums/ultimate.cgi, search, source code forum,
> "DDE" in message subject and you'll find it.
> That detection thing from your own program? Use a mutex. Search in the same
> place looking for 'mutex' in the subject and you'll find some more code I've
> posted.
I don't know if it's the same DDE we're talking about here. I noticed
that most programs that keep a single instance do not recieve filenames
by command line, but by this DDE thing, where the "DDE message" in the
associations part is set to something like "[open("%1")]". If it's not
clear enough, this is what I would want to use to keep my app
single-instanced.
But thanks for the help anyway. C'ya!
--
Cellphone: 0038631752815
Don't feel bad about asking/telling me anything, I will always gladly
reply.
Digging for info? Try AI Meta Search:
Http://WWW.AIMetaSearch.Com
MesonAI -- If nobody else wants to do it, why shouldn't we?(TM)
Http://WWW.MesonAI.Com