From 952247ad9720ca579d2f6eac596896bc2cddfe6b Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Mon, 2 Aug 2010 00:47:12 +0300 Subject: modified: ../api/pluginapi.h modified: main.cpp modified: plugin.h modified: ../modules/example/main.cpp --- modules/example/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'modules/example/main.cpp') 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 #include +#include + +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 } -- cgit v1.2.3