This site is no longer active and is available for archival purposes only. Registration and login is disabled.

scope of Global variables not so Global?


scope of Global variables not so Global?

Postby jeemigdepeemig » Nov 8, 2005 @ 11:53pm

jeemigdepeemig
pm Member
 
Posts: 6
Joined: Oct 25, 2005 @ 1:51pm


Re: scope of Global variables not so Global?

Postby Andy » Nov 9, 2005 @ 3:17am

Andy
<font color=red size=3>Troll++</font>
 
Posts: 1288
Joined: Nov 1, 2003 @ 7:36am


Postby Conan » Nov 9, 2005 @ 9:46am

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby jeemigdepeemig » Nov 9, 2005 @ 10:40am

jeemigdepeemig
pm Member
 
Posts: 6
Joined: Oct 25, 2005 @ 1:51pm


Postby Conan » Nov 9, 2005 @ 11:34am

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby jeemigdepeemig » Nov 9, 2005 @ 11:39am

jeemigdepeemig
pm Member
 
Posts: 6
Joined: Oct 25, 2005 @ 1:51pm


Postby Conan » Nov 9, 2005 @ 11:56am

What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby BradK3 » Nov 10, 2005 @ 5:50am

User avatar
BradK3
pm Member
 
Posts: 19
Joined: May 27, 2003 @ 7:34pm
Location: Clearfield, Utah


Postby jeemigdepeemig » Nov 10, 2005 @ 12:21pm

Hey Brad,

I tried what you suggested but I get a: "syntax error : missing ';' before identifier 'game'" in the extern HekkusSample game; line.

Even so, is this is a good way (maybe the only way) to access a variable from an outside file? From what i've understand the compiler will not allocate memory for the variable. Which sounds not so good performance wise (since the variable is a huge game object).

Thanks for looking at my problem. I send Conan my zipped project and he's looking at it right now. It seems like a great rescourse for me this forum :) .

Greets,
jeemig
jeemigdepeemig
pm Member
 
Posts: 6
Joined: Oct 25, 2005 @ 1:51pm


Postby Conan » Nov 10, 2005 @ 2:21pm

For completeness here's what I suggested via email:-
pass the map variable in to the sprite's move function when the sprite move function is called.
This seems the correct way to do this and I now have the code working and a little guy walking on the screen of my X51v.
What is Best in Life ?
User avatar
Conan
pm Member
 
Posts: 1309
Joined: Dec 24, 2001 @ 5:16am
Location: the Shades, Ankh-Morpock


Postby jeemigdepeemig » Nov 10, 2005 @ 3:23pm

jeemigdepeemig
pm Member
 
Posts: 6
Joined: Oct 25, 2005 @ 1:51pm


Postby BradK3 » Nov 11, 2005 @ 5:41pm

Great! Glad you got it working!

-Brad
User avatar
BradK3
pm Member
 
Posts: 19
Joined: May 27, 2003 @ 7:34pm
Location: Clearfield, Utah


Return to PocketFrog & PocketHAL


Sort


Forum Description

SDKs for fast and robust device-independent access to Pocket PC display hardware.

Moderators:

sponge, Kzinti

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron