I'm trying to write some code to read some values from the registry. Here's what I have so far - however, the code always fails to open the registry. Any ideas why?
Codefire, 'Long' and 'Quad' are structures. Defining 'myVariable.Long' is not the same as 'myVariable.l'. What you can't do is 'SizeOf(.l)' and the like (although you can get the SizeOf() the variables themselves if the base type is not included, i.e. 'Debug SizeOf(myVariable)' ). ;)
snip... I translate it to PB: h_verlen.c=(4<<4)|(SizeOf(ipHeader)/SizeOf(long))
Interestingly enough the docs for 4.02 state that SizeOf() only works on structures and not on base types. However, you are right it works fine on base types:
If OpenConsole() PrintN("sizeof long is:"+Str(SizeOf ...
I have a single sprite sheet (bitmap file) with a number of frames for an animation on it. I want to split the sheet so that each frame goes into a seperate bitmap file.
Does anyone know how I can do that in PSP or even MS Paint? Or is there some tool out there to do it?