Skip to content
Snippets Groups Projects
Commit c8a8180f authored by rswindell's avatar rswindell
Browse files

Added NT-compatible work-around (using ShellExecute) for old default...

Added NT-compatible work-around (using ShellExecute) for old default LoginCommand ("start telnet://localhost").
parent b32fb981
No related branches found
No related tags found
No related merge requests found
...@@ -1927,8 +1927,9 @@ void __fastcall TMainForm::FileOpenMenuItemClick(TObject *Sender) ...@@ -1927,8 +1927,9 @@ void __fastcall TMainForm::FileOpenMenuItemClick(TObject *Sender)
void __fastcall TMainForm::BBSLoginMenuItemClick(TObject *Sender) void __fastcall TMainForm::BBSLoginMenuItemClick(TObject *Sender)
{ {
if(!strnicmp(LoginCommand.c_str(),"start ",6)) if(!strnicmp(LoginCommand.c_str(),"start ",6)) /* Doesn't work on NT */
WinExec(LoginCommand.c_str(),SW_SHOWMINNOACTIVE); ShellExecute(Handle, "open", LoginCommand.c_str()+6,
NULL,NULL,SW_SHOWDEFAULT);
else if(!strnicmp(LoginCommand.c_str(),"telnet:",7)) else if(!strnicmp(LoginCommand.c_str(),"telnet:",7))
ShellExecute(Handle, "open", LoginCommand.c_str(), ShellExecute(Handle, "open", LoginCommand.c_str(),
NULL,NULL,SW_SHOWDEFAULT); NULL,NULL,SW_SHOWDEFAULT);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment