Jump to content
  • Advertisement
Sign in to follow this  
maya18222

CreateDialog

This topic is 3600 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im using this function in my code to create dialog boxes, yet they only showup when i do a release build, in debug mode they dont show, and i get :-
@err,hr	0x00000714 The specified image file did not contain a resource section. 	unsigned long

any ideas why they would only be working in release? is there something i should be looking for in the project settings?

mhMediaLoadingDLG =	CreateDialog( mInstance,  L"test", mhApp, MediaLoadingProc);


INT_PTR CALLBACK MediaLoadingProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
	return 0;
}

Share this post


Link to post
Share on other sites
Advertisement
Yes, windows right before and right after are made with the same mInstance, and there is the fact that it works in release mode.

Ive deleted both the debug and release folders, and rebuilt them both, but i get the same results.

Thanks for the suggestion though, any other ideas?

Share this post


Link to post
Share on other sites
When you compile your relase build, do you get a message in the build window saying it's compiling resources? All I can think of is the resource file is somehow excluded from the release config.

Share this post


Link to post
Share on other sites
Its works in release mode, it doesnt work in debug, so do you mean excluded from the debug build?

but wouldnt that throw errors as it wouldnt be able to find "test"

Share this post


Link to post
Share on other sites
Quote:
Original post by maya18222
Its works in release mode, it doesnt work in debug, so do you mean excluded from the debug build?

but wouldnt that throw errors as it wouldnt be able to find "test"
Err yes, sorry - brainfart [smile]

"Test" is just a string, it wouldn't cause any errors if the resources weren't being compiled in, the error would show up when you call a function that tries to access the resource segment of the EXE.

Share this post


Link to post
Share on other sites
Ive spent ages on this, and cant come up with anything, does anyone have any suggestions? It must vae something to do with the project settings :(

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!