win app resource folder

Hi there,

i have build a windows app, and i saw there is a resources folder, that hold all images. This is not really cool, cause anybody can manipulate this. Resources should be in the exe file, like visualstudio does ist.

Is there a way to get this or do we have to stay with external pics?

The 64 bit build exe doesnt even have an icon…

If you want to embed pictures and files into the project, encode them base64 and put them into constants.

Another possible way if you have many pictures is to create a VirtualVolume, copy all the files into it, and drag it into the project. Then at opening of the app all you need to do is to connect to that virtual volume, and you can access the documents inside.

To access that virtual volume within the resources folder, TPSF from Tim Parnell is of great help.

Or place the pictures as records in an SQLite database which is locked with a password. Or Zip them with a password and unzip them in the Open event to your ApplicationData folder then refer to that area when you need them (accessible, but more hidden). There’s always a way!

It should be noted that it is extremely easy with a screen shot to get any picture from the screen…

How will that work? I just put a base64 png in a constant? And how i get them into buttons or menu points?

Its not very very secure, but I set the resources folder to ‘hidden’ during the install.
The virtualvolume and string constant method will hide pictures in general, but cant be used for pictures that you set on controls at design time: you have to manually get the pictures and apply them during an Open() event, typically

This can help : https://forum.xojo.com/6984-write-picture-to-file/0

Oh yes … helped much to understand how that is working. It’s a bit complicated to handle but ok.

Xojo should get that ressources back in the binaries.

[quote=279424:@Sascha Mierke]Oh yes … helped much to understand how that is working. It’s a bit complicated to handle but ok.

Xojo should get that ressources back in the binaries.[/quote]

IMHO it is better to have resources separated from the program. As a matter of principle, mixing data with code is not good.