Archived Support Forum: View Post
Index | Ladder
Koen van de Sande posted a message about Re: Vxlse & Dlls in reply to Re: Vxlse & Dlls

> > > im trying to make a plugin thing so that u can make dlls that do stuff to the TVoxelSection(well ActiveSection), anyway

> > > it works but when u make the procedure run u get

> > > "Access violation at address 00D9C8C3. Write of address 01B80000"
> > Making DLLs is not to easy... any error/Exception not caught inside Delphi will be passed to the parent, and give an AV.
> > Are you sure you need a DLL plugin system?
> > Note that you cannot pass TVoxel, TVoxelSection, or any other class to DLL procedures! Only basic types: Integer and PChar! (Unless you do something with memory management DLLs or make sure the host program is written in Delphi as well).

> so u can't pass

> type
> tbla = record
> bla,bla2,bla3 : integer;
> end;

> or

> tbla = array[0..70] of integer;

> P.S i have basicaly no experience with dll's

A record might be possible to pass... and an array too. If you use Delphi for both host and DLL... then all should be well. If not, make sure you use stdcall or other calls to be compatible with the other!

Koen van de Sande
Van de Sande Productions

TibEd.Net


 
© 1999-2023 Van de Sande Productions