Retrieve pictures by using DLL-method 
Author Message
 Retrieve pictures by using DLL-method

Hi all,

I read a picture by using an ActiveX DLL-method. The method works fine, but
when
the method "returns" to the calling function in the EXE-module, my
application
crashes. Someone in this newsgroup mentioned to use the IPictureDisp as
return-type
but that doesn't work either.

Anybody has an idea to solve this ? Anybody does know how to pass pictures
between a DLL and an EXE ?

Thanks in advance !

Jean-Marie De Smet


My code:

EXE-module
---------------

...

Private objPic As Pic.GetPictures
...
private sub Form_load()

    on error goto errhandler

    Set objPic = CreateObject("Pic.GetPictures")            ' works fine

    call imgToolbar.ListImages.Add(1, , GetIcon(1))         ' jumps to
errhandler when GetIcon() returns

    exit sub

errhandler
    logerror (LOG_ERROR, "loading form failed")

end sub

Form_unload()
    set objPic = nothing
end sub

DLL-function
-----------------

Public function GetIcon(ByVal lIDIcon As Long) as StdPicture

    Set GetIcon = LoadResPicture(lIDIcon, vbResIcon)        ' works fine

End function                                                ' works fine



Mon, 14 Jan 2002 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Retrieve picture by using DLL-method

2. Retrieving Pictures From a SQL Server using ASP

3. Help!! - clipping pictures using the paintpicture method

4. Out of memory using SSPanel and Picture Box Controls w/graphics methods - Please Help

5. Flip a Picture in PictureBox control using PaintPicture Method

6. picture object render method - has anyone used it successfully

7. how to retrieve the file size using wininet.dll

8. How to retrieve file size using wininet.dll

9. Retrieve web page using an ActiveX DLL?

10. Retrieving the version of DLL's used

11. Problem using AXTIVEX DLL method from ASP

12. Using an object parameter in a DLL method

 

 
Powered by phpBB® Forum Software