home *** CD-ROM | disk | FTP | other *** search
- //-----------------------------------------------------------------------------------//
- // Windows Graphics Programming: Win32 GDI and DirectDraw //
- // ISBN 0-13-086985-6 //
- // //
- // Written by Yuan, Feng www.fengyuan.com //
- // Copyright (c) 2000 by Hewlett-Packard Company www.hp.com //
- // Published by Prentice Hall PTR, Prentice-Hall, Inc. www.phptr.com //
- // //
- // FileName : hello1.h //
- // Description: Hello World Demo 1, start browser, Chapter 1 //
- // Version : 1.00.000, May 31, 2000 //
- //-----------------------------------------------------------------------------------//
-
- #define STRICT
- #define NOCRYPT
-
- #include <windows.h>
- #include <tchar.h>
- #include <assert.h>
-
- const TCHAR szOperation[] = _T("open");
- const TCHAR szAddress[] = _T("www.helloworld.com");
-
- int WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR lpCmd, int nShow)
- {
- HINSTANCE hRslt = ShellExecute(NULL, szOperation, szAddress, NULL, NULL, SW_SHOWNORMAL);
-
- assert( hRslt > (HINSTANCE) HINSTANCE_ERROR);
-
- return 0;
- }