Code request!

Everything else that doesn't fall into one of the other PB categories.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Code request!

Post by srod »

Hi,

anyone got any code lying around for associating a default program with a file extension and wouldn't mind sharing? You know, double click a document file and the associated program automatically fires up etc.

I can see the registry entries which need adding, but just wondered if anyone already has some code lying around which could save me the bother? (Lazy b*stard that I am sometimes!) :)

Thanks in advance.
I may look like a mule, but I'm not a complete ass.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

see here

It's in german but not commented, so you don't have problem with the language :wink:

greetings

Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

BERESHEIT
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

@ts-soft: That's a good well-written include and most useful, thanks for sharing it 8)
BERESHEIT
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

netmaestro wrote:@ts-soft: That's a good well-written include and most useful, thanks for sharing it 8)
It is not from me and based on a includefile from GPI

Some constants should changed for vista compatibility. #KEY_ALL_ACCESS
is not required for reading, better use #KEY_READ
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
netmaestro
PureBasic Bullfrog
PureBasic Bullfrog
Posts: 8453
Joined: Wed Jul 06, 2005 5:42 am
Location: Fort Nelson, BC, Canada

Post by netmaestro »

Good to know that, thanks. GPI is sorely missed, as is El_Choni :(
BERESHEIT
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Thanks Thomas. That adds more entries to the registry than I was going to add (having looked on MSDN), but it all looks straight forward enough.

Thanks again. 8)
Good to know that, thanks. GPI is sorely missed, as is El_Choni
I see El-Choni browsing these forums on occasion. Don't think he hangs around for long though! :)
I may look like a mule, but I'm not a complete ass.
Post Reply