|
-
Jul 10th, 2000, 06:32 PM
#1
Thread Starter
Addicted Member
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
-
Jul 10th, 2000, 06:38 PM
#2
_______
<?>
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
-
Jul 10th, 2000, 06:51 PM
#3
Thread Starter
Addicted Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|