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
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.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
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
);
Last edited by Davros; 10-16-2002 at 12:38 PM.
tnx for ur help peeps , ill test it asap