Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (howardR, 7th_zorro), 893 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
overwrite struct #282714
08/03/09 11:17
08/03/09 11:17
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
Hello everyone,
is it possible to overwrite a struct? I want to add some more varialbes to the panel struct. Or can I work around it. I hope that I needn't create an extra array and save these variables into it...

Mfg, Martek


3D Gamestudio A7 Extra
Re: overwrite struct [Re: Martek] #282735
08/03/09 12:50
08/03/09 12:50
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
Hi,

No you can't do so as far as I know, however I suppose you could do something like this:

Code:
typedef struct PanelStruct
{
	PANEL* ThePanel;
	var myVar1;
	var myVar2;
} PanelStruct;



Re: overwrite struct [Re: Claus_N] #282750
08/03/09 14:46
08/03/09 14:46
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
I think I must do it this way... It is even better then an extra array smile


3D Gamestudio A7 Extra
Re: overwrite struct [Re: Martek] #282846
08/04/09 09:26
08/04/09 09:26
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
you could just add some variables in the panel struct?

atypes.h, line 517

Re: overwrite struct [Re: MrGuest] #282870
08/04/09 11:42
08/04/09 11:42
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
atypes.h is part of the engine SDK - so I doubt that it would work, but please tell me if it does smile

Re: overwrite struct [Re: Claus_N] #282885
08/04/09 13:44
08/04/09 13:44
Joined: Jul 2007
Posts: 288
Germany, NRW
Martek Offline OP
Member
Martek  Offline OP
Member

Joined: Jul 2007
Posts: 288
Germany, NRW
I am afraid of changing the 3DGS include files. This variables should only be used in one project. But I found another way. At the moment I only need two variables and I save them into the panel.skill_x and panel.skill_y variables and this works fine smile


3D Gamestudio A7 Extra

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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