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
PluginLoader.h
Package: solidgraph_sources.zip [view]
Upload User: kairuinn
Upload Date: 2009-02-07
Package Size: 2922k
Code Size: 1k
Category:
Graph program
Development Platform:
Visual C++
- #ifndef __PLUGIN_LOADER__
- #define __PLUGIN_LOADER__
- #include "ToolbarPlugin.h"
- #include <string>
- #include <map>
- struct OBJ_SUPPORTER
- {
- int plugin_index;
- CBitmap32* object_icon;
- OBJ_SUPPORTER()
- {
- plugin_index = -1;
- object_icon = NULL;
- };
- OBJ_SUPPORTER(const OBJ_SUPPORTER &src)
- {
- plugin_index = src.plugin_index;
- object_icon = src.object_icon;
- };
- OBJ_SUPPORTER &operator = (OBJ_SUPPORTER &src)
- {
- plugin_index = src.plugin_index;
- object_icon = src.object_icon;
- return *this;
- }
- } ;
- class CPluginLoader
- {
- public:
- CPluginLoader();
- virtual ~CPluginLoader();
- void LoadAllPlugins();
- std::vector<CToolbarPlugin*> m_toolbar_plugins;
- std::map< std::string, OBJ_SUPPORTER> m_objects_supporter;
- protected:
- std::vector<CString> m_PluginsPathsArray;
- CString m_application_Path;
- void GetPlugInFiles(CString sPath);
- void PluginLoader(CString pluginFile);
- };
- #endif