- multi_platform_plugin_spl_demo.zip
- builds
- dotnet2003
- linux
- vc6
- libspl.dsp
- libspl.dsw
- code
- documents
- examples
- bin
- ConsoleTest.exe
- MfcPluginDllTest.exe
- MFCPluginTest.exe
- MfcThreadPluginTest.exe
- spl.dll
- StartConsoleTest.bat
- builds
- ConsoleTest
- examples.sln
- MfcPluginDllTest
- MfcPluginTest
- MfcThreadPluginTest
- plArgInfos
- plHelloWorld
- plHelloWorldNoMacros
- plReverse
- plReverseSlow
- plToLower
- plToUpper
- obj
- plugins
- plArgInfos.dll
- plHelloWorld.dll
- plHelloWorldNoMacros.dll
- plReverse.dll
- plReverseSlow.dll
- plToLower.dll
- plToUpper.dll
- history.txt
- lib
- dll
- spl.dll
- spl.lib
- spld.dll
- spld.lib
- libspl.lib
- libspld.lib
- license.txt
- obj
- readme.txt
|
#include "spl.h"
#if SPL_PLATFORM == SPL_PLATFORM_WIN32
//
// Include windows.h for Windows projects.
//
#include <windows.h>
#endif
//
// Define standard export symbols for Win32.
//
extern "C" SPL_PLUGIN_API bool splInitialize( slcPluginArgs* a_pPluginArgs );
extern "C" SPL_PLUGIN_API bool splRun( slcPluginArgs* a_pPluginArgs );
extern "C" SPL_PLUGIN_API bool splShutdown( slcPluginArgs* a_pPluginArgs );
extern "C" SPL_PLUGIN_API slcPluginInfo* splGetInfo( void );
class pluginInfo : public slcPluginInfo
{
public:
pluginInfo::pluginInfo( void )
{
this->m_lBuild = 1;
this->m_lMajor = 1;
this->m_lMinor = 0;
this->m_bPuplicArgInfos = true;
this->m_strName = "plHelloWorldNoMacros";
this->m_strVendor = "United Bytes";
this->m_strDescription = "Hello world, our first plugin!";
this->m_strInfo = "Simple test plugin! :-)";
this->m_strHomepage = "http://www.unitedbytes.de";
this->m_strEmail = "info@unitedbytes.de";
this->m_strUUID = "ConsoleExampleAPINoMacros";
this->m_mapInitArgs.clear();
this->m_mapRunArgs.clear();
this->m_mapShutdownArgs.clear();
};
bool SetArgument( int a_iFunc,
string a_strArgument,
string a_strDesc )
{
string strFinal = a_strArgument + a_strDesc;
switch( a_iFunc )
{
case 0:
this->m_mapInitArgs.insert( pair< long, string >( ( long )this->m_mapInitArgs.size(), strFinal ) );
break;
case 2:
this->m_mapShutdownArgs.insert( pair< long, string >( ( long )this->m_mapShutdownArgs.size(), strFinal ) );
break;
case 1:
default:
this->m_mapRunArgs.insert( pair< long, string >( ( long )this->m_mapRunArgs.size(), strFinal ) );
break;
}
return true;
};
};
pluginInfo g_pluginInfo;
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here
I was born in 1982 near Stuttgart / Germany and began my first steps in programming computers at the age of only nine years on an old Commodore CBM 7072. In 2002 I finished my education as IT specialist for software engineering and did my civillian service afterwards. Currently I'm working as leader of the software division in a bigger company located in south west Germany, mainly on software development and research projects for multimedia terminals and user recognition/verification systems.