diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-02 00:47:12 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-02 00:47:12 +0300 |
commit | 952247ad9720ca579d2f6eac596896bc2cddfe6b (patch) | |
tree | 35d160c153cd277fb56ae8e5a7c954da7600e150 /modules/example | |
parent | f404e3a3a7ecaf77502ee8fc992dbcce3ed0082c (diff) |
modified: ../api/pluginapi.h
modified: main.cpp
modified: plugin.h
modified: ../modules/example/main.cpp
Diffstat (limited to 'modules/example')
-rw-r--r-- | modules/example/main.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/example/main.cpp b/modules/example/main.cpp index a38f44f..ab6ff64 100644 --- a/modules/example/main.cpp +++ b/modules/example/main.cpp @@ -1,6 +1,9 @@ #include <windows.h> #include <pluginapi.h> +#include <plugin_helper.h> + +PLUGINLINK *pluginLink; HINSTANCE hInst; BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved ) //default dll entry point @@ -25,8 +28,9 @@ extern "C" __declspec(dllexport) PLUGININFO* SetPluginInfo() return &pluginInfo; } -extern "C" int __declspec(dllexport) Load() +extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) { + pluginLink = link; MessageBoxA(0, "Plugin Example Succesful loaded", "INFO", MB_OK); return 0; //all ok, retrun 0 } |