Greetings all!
I’m creating my own custom plugin for Windows and am having great success thus far converting my classes, but I’ve hit a snag.
How does the Constructor method work in the plugins SDK?
I’ve created a Constructor method with no parameters e.g. a zero constructor which works fine, but when I attempt to add another constructor method with a parameter of a REALstring, Xojo crashes. I must be doing something wrong. BTW the DLL I create compiles fine.
[code]static void ConstructorGaol(REALobject instance, long param, REALstring gaol)
{
ClassData(HousingData2_Definition, instance, HousingData2Data, me);
REALUnlockString(me->sGaol);
me->sGaol = gaol;
REALLockString(me->sGaol);
}[/code]
Could anyone please supply me an example of how it’s supposed to be done?
Cheers
Grant