ich versuche gerade ein SDK (es handelt sich hierbei um ein SDK zur Erstellung von Plugins als DLL) nach Purebasic umzuschreiben, dass in C++ geschrieben worden ist. Soweit kein Problem... aber bei folgendem Code weiss ich absolut nicht weiter:
Code: Alles auswählen
QipPlugin::QipPlugin(IQIPPluginService* plugServ)
: refCounter (0)
{
pluginService = plugServ;
}
void __stdcall CreateInfiumPLUGIN(IQIPPlugin** retval, IQIPPluginService* pluginService)
{
*retval = new QipPlugin(pluginService);
}
Die Interfaces sind wie folgt definiert:
Code: Alles auswählen
;Plugin gives to QIP this interface
Interface IQIPPlugin
QueryInterface(*UIID.iid, *ppv.l)
AddRef()
Release()
GetPluginInfo()
OnQipMessage(*plugMsg.PluginMessage)
EndInterface
;QIP gives to plugin this interface
Interface IQIPPluginService
QueryInterface(*UIID.iid, *ppv.l)
AddRef()
Release()
PluginOptions(dllHandle.l)
OnPluginMessage(*plugMsg.PluginMessage)
EndInterface
Ich hoffe, die Erklärung ist ansatzweise verständlich und wäre für Hilfe sehr dankbar.
So long!
[chaos]