Oxygen Basic
Programming => Example Code => Topic started by: Peter on April 21, 2014, 04:10:24 AM
-
Deleted
-
Sorry Peter,
A scripted window just flashes for me momentarily in the Go (JIT) mode while a precompiled executable crashes in the ss.dll module on load.
-
Yes Peter ...Mike have a right
program compile OK but after that just crush because
something is wrong with function LoadImage
! LoadImage Lib "ss.dll" (bstring iFile,sys frames) as sys
I tried few option but still not work...
-
Peter
Is your function use something like this:
// load sample.png into image
SDL_Surface *image;
SDL_RWops *rwop;
rwop=SDL_RWFromFile("sample.png", "rb");
image=IMG_LoadPNG_RW(rwop);
if(!image) {
printf("IMG_LoadPNG_RW: %s\n", IMG_GetError());
// handle error
}
-
Hello Peter,
Yes, these two latest scripts work nicely for me though SW.INC and SW.DLL are missing from the zip. I used earlier versions from your other submissions.
So the offending code was somewhere in the image loading routine?
P.S.
Hi Mike,
Try this.
Can someone confirm what Mike said ?
No way. Particle.exe crashes on load displaying a black window. That doesn't require somebody else's confirmation since it happens on all the three Windows platforms that I have. Three identities in perfect harmony - me, myself, and I. ;)
-
Peter
I don't know ..i just found this in SDL documentation... :-\
Anyway last example with .bmp work grat :D
And i don't see any faster exacution over GDI ..or maybe im wrong ???
-
Yes Peter,
Bmp works perfect for me too, thank you!