Hi There,
Trying to get a 'bare-bones' plugin to compile (just to get the basic structure):
#include <windows.h>
#include <API/ARK/Ark.h>
#pragma comment(lib, "lib/ArkApi.lib")
void Load()
{
Log::Get().Init("TebexArk");
Log::GetLog()->info("Hello world!");
}
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
Load();
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
At the moment it literally does nothing (just provides the DLL entry point and writes a log message), but when we add the plugin it fails to load with error 1114:
07/20/18 11:18 [API][info] Loaded plugin Permissions V1.2 (Manage permissions groups)
07/20/18 11:18 [API][warning] Failed to load plugin - TebexArk
Error code: 1114
From what I've read I think 1114 normally means a file can't be found, but this doesn't use any additional files, so I'm a little lost! Is there a way to get additional debug messaging to try to pin down the error?
Trying to get a 'bare-bones' plugin to compile (just to get the basic structure):
#include <windows.h>
#include <API/ARK/Ark.h>
#pragma comment(lib, "lib/ArkApi.lib")
void Load()
{
Log::Get().Init("TebexArk");
Log::GetLog()->info("Hello world!");
}
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
Load();
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
At the moment it literally does nothing (just provides the DLL entry point and writes a log message), but when we add the plugin it fails to load with error 1114:
07/20/18 11:18 [API][info] Loaded plugin Permissions V1.2 (Manage permissions groups)
07/20/18 11:18 [API][warning] Failed to load plugin - TebexArk
Error code: 1114
From what I've read I think 1114 normally means a file can't be found, but this doesn't use any additional files, so I'm a little lost! Is there a way to get additional debug messaging to try to pin down the error?
Last edited: