Jump to content
  • Advertisement
Sign in to follow this  
Slather

command-line arguments in Win32

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

Hi, I'm using VC++ 2005 and XP, with SDL so here's my question: Is there some fundamental difference between program arguments given at the prompt or in the IDE as debug command args, and arguments from an icon thats dropped into the executable? I've printed out the args for these cases and they're all exactly the same, but when I drag a file into my program's icon, my app crashes. Why would it run one way and not the other when the arguments appear to be exactly the same?

Share this post


Link to post
Share on other sites
Advertisement
The working directory may be different depending on how the application is launched. If you do anything that explicitly or implicitly relies on the current directory, your application may fail depending on how it's launched.

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!