Page 1 of 1

Posted: Thu Jun 20, 2002 10:35 pm
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]

Posted: Fri Jun 21, 2002 7:39 am
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

Posted: Fri Jun 28, 2002 7:07 pm
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