Re: poke4 won't accept my 32bit values

new topic     » goto parent     » topic index » view thread      » older message » newer message

Chris Bensler writes:
> ...when the code does not pass through WinMain, 
> it doesn't allow me to poke4 the values, resulting 
> in incorrect colors..

I'm not sure what you are doing, but
keep in mind that Euphoria routines, such as poke4(),
deal with data in Euphoria's internal format.
Euphoria integers and C integers are the same,
as long as you are in the range of (roughly) -1 billion
to +1 billion. Outside of this range a Euphoria library 
routine will interpret the number to be a kind of pointer to
a double or a sequence. To pass a 32-bit integer,
outside of the range, you would have to create a pointer
to a double, like what NewDouble() returns, and pass that. 
This is very tricky, not for the faint of heart.

Also, WinMain() causes a lot of necessary stuff to
be initialized. If you skip it, some things won't work right. 

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu