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?
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!
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