Results 1 to 2 of 2

Thread: Loading picture through my own procedure

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242

    Arrow

    Hello!

    I have kind an annoying problem. I created function for loading pictures and it uses some kind of "logic". But here's a problem:

    Public Function LoadPic(ID As String, cond As Condition) as IPictureDisp
    Dim SomeStr As String
    '.....
    '..... here goes code
    '.....
    ' And on the end I use
    Set LoadPic = LoadPicture(pic & ".jpg")
    End Function

    And then VB generates an unexpected error, when I try to set my function to LoadPicture. Can you help me with this?
    Zvonko Bostjancic
    Ilirska Bistrica, Slovenia
    [email protected]
    Using VS6 Professional with SP3
    Programming mostly in VB and I've started to learn VC++ & MFC

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    pic

    is pic your picture plus it's path..

    ie
    pic = app.path & "\" & images\mypic"
    set loadpicture = pic & ".jpg"
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

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