I have a ActiveX EXE which has the following code


public Function GetPic(sPicPath as string) as Picture
Dim pic as Picture
set pic = LoadPicture(sPicPath)
set GetPic = pic
End Function




But this just gives me an 'Automation Error' or 'Method Failed' error, can i achieve this through any other means as i want to pass the picture object from the server to the client.