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, The_Judge, Grant), 898 guests, and 5 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
engine_callscript4 - Passing arguments #154087
09/14/07 15:31
09/14/07 15:31
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
I try to pass a struct and a number to a function called with "engine_callscript4". Right now this looks like this

Code:

// Caller func
void Baa( long Foo, AG_Window* Window, var EventType )
{
if( Foo!=NULL )
{
engine_callscript4( Foo, Window, EventType, 0, 0 );
}
}

// Called func
void xXx( AG_Window* Window, var EventType )
{
printf( "%d", EventType );
}



I know that this can't work, so my question is how to pass a copy of the class and a var to the function.

Thanks in advance.

Re: engine_callscript4 - Passing arguments [Re: TWO] #154088
09/15/07 17:07
09/15/07 17:07
Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
T
TWO Offline OP

Serious User
TWO  Offline OP

Serious User
T

Joined: Jan 2006
Posts: 1,829
Neustadt, Germany
Solved, the var-argument has to be the first argument.


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