Dll function which return a Pointer
- From: aleicaro@xxxxxxxxx
- Date: 30 Sep 2005 07:42:41 -0700
Hi,
I've a funcion in a DLL which return a pointer to a structure (Record)
of mine.
I've a problem:
When I return the pointer from my DLL, I've the Pointer with the right
value, but if I go in MyPointer^.myField, it gives me "Access
violation".
The definition of my function is right (with stdcall) both in the exe
and in the dll.
I haven't many experience with dlls, but in my opinion, the problem, is
that the memory where is stored my record valued from the dll is
cleaned when I return to my exe?
Is it right?
How can I solve it?
Thank you
Ale
.
- Follow-Ups:
- Re: Dll function which return a Pointer
- From: Ante Smolcic
- Re: Dll function which return a Pointer
- Prev by Date: Re: Delphi 5 license wanted
- Next by Date: Re: Dll function which return a Pointer
- Previous by thread: How to get device-name ?
- Next by thread: Re: Dll function which return a Pointer
- Index(es):
Relevant Pages
|
|