in writing a program for school atm , and need to open some site automaticly on run time , and close it again if need be ...
i searched the board but couldnt find an answer, please help me
:(
ta in advande
Printable View
in writing a program for school atm , and need to open some site automaticly on run time , and close it again if need be ...
i searched the board but couldnt find an answer, please help me
:(
ta in advande
>>i searched the board but couldnt find an answer
Then you didn't search hard enough.... this question was asked just yesterday.
lies , that didnt work ;)
and instead of flaming me u could help ...
Are you working on a web browser? Otherwise, look up SheelExecute() at MSDN.
Kuphryn
Under windows:
char* urlStr = "http://www.addr.com";
ShellExecute(Handle, "open", urlStr, NULL, NULL, SW_MAXIMIZE);
Where:
The ShellExecute function opens or prints a specified file. The file can be an executable file or a document file. See ShellExecuteEx also.
HINSTANCE ShellExecute(
HWND hwnd, // handle to parent window
LPCTSTR lpOperation, // pointer to string that specifies operation to perform
LPCTSTR lpFile, // pointer to filename or folder name string
LPCTSTR lpParameters, // pointer to string that specifies executable-file parameters
LPCTSTR lpDirectory, // pointer to string that specifies default directory
INT nShowCmd // whether file is shown when opened
);
tnx for ur help peeps , ill test it asap :D