Einzelnen Beitrag anzeigen

Benutzerbild von BluesKid
BluesKid

Registriert seit: 2. Sep 2003
Ort: NRW
133 Beiträge
 
Delphi 2005 Professional
 
#9

Re: Invalid pointer operation

  Alt 5. Feb 2004, 08:01
Moin

Tja, gute Frage..

Also ich hab folgendes gefunden:

Zitat:
Delphi Memory Allocation and Dynamic-Link Libraries

Borland's comments within a wizard-generated DLL project:
{ Important note about DLL memory management: ShareMem must be the first unit in your library's USES clause AND your project's (select Project-View Source) USES clause if your DLL exports any procedures or functions that pass strings as parameters or function results. This applies to all strings passed to and from your DLL--even those that are nested in records and classes. ShareMem is the interface unit to the BORLNDMM.DLL shared memory manager, which must be deployed along with your DLL. To avoid using BORLNDMM.DLL, pass string information using PChar or ShortString parameters. }
Den gesammten text gibts hier.

So, da das aber (keine Ahnung warum) nich funktioniert hat, hab ich dann einfach aus dem String deiner Funktion ein Integer gemacht....

very quick and bloody dirty ..


schönen Gruß

Sam
  Mit Zitat antworten Zitat