DR00ME Posted February 26, 2004 Posted February 26, 2004 (edited) q1 . Am I able to save some of my program settings inside the .exe file instead of doing an external e.g. config.ini or using the registry ? The application should remember the changed settings next time it is started... I think this sounds impossible to save data in the application.exe file itself ? q2. Am I able to save .wav files inside the exe so I could play them from the .exe code ? (I think this should be possible) Edited February 26, 2004 by DR00ME Quote "Everything should be made as simple as possible, but not simpler." "It's not that I'm so smart , it's just that I stay with problems longer ." - Albert Einstein
Administrators PlausiblyDamp Posted February 26, 2004 Administrators Posted February 26, 2004 number 2 is easy, add the wav to a project and set it's build action to be 'embedded resource'. At runtime you can access it through the ResourceManager class as for number 1 - why? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
DR00ME Posted February 26, 2004 Author Posted February 26, 2004 Oh yeah thx for the info (q2) q1. Why not ? I remember there was a bug once in windows e.g. u played .avi and you could execute something same time...the exe was associated with the .avi file somehow...so I was thinking if you could somehow attach .ini / .txt or whatever with .exe file. And you would be also able to modify it(save .exe settings in it)..... Just a thought... Quote "Everything should be made as simple as possible, but not simpler." "It's not that I'm so smart , it's just that I stay with problems longer ." - Albert Einstein
DR00ME Posted February 26, 2004 Author Posted February 26, 2004 (edited) I made a new folder and added existing item .wav inside it.... So how do I play the .wav file ? Private Const SND_FILENAME As Integer = &H20000 PlaySound(_WHAT COMES HERE_, 0, SND_FILENAME) And how do I import the resourcemanager or is that even possible ? Edited February 26, 2004 by DR00ME Quote "Everything should be made as simple as possible, but not simpler." "It's not that I'm so smart , it's just that I stay with problems longer ." - Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.