Help!! How to associate an extension

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by BalrogSoft.


Hi!!

Somebody knows how to associate a file extension directly with Pure Basic, and how to associate a protocol header with my program?
I need to my online game system...

Bye, and sorry for my bad english

Balrog Soft
Amiga and PC Coder
http://www.balrogsoftware.com
[url]mailto:balrog@balrogsoftware.com[/url]
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fweil.

I guess you are a Win user.

By associating a file extension to PB you mean launh PB with a file having this extension ?

If so just use file properties in your file explorer to link the extension to PureBasic.

ie create .pbi extension and link it to PureBasic so that when double clicking a pbi file it will open the PB editor.

Otherwise just be more accurate to explain what you wish.

Rgrds

Francois Weil
14, rue Douer
F64100 Bayonne
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.

> Somebody knows how to associate a file extension directly with Pure Basic

There's a Visual Basic example here that should port easily to PureBasic, if you
spend a bit of time with it... (you shouldn't need to port the constants and API
declare code): http://www.vbsquare.com/files/association/ .


PB - Registered PureBasic Coder

Edited by - PB on 28 June 2002 20:08:13
Post Reply