F
farseer
How can i do this?
i'd like to call the following code:
....
string url = <my urld>;
TCHAR* urlParams = GetParams( );
url.append( (char * ) urlParams );
GotoURL( ( LPCTSTR ) url ); <------THIS IS MY ISSUE
....
static BOOL GotoURL(LPCTSTR lpszUrl)
{
// Try to open hyperlink
SHELLEXECUTEINFO sei;
memset(&sei, 0, sizeof(SHELLEXECUTEINFO));
sei.cbSize = sizeof(SHELLEXECUTEINFO);
sei.fMask = SEE_MASK_FLAG_NO_UI;
sei.lpVerb = _T("open");
//sei.lpFile=_T("iexplore.exe");
sei.lpFile = lpszUrl;
sei.nShow = SW_SHOWMAXIMIZED;
//sei.lpParameters=_T("you url here");
return ShellExecuteEx(&sei);
}
i'd like to call the following code:
....
string url = <my urld>;
TCHAR* urlParams = GetParams( );
url.append( (char * ) urlParams );
GotoURL( ( LPCTSTR ) url ); <------THIS IS MY ISSUE
....
static BOOL GotoURL(LPCTSTR lpszUrl)
{
// Try to open hyperlink
SHELLEXECUTEINFO sei;
memset(&sei, 0, sizeof(SHELLEXECUTEINFO));
sei.cbSize = sizeof(SHELLEXECUTEINFO);
sei.fMask = SEE_MASK_FLAG_NO_UI;
sei.lpVerb = _T("open");
//sei.lpFile=_T("iexplore.exe");
sei.lpFile = lpszUrl;
sei.nShow = SW_SHOWMAXIMIZED;
//sei.lpParameters=_T("you url here");
return ShellExecuteEx(&sei);
}