HyprLink.cpp
资源名称:Netmanag.zip [点击查看]
上传用户:geanq888
上传日期:2007-01-03
资源大小:316k
文件大小:1k
源码类别:
Ftp客户端
开发平台:
Visual C++
- ////////////////////////////////////////////////////////////////
- // 1998 Microsoft Systems Journal
- // If this code works, it was written by Paul DiLascia.
- // If not, I don't know who wrote it.
- //
- #include "StdAfx.h"
- #include "HyprLink.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- //////////////////
- // Navigate link -- ie, execute the file
- // Returns instance handle of app run, or error code (just like ShellExecute)
- //
- HINSTANCE CHyperlink::Navigate()
- {
- return IsEmpty() ? NULL :
- // ShellExecute(NULL,"open",strLink,NULL,NULL,SW_SHOWNORMAL);
- // ShellExecute(::GetDesktopWindow(), _T("open"), *this, 0, 0, SW_SHOWNORMAL);
- ShellExecute(NULL, "open", *this, NULL, NULL, SW_SHOWNORMAL);
- }