WinAPI help

Miscellaneous Forums/Win32 Discussion/WinAPI help

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Thanks Kev... when I remove the canvas (and cls/flipcanvas lines etc) it still crashes just as before (and, similarly, runs ok when I also remove the InvalidatRect line, same as before).

"is a canvas not a directx surface?" Good question! I do not know what exactly a canvas is. My best guess would be a hdc but I don't totally understand what that is either, other than general things I can with one using just BlitzPlus.

Here is the def in my user32.decls file:
.lib "user32.dll"
[...]
api_InvalidateRect% (hwnd%, lpRect*, bErase%) : "InvalidateRect"
[...]

Happy to post more or all of the code if you like.