Search the web
Sign In
New User? Sign Up
AIL_Development · AIL Developer's Forum
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
IpicturetoImage   Message List  
Reply | Forward Message #97 of 125 |
And another one!

I am using a com object interop (DSOfile) in a VB.net project, and in
order to extract the thumbnail property of a file, I am using another
reference, visualbasiccompatibility.VB6 and the method
IpicturetoImage. This seems to be the only way that it converts the
ole ipciture to a standard VB.net image.

I had thought that using Convert_PictureToBitmap would have replaced
this but it seems i am getting an "unable to cast" exception when i
attempt it try. I guess a stdole.stdpicture is not the same as an ole
Ipicture???. It would be nice if i could do everything in AIL rather
than have the extra reference if possible. any thoughts?




Wed Oct 8, 2008 7:55 am

bluescreenwe...
Offline Offline
Send Email Send Email

Forward
Message #97 of 125 |
Expand Messages Author Sort by Date

And another one! I am using a com object interop (DSOfile) in a VB.net project, and in order to extract the thumbnail property of a file, I am using another ...
bluescreenweasel
bluescreenwe...
Offline Send Email
Oct 8, 2008
10:31 pm

... The "Convert_PictureToBitmap" function takes an StdPicture object in VB5/VB6, and takes a System.Drawing.Image object in .NET... then converts it to a...
Kevin Wilson
kwilson1997
Offline Send Email
Oct 8, 2008
10:49 pm

what I needed was a "convert stdpicture to native dotnet image". The class you provided worked perfectly when i put it into my project. the thumbnail was...
bluescreenweasel
bluescreenwe...
Offline Send Email
Oct 9, 2008
5:36 pm

... If all you need to do is convert an StdPicture object to a System.Drawing.Image object, then don't bother with AIL. It's not designed to do that, nor does...
Kevin Wilson
kwilson1997
Offline Send Email
Oct 9, 2008
5:56 pm

hi kevin, i got that class from the previous post, and it works perfectly in a .net 2 project. I already had a reference to stdole.dll, however it's from...
bluescreenweasel
bluescreenwe...
Offline Send Email
Oct 10, 2008
8:51 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help