Tuesday, March 22, 2011

C code for opening "kushkaushik.blogspot.com "in firefox


#include <windows.h> //need to access ShellExecute()
/*
NOTE: Compiler Borland C++ Builder 5
Windows 2000
Actually this is just the main function of a windows program
there will be no console window loading and unloading
*/
//-------------------

WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
char* szCmd="firefox.exe";
char* szParm="http://kushkaushik.blogspot.com";
ShellExecute(NULL,"open",szCmd,szParm,NULL,SW_SHOW);
return 0;
}

No comments:

Post a Comment