Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
D3DLesson4.c won't run #336733
08/05/10 21:38
08/05/10 21:38
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
I've never noticed these before, or are they just new to A8? They're very useful, but D3DLesson4.c won't compile.

I'm using A8.02 Pro, and I get the following:
Code:
Error in line 169:
Can't initialize global structs in functions
<   D3DXVECTOR3* vEyePt = { x=0.0; y=3.0; z=-5.0; } >


Jibb


Formerly known as JulzMighty.
I made KarBOOM!
Re: D3DLesson4.c won't run [Re: JibbSmart] #336814
08/06/10 13:41
08/06/10 13:41
Joined: Jul 2000
Posts: 27,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
Frankfurt
Thanks! This will be fixed.

Move the vEyePt and the 2 following vectors out of the function and make them global - they can then be initialized this way.

Re: D3DLesson4.c won't run [Re: jcl] #336859
08/06/10 16:36
08/06/10 16:36
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline OP
Expert
JibbSmart  Offline OP
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
Brillo. Thanks!

Jibb


Formerly known as JulzMighty.
I made KarBOOM!

Moderated by  jcl, Nems, Spirit, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1