Results 1 to 3 of 3

Thread: Probelm with LoadPicture

  1. #1

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

    I have a function that loads data from a file, then creates new file on disk (JPEG picture) and loads picture. But there comes to error. The function looks like that:

    Funciton GetPic(id as string) as StdPicture
    '''
    ''' Some other code
    '''
    Set GetPic = LoadPicture(app.path & "\File.jpg")
    End Function

    Then when I try to set LoadPicture to my function it returns error.

    Can anyone explain me why?
    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

    <?>

    what exactly is the error..number etc.
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Aug 1999
    Location
    Ilirska Bistrica, Slovenia
    Posts
    242
    Sorry, wrong thoughts...
    I meant to ask what's the difference between IPictureDisp and StdPicture? Because when I tried example in my first post with function declared as StdPicture, it worked, but when I tried to declare it as IPictureDisp, it returned error in Set statement ("Unexpected error").
    Zvonko Bostjancic
    Ilirska Bistrica, Slovenia
    [email protected]
    Using VS6 Professional with SP3
    Programming mostly in VB and I've started to learn VC++ & MFC

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