Results 1 to 4 of 4

Thread: Didnt work!

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Angry

    I tried that it doesnt work..

    Code:
     
    Dim arrByte() As Byte
    Dim IFFN As Integer
    Dim strTempPath As String
       On Error GoTo ErrorHandler   ' Enable error-handling routine.
    arrByte = LoadResData(rndnum, "Custom")
    strTempPath = App.Path & "\Loading.jpg"
    IFFN = FreeFile
    Open strTempPath For Binary As IFFN
    Put #IFFN, , arrByte
    Close #IFFN
    Form1.Picture1.Picture = LoadPicture(strTempPath)
    Kill strTempPath
    Exit Sub      ' Exit to avoid handler.
    ErrorHandler:   ' Error-handling routine.
       Select Case Err.Number   ' Evaluate error number.
          Case 326   ' "Res Index not there" error.
          Exit Sub
       End Select
    End Sub
    Evan Duffield --------
    --- [email protected]
    - -
    VB6 - Learning Edition
    - -


  2. #2
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Did you get an error? Where? What? Try to break in the errorhandler or remove the on error statement and tell us the results
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    The error

    I typed in for the res file to get
    the 400 index picture. Its not there,
    But I was hoping It would skip the
    error. Its error 326... Invalid res
    index. What should I do>?
    Evan Duffield --------
    --- [email protected]
    - -
    VB6 - Learning Edition
    - -


  4. #4
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    *Ahem* Someone else have to reply since i'm not good at res files, i don't have the editor
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

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