Page 1 of 2

Other File Extensions than rev?

Posted: Tue Dec 01, 2009 2:22 pm
by MasterchiefJB
Is it possible to save the stacks with another filetype than .rev? I would really like to save them as .dll (if this is possible^^)

Thanks,
Masterchief

Re: Other File Extensions than rev?

Posted: Tue Dec 01, 2009 3:26 pm
by Klaus
Why don't you just try?

At least you are a Masterchief, right? :D


Best

Klaus

P.S.
Changing a suffix does not alter the stuff inside of the file, just in case you did not know...

Re: Other File Extensions than rev?

Posted: Tue Dec 01, 2009 4:46 pm
by MasterchiefJB
Well I already tried some ways but the result was negativ. Do you know a way to do this?

- I just call me Masterchief because I really like the Halo Triology :D


Thanks
Masterchief

Re: Other File Extensions than rev?

Posted: Tue Dec 01, 2009 5:59 pm
by Klaus
Hi Masterchief,

ah, looks like I misunderstood you!
Nope, Rev can only save Revolution documents, no matter what suffix you append :-)


Best

Klaus

Re: Other File Extensions than rev?

Posted: Tue Dec 01, 2009 6:48 pm
by FourthWorld
Rev works with .rev files. You can build standalones that use stack files with any file extension you like:

Setting Document Associations in Windows
http://sonsothunder.com/devres/revoluti ... ile004.htm

Setting Document Associations With OS X
http://sonsothunder.com/devres/revoluti ... ile005.htm

Re: Other File Extensions than rev?

Posted: Sat Dec 05, 2009 2:46 pm
by MasterchiefJB
Thank you! I learned how to connect my App with a specific File type (for example my app is launched when I double click on a pdf file) but I still would like to know wheter the stack files itself can be saved in another format?

From the post of Klaus I guess that can´t be done but I would like this to be clarified.
Thanks,
Masterchief

Re: Other File Extensions than rev?

Posted: Sat Dec 05, 2009 3:05 pm
by BvG
There is no build in way to save a stack as (for example) xml formatted text, or any other format that is not rev-build-in-binary-format. However you can of course export your data in a way that suits you, and there have been trials to export a stack into custom formats. But no, there's no build in way to do that with a single line.

Re: Other File Extensions than rev?

Posted: Sat Dec 05, 2009 5:05 pm
by MasterchiefJB
Thank you very much BvG! Then I will stay with the rev format :D

Re: Other File Extensions than rev?

Posted: Sat Dec 05, 2009 5:38 pm
by FourthWorld
MasterchiefJB wrote:Thank you! I learned how to connect my App with a specific File type (for example my app is launched when I double click on a pdf file) but I still would like to know wheter the stack files itself can be saved in another format?
Sorry, I missed the bit about DLL. Why DLL? Normally those are used for a very specific purpose, as a shared library to be called from other apps. If your goal is IPC there may be other ways to achieve it.

Re: Other File Extensions than rev?

Posted: Sun Dec 06, 2009 11:41 am
by MasterchiefJB
Actually I just wanted to hide the rev stacks and show them as dll files so nobody could guess that this application is running with Revolution (they should guess it runs with C++ or another Language -> therefore I wanted to use dll files.)

But if I can´t do so I will stay with the rev stacks^^

Re: Other File Extensions than rev?

Posted: Sun Dec 06, 2009 7:20 pm
by FourthWorld
MasterchiefJB wrote:Actually I just wanted to hide the rev stacks and show them as dll files so nobody could guess that this application is running with Revolution (they should guess it runs with C++ or another Language -> therefore I wanted to use dll files.)

But if I can´t do so I will stay with the rev stacks^^
That part was what I had provided a solution for earlier.

The internal format of the stack files cannot be changed, but using the info I provided you can changed the file name extension to anything you like.

I've never deployed any documents or plugins for my apps with the ".rev" file extension. It's so easy to change you should never need to, and indeed it's a good idea to change it to something else because double-clicking a .rev file will launch rev rather than your app.

Re: Other File Extensions than rev?

Posted: Mon Dec 07, 2009 7:51 pm
by MasterchiefJB
That part was what I had provided a solution for earlier.

The internal format of the stack files cannot be changed, but using the info I provided you can changed the file name extension to anything you like.

I've never deployed any documents or plugins for my apps with the ".rev" file extension. It's so easy to change you should never need to, and indeed it's a good idea to change it to something else because double-clicking a .rev file will launch rev rather than your app.
I am sorry FourthWorld but I believe this is the part of our discussion I didn´t understood;)
Could you give me an example how to archive that?

Just renaming the extensions doesn´t work and I don´t know how to actually do it.
Any advise or an example would be appreciated!

Regards,
Masterchief

Re: Other File Extensions than rev?

Posted: Mon Dec 07, 2009 8:30 pm
by FourthWorld
Renaming the extensions won't take care of the plist file OS X needs or the registry entries Windows needs.

The two links I provided earlier to the Tips at Sons Of Thunder's site are the best references I know of for using custom file extensions.

Re: Other File Extensions than rev?

Posted: Wed Dec 16, 2009 3:33 pm
by MasterchiefJB
Well the tipps provided by Sons of Thunder don´t work here for me, but I guess this happens because the app needs the Vista Manifest to work correctly (using win7)

Re: Other File Extensions than rev?

Posted: Thu Dec 17, 2009 4:05 am
by FourthWorld
Could be. What specifically isn't working?