Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RTE 91 In BltToDc
#1
Ok, so I have a set of codes that displays a picture based on the characters class in a picturebox on frmMirage, and here is the code.

Code:
Call BltClassPic(Class(Int(Parse(10))).Pic, frmMirage.picClass)

And the BltClass Sub
Code:
Sub BltClassPic(ByVal PicNum As Long, PictureBox As PictureBox)
    With rec
        .top = PicNum * CLASS_PIC_Y
        .Bottom = .top + CLASS_PIC_Y
        .Left = 0
        .Right = .Left + CLASS_PIC_X
    End With
  
    With rec_pos
        .top = 0
        .Bottom = CLASS_PIC_Y
        .Left = 0
        .Right = CLASS_PIC_X
    End With

    DD_ClassSurf.BltToDC PictureBox.hDC, rec, rec_pos
    PictureBox.Refresh
End Sub

I get the RTE 91 on;
DD_ClassSurf.BltToDC PictureBox.hDC, rec, rec_pos

NOTE: I also tried "val(Parse(10))" nothing :/
Reply
#2
Make sure you're loading DX before you start using it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)