Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ebdlib1.cpp
Package: ebd_src.zip [view]
Upload User: kelijie
Upload Date: 2007-01-01
Package Size: 123k
Code Size: 1k
Category:
Graph program
Development Platform:
Visual C++
- // ebdlib1.cpp : Defines the initialization routines for the DLL.
- //
- #include "stdafx.h"
- #include "ebdlib1.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- static AFX_EXTENSION_MODULE EBDLID1DLL = { NULL, NULL };
- extern "C" int APIENTRY
- DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
- {
- // Remove this if you use lpReserved
- UNREFERENCED_PARAMETER(lpReserved);
- if (dwReason == DLL_PROCESS_ATTACH)
- {
- TRACE0("EBDLIB1.DLL Initializing!n");
- // Extension DLL one-time initialization
- if (!AfxInitExtensionModule(EBDLID1DLL, hInstance))
- return 0;
- }
- else if (dwReason == DLL_PROCESS_DETACH)
- {
- TRACE0("EBDLIB1.DLL Terminating!n");
- // Terminate the library before destructors are called
- AfxTermExtensionModule(EBDLID1DLL);
- }
- return 1; // ok
- }
- _declspec(dllexport) int InitTemplate(CDocTemplate** pDocTemplate)
- {
- new CDynLinkLibrary(EBDLID1DLL);
- *pDocTemplate = new CSingleDocTemplate(ID_ROUND,
- RUNTIME_CLASS(CRoundDoc),
- RUNTIME_CLASS(CRoundFrame),
- RUNTIME_CLASS(CRoundView));
- if(*pDocTemplate == NULL)
- return 0;
- return 1;
- }
- _declspec(dllexport) int GetModuleData(int *iID, CString* nickname)
- {
- new CDynLinkLibrary(EBDLID1DLL);
- *iID = ID_ROUND;
- *nickname = "Image";
- return 1;
- }