資源簡介
里面介紹了,com,動態鏈接庫,鉤子應用,網絡通信等
代碼片段和文件信息
//?AdoQuery.cpp?:?Implementation?of?DLL?Exports.
//?Note:?Proxy/Stub?Information
//??????To?merge?the?proxy/stub?code?into?the?object?DLL?add?the?file?
//??????dlldatax.c?to?the?project.??Make?sure?precompiled?headers?
//??????are?turned?off?for?this?file?and?add?_MERGE_PROXYSTUB?to?the?
//??????defines?for?the?project.??
//
//??????If?you?are?not?running?WinNT4.0?or?Win95?with?DCOM?then?you
//??????need?to?remove?the?following?define?from?dlldatax.c
//??????#define?_WIN32_WINNT?0x0400
//
//??????Further?if?you?are?running?MIDL?without?/Oicf?switch?you?also?
//??????need?to?remove?the?following?define?from?dlldatax.c.
//??????#define?USE_STUBLESS_PROXY
//
//??????Modify?the?custom?build?rule?for?AdoQuery.idl?by?adding?the?following?
//??????files?to?the?Outputs.
//??????????AdoQuery_p.c
//??????????dlldata.c
//??????To?build?a?separate?proxy/stub?DLL?
//??????run?nmake?-f?AdoQueryps.mk?in?the?project?directory.
#include?“stdafx.h“
#include?“resource.h“
#include?
#include?“AdoQuery.h“
#include?“dlldatax.h“
#include?“AdoQuery_i.c“
#include?“Gxp_adoQuery.h“
#ifdef?_MERGE_PROXYSTUB
extern?“C“?HINSTANCE?hProxyDll;
#endif
CComModule?_Module;
BEGIN_object_MAP(objectMap)
object_ENTRY(CLSID_Gxp_adoQuery?CGxp_adoQuery)
END_object_MAP()
class?CAdoQueryApp?:?public?CWinApp
{
public:
//?Overrides
//?ClassWizard?generated?virtual?function?overrides
//{{AFX_VIRTUAL(CAdoQueryApp)
public:
????virtual?BOOL?InitInstance();
????virtual?int?ExitInstance();
//}}AFX_VIRTUAL
//{{AFX_MSG(CAdoQueryApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?member?functions?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code?!
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
BEGIN_MESSAGE_MAP(CAdoQueryApp?CWinApp)
//{{AFX_MSG_MAP(CAdoQueryApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
CAdoQueryApp?theApp;
BOOL?CAdoQueryApp::InitInstance()
{
#ifdef?_MERGE_PROXYSTUB
????hProxyDll?=?m_hInstance;
#endif
????_Module.Init(objectMap?m_hInstance?&LIBID_ADOQUERYLib);
????return?CWinApp::InitInstance();
}
int?CAdoQueryApp::ExitInstance()
{
????_Module.Term();
????return?CWinApp::ExitInstance();
}
/////////////////////////////////////////////////////////////////////////////
//?Used?to?determine?whether?the?DLL?can?be?unloaded?by?OLE
STDAPI?DllCanUnloadNow(void)
{
#ifdef?_MERGE_PROXYSTUB
????if?(PrxDllCanUnloadNow()?!=?S_OK)
????????return?S_FALSE;
#endif
????AFX_MANAGE_STATE(AfxGetStaticModuleState());
????return?(AfxDllCanUnloadNow()==S_OK?&&?_Module.GetLockCount()==0)???S_OK?:?S_FALSE;
}
/////////////////////////////////////////////////////////////////////////////
//?Returns?a?class?factory?to?create?an?object?of?the?requested?type
STDAPI?DllGetClassobject(REFCLSID?rclsid?REFIID?riid?LPVOID*?ppv)
{
#i
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????......R?????36452??2003-07-27?03:05??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery.aps
????......R??????1269??2003-07-27?03:33??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery.clw
????......R??????3880??2003-07-22?16:03??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery.cpp
????......R???????224??2003-07-21?16:31??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery.def
????......R?????12559??2003-07-23?04:32??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery.dsp
????......R???????541??2003-07-21?16:31??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery.dsw
????......R??????7088??2003-07-26?21:37??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery.h
????......R???????875??2003-07-26?18:51??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery.idl
????......R??????4792??2003-07-27?03:05??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery.rc
????......R???????198??2003-07-21?17:26??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\adoQueryDlg.cpp
????......R?????10766??2003-08-10?10:21??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\adoQueryDlg.h
????......R???????250??2003-07-21?16:31??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQueryps.def
????......R???????466??2003-07-21?16:31??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQueryps.mk
????......R??????1184??2003-07-26?21:37??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery_i.c
????......R??????8979??2003-07-26?21:37??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\AdoQuery_p.c
????......R????172011??2001-08-25?08:51??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\atlcontrols.h
????......R???????837??2003-07-26?21:37??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\dlldata.c
????......R??????1164??2003-07-21?16:31??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\dlldatax.c
????......R???????754??2003-07-21?16:31??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\dlldatax.h
????......R??????1078??2003-07-22?20:44??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\EXPLORER.ICO
????......R??????1017??2003-08-06?14:28??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\Gxp_adoQuery.cpp
????......R??????1051??2003-07-22?15:54??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\Gxp_adoQuery.h
????......R???????664??2003-07-21?17:26??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\Gxp_adoQuery.rgs
????......R?????53830??2002-07-10?10:22??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\msado26.tlh
????......R??????1131??2003-07-23?03:34??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\Resource.h
????......R???????319??2003-07-22?14:45??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\StdAfx.cpp
????......R??????1130??2003-07-23?09:54??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery\StdAfx.h
?????目錄??????????0??2003-11-19?15:37??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\AdoQuery
????......R??????1778??2003-07-17?14:30??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\BmpIcon\first.bmp
????......R??????1778??2003-07-17?14:30??《Visual?C++高級編程及其項目應用開發》源代碼\最終項目\BmpIcon\first1.bmp
............此處省略887個文件信息
- 上一篇:鏈表實現學生管理系統(main.c)
- 下一篇:c++知識點總結.doc
評論
共有 條評論