Miranda Plugin - BCB Einstellungen
-
Hallo.
JEder kennt ja Miranda, der Instan Messanger für ICQ,AIM,Jabber, etc.
Ich wollte ein Plugin programmieren.
Ich hatte mir da den Source Code von Miranda heruntergeladen, wo auch das SDK bei war.Bei dem SDK, war auch ein Beispiel Code (Plugin) dabei. Aber leider für den VC++.
Ich hatte das mit dem VC mal kompiliert und es ging.Ich habe das dann mit dem Tool vom BCB 6 Enterprise "Visual C++ Project Conversion Utility", das Projekt ins BCB Format konventieren lassen.
Dann hatte ich das mit dem BCB kompiliert, ohne Fehlermeldung.
Leider funktioniert das Plugin in Miranda nicht.Darauf hin, habe ich im Forum von Miranda mal nach gefragt.
Zitate vom Thread:
egodust schrieb:
Miranda uses a C API, you're using the C++ new operator, that structure should be global and not created on the heap (PLUGININFO)
Also make sure that your compiler settings are using the right structure padding.
DJ BlackEagle schrieb:
Hi.
Oh, I don't know Miranda use the C API.
But this Code is from the BCB testplugin (Developer bid), where here can download.
I have only removed the "__stdcall", what you had say any post before.
Thx, I´m change the Code. And test it.
I come back, when I have trouble(s).
DJ BlackEagle->greetz();
DJ BlackEagle schrieb:
Hi, again.
I had make a new Project.
I have set the settings on the "dll wizard"
Source:
This I had checked.
But I don´t find anything to set complete to "C".
I have copy the example source from Miranda Package into in this new Project, but the Problem is the same.
The Plugin is not show, in Plugin-Listing.Kommentar: Da ging es auch nicht.
egodust schrieb:
What are the compiler padding settings like? what default calling convention does it use?
Er sagt mir das ich die Compiler Einstellungen anpassen soll.
Wie soll ich den den Compiler einstellen das es geht?DJ BlackEagle->greetz();
PS: Wer sich den ganzen Thread durchlesen möchte. Hier der Miranda IM Community.
-
DJ BlackEagle schrieb:
JEder kennt ja Miranda, der Instan Messanger für ICQ,AIM,Jabber, etc.
Nö.
Sieh dir in den Projekt-Optionen mal die Registerkarte "Advanced Compiler" an. Die Frage nach dem Padding dürfte sich auf das "Data alignment" beziehen (Byte, Word etc.) und die Calling Convention sollte offensichtlich sein (und ohnehin auf "C" stehen).
-
Hi.
Das "Calling Convention" steht schon auf "C", das dachte ich mir auch. nur das Padding kam mir irgendwie unbekannt vor.