|
From: | Dave |
Subject: | [Chicken-users] easyffi c++ passing object pointers |
Date: | Tue, 04 Nov 2003 21:07:50 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 |
Hello,How can I take pointers to objects that were created in C++, pass them via an entry point, and manipulate them as tinyclos objects? Examples exist for using c++ objects that are created by scheme and even pulling a pointer from the tinyclos object, but I cannot figure out how to turn this around. Here's one of my abortive attempts:
#>! class ClientApp { public: bool ChickenCallin(char *helo); }; <# ;;; INITIALIZE (define-entry-point 1 ((a (pointer <ClientApp>))) (int) (print "Got client pointer") (print a) (print (ChickenCallin a "bing")) 1) Thanks!
[Prev in Thread] | Current Thread | [Next in Thread] |