SolvedShellExecute

Posts 1–3 of 3 · Page 1 of 1
ShellExecute
Trying to create a user input for part of a url I want to launch

I've done it before but I lost the code and don't remember how I did it...

wstring link(L"www.google.com")
string userinput = "Whatever user inputs"

combined them and shellexecute.

Anyone help?
Solved it
It was
Code:
std::string baseUrl = "http://www.google.com/";
std::string userInput = "example";
ShellExecuteA(NULL, "open", (baseUrl + userInput).c_str(), NULL, NULL, SW_SHOWNORMAL);
Great that you found a solution for your problem.
Closed.
Posts 1–3 of 3 · Page 1 of 1
This thread is closed for replies.

Tags for this Thread

None

Talk with us