Sign in to follow this  
Anddos

runtime resources

Recommended Posts

Is it possible to create run time resources like say for a map editor , if object is a resource but it means creating an ID each time to the resources.h file so how do you achieve this?

Share this post


Link to post
Share on other sites
I think trying to write each new ID to the resources.h file as your adding objects to the level, but resources.h is source code so how would you know how many ID's you need ?,

Share this post


Link to post
Share on other sites
The .h file is only processed when you compile your application, so it won't affect the running executable at all.

It's also non-trivial to update the resources of a running application; the Win32 API only provides functions to modify resources in .exe files, not in running processes.

Why not modify your code so it doesn't have to read data from resources instead?

Share this post


Link to post
Share on other sites
They won't use resources. Resources are for static objects that never change, like cursors and icons. They're probably saving the map and the objects to a file and loading it when they start up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this