<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello friends,</div>
<div> </div>
<div>I have some issues in understanding accessing objects via its adress.</div>
<div> </div>
<div>this is my scenario:</div>
<div> </div>
<div>[CODE]</div>
<div>
<div>#lang racket<br/>
(require ffi/com<br/>
ffi/unsafe<br/>
ffi/unsafe/define<br/>
ffi/winapi<br/>
racket/string<br/>
racket/format)<br/>
(define _BOOL (make-ctype _int (lambda (v) (if v 1 0)) (lambda (v) (not (zero? v)))))</div>
<div>(define-ffi-definer define-testdll (ffi-lib "test.dll"))</div>
<div>(define-<span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">testdll </span>GetTestObject(_fun<br/>
(pObj : (_ptr io _intptr))<br/>
-> (r : _BOOL)<br/>
-> (values r <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">pObj</span>)))<br/>
(define p (malloc 'atomic _int32))<br/>
(define i (cast p _pointer _intptr))<br/>
(define-values (res <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">pObj</span>) (<span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">GetTestObject</span>i))<br/>
(~r <span style="font-family: Verdana; font-size: 12px; line-height: 19.200000762939453px;">pObj</span>#:base 16)</div>
<div>[CODE]</div>
<div> </div>
<div>I run the script: res is #t and pObj is something like "3d14b008".</div>
<div>How can I access the members and Functions of the Object with the given pObj adress?</div>
<div>First of all , is it possible?</div>
<div>Can I map the Object in the address to a real Racket Object, on which I can work?</div>
<div> </div>
<div> </div>
<div>Yours,</div>
</div></div></body></html>