Tutaj chce wyświetlić formę, ale nie wiem jak to zrobić poprawnie, pewnie trzeba coś dodać. Próbowałem dodać using namespace System::Forms ale nie działa.
]
int Settings ()
{
//Form1^ form1 = gcnew Form1(); //jak wyświetlić formę
//form1::Show();
return 0;
}
#include <windows.h>
#include "aqq.h"
TPluginInfo PluginInfo;
TPluginLink* PluginLink;
THandle OnModulesLoadedHandle;
int OnModulesLoaded (int wParam, int lParam);
TPluginInfo* AQQPluginInfo (int AQQVersion)
{
PluginInfo.cbSize = sizeof (TPluginInfo);
PluginInfo.ShortName = L"Test";
PluginInfo.Version = PLUGIN_MAKE_VERSION (1, 0, 0, 0);
PluginInfo.Description = L"Opis";
PluginInfo.Author = L"Krystian Dużyński";
PluginInfo.AuthorMail = L"[email protected]";
PluginInfo.Copyright = L"Prawa autorskie";
PluginInfo.Homepage = L"http://krystiand.net";
PluginInfo.Flag = 0;
PluginInfo.ReplaceDefaultModule = 0;
return &PluginInfo;
}
int Load (TPluginLink* Link)
{
PluginLink = Link;
OnModulesLoadedHandle = PluginLink->HookEvent (AQQ_SYSTEM_MODULESLOADED, OnModulesLoaded);
return 0;
}
int OnModulesLoaded (int wParam, int lParam)
{
MessageBox (0, L"OnModulesLoaded", L"Hello", 0);
return 0;
}
int Unload ()
{
PluginLink->UnhookEvent (OnModulesLoadedHandle);
return 0;
}
int Settings ()
{
//Form1^ form1 = gcnew Form1(); //jak wyświetlić formę
//form1::Show();
return 0;
}