I've just been messing around with Blitz+ and Qcards32.dll (something similar to ms cards.dll)
I managed to get a card displayed on screen as follows
Using this code the card displays but very flickery
if I set the value to (QueryObject(winMain,1),6,200,200) it displays in the window.
I'm just wondering how blitz handles images loaded through a function in a dll, is the card being drawn within a canvas or something ?
I managed to get a card displayed on screen as follows
.lib "Qcard32.dll" InitializeDeck% (hWnd%) DrawCard% (hWnd%, nCard%, nxLoc%, nyLoc%)
; some of the example code Global Canvas = CreateCanvas(0,0,500,500,winMain) SetBuffer CanvasBuffer(Canvas) Global t% = InitializeDeck (QueryObject(Canvas,1)) ....... Cls DrawCard (QueryObject(Canvas,1),6,200,y) FlipCanvas Canvas
Using this code the card displays but very flickery
if I set the value to (QueryObject(winMain,1),6,200,200) it displays in the window.
I'm just wondering how blitz handles images loaded through a function in a dll, is the card being drawn within a canvas or something ?