Path: chuka.playstation.co.uk!news From: Alain Malek Newsgroups: scee.yaroze.programming.libraries Subject: VSyncCallback Date: Thu, 03 Jul 1997 11:43:36 +0200 Organization: PlayStation Net Yaroze (SCEE) Lines: 34 Message-ID: <33BB7448.19E8E81D@cryogen.com> Reply-To: Alain.Malek@cryogen.com NNTP-Posting-Host: lsne-home-2-9.urbanet.ch Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.01 [en] (Win95; I) X-Priority: 3 (Normal) Hello, I tried to use the VSyncCallback function. But I couldn't share variables between the callback routine and the main program. The UserGuide book says "information can be held in common with the normal program via external variables." But how ? Here is a piece of code which represents what I've done. static int a,b,c; static void callback() { a = b+c; // just an example... } static void InitCB() { VSyncCallback(callback); } void main(int argc, char **argv) { InitCB(); ... } The code didn't crash, but the variables where not modified by the callback function. Alain