From: Alexandre Naaman (naaman++at++laplace.engr.sgi.com)
Date: 06/04/2004 10:59:17
Hi Sherman,
Looking at your code it seems like the following:
extern pfuEventStream events;
pfuEventStream *pEvents = &events;
within your handleEvents() function is what's causing the problem. The
'events' variable you're trying to de-reference is not defined globally
anywhere (it's a local variable which lives within some of the some of the
functions defined in libpfutil/input.c).
If you want to add custom event handling to your program I suggest that
you instead use the pfuInputHandler() function.
I'm attaching to this reply the contents of a previous mail I sent to the
list which examined the same topic, hopefully that will help you see how
best to do things like this on win32.
A+,
Alex.
> Hi all,
>
> As you might all remember, I'm a novice still learning. I would like to
> implement user controls as a next basic step. This program should simply
> exit when the user hits escape.
>
> After running simple.cxx like in my previous tutorial, I have simply added 4
> sections of code as you can see in the link. I get the error:
>
> error LNK2020: unresolved token (0A000003) events
>
> Here's the link:
> http://www.ecopath.org/php/performer/tutorials/3_tutorial/userControl.php
>
> Please advise what I am doing wrong. Thank you guys very much for your
> help. Note: I'm using Windows with .Net
>
> Cheers,
> Sherman
>
> Here's the tutorial to set up simple.cxx
> http://www.ecopath.org/php/performer/tutorials/1_tutorial/myFirstPerformer.p
> hp
>
This archive was generated by hypermail 2b29 : Fri Jun 04 2004 - 11:00:50 PDT