Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


How to run a file type in my app ?

This topic is 5719 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

Lets say i got a file called "myfile.map" and i wanted to dubble click it and it would open and play in my dos application. How can this be done ?

Share this post

Link to post
Share on other sites
I''ve never actually did this, but here''s how I would try it.

First off, your dos app would have to take arguments on the command line. You do this by using this:

int main(int argc, char **argv)


If you don''t know how to use this, search on the net, I''m sure you''ll find something.

Next, make windows associate .map files with your application. Try to find a dialog box ''Folder Options'' then go to ''File Types''. (I forget exactly where it is, and I''m not in windows at the moment). This will only work on your local computer. To make it happen on every computer your app is run on, you''d have to change the registry. (whether you want to do that I don''t know)

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!