Quote Originally Posted by DeepT View Post
Ok, this code block also crashes Dev Studio 2008 and has nothing to do with CStrings:
Code:
#define URL "https://www.google.com"

		int Len = strlen(URL);
		char Buff[1024] = {0};
		CopyMemory( &Buff[0], URL, Len );
		ShellExecute(NULL,_T("open"),Buff, NULL,NULL,SW_SHOW);
This code is wrong!
Please, try what Paul suggested:
Quote Originally Posted by Paul McKenzie View Post
Then create a brand new program, and just these two lines:
Code:
CString URL = _T("https://www.google.com");
ShellExecute(NULL,NULL, (LPCTSTR)URL, NULL,NULL,SW_SHOW);