Results 1 to 3 of 3

Thread: [RESOLVED] Calling sub help

  1. #1

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Resolved [RESOLVED] Calling sub help

    RenderDrawThing2 Heart(NumHeart)
    ok when i call this sub I get an error. I dosent tell me what though the program just shuts off. The sub is this

    VB Code:
    1. Sub RenderDrawThing2(TileSourcesurf As DirectDrawSurface7)
    2. Dim r As RECT, retVal As Long
    3.             r.Left = 0
    4.             r.Top = 0
    5.             r.Right = 50
    6.             r.Bottom = 50
    7.                 'This is where we copy the tile from the source to the destination
    8.                 retVal = Mainsurf.BltFast(x * 50 - 50, y * 50 - 50, TileSourcesurf, r, DDBLTFAST_WAIT)
    9. End Sub
    there are 5 heart pictures. The numheart specifys which one to draw. If I do this...
    RenderDrawThing2 Heart(4)
    it works but if I do this
    numheart=4
    RenderDrawThing2 Heart(numheart)
    it dosent...

    Please any assistance would be appreciated!
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

  2. #2

  3. #3

    Thread Starter
    Fanatic Member damasterjo's Avatar
    Join Date
    Nov 2005
    Location
    In front of my Comp DirectX7 EXpert
    Posts
    827

    Re: Calling sub help

    nah thats ok, i found out the problem anyway. nothing wrong with the sub call, just something I did stupid.

    Soon I will update my game, its coming along quite nicely! (more like)
    Software languages known:
    Qbasic - TI-Basic - Liberty Basic - Visual Basic 6
    Software API's known:
    Directx 7 and 8
    Internet languages, in the process of learning:
    HTML - JAVASCRIPT - PHP - CSS - MYSQL - AJAX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width