Jump to content
  • Advertisement
Sign in to follow this  
gazsux

C++ - Concatenation problem - Launching web page in current directory from app

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

Hey, I'm trying to launch a browser window when I click on a dialog button in a vis c++ app. However, the function i'm using only launches if a specific path to a html file is given. I don't know where the user may run the application from so i'm getting the current directory. However, I need to be able to add in the local path to the file and I don't know how to add that path to the current directory I get. Here's what i'm currently doing:
if(!::GetCurrentDirectory(sizeof(currentDirectory)-1, currentDirectory)){
				ShellExecute(NULL, "open", currentDirectory, NULL, NULL, SW_SHOWNORMAL);
			}
currentDirectory is an array of TCHARs. I'm wanting to launch from currentDirectory + "/game/index.html". Any ideas how I can concatenate the local path to currentDirectory?

Share this post


Link to post
Share on other sites
Advertisement
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!