Author Topic: graphics conversion  (Read 2237 times)

0 Members and 1 Guest are viewing this topic.

Draftek

  • Guest
graphics conversion
« on: November 12, 2007, 04:21:36 PM »
I have to convert some graphic file resources in my project from icon and bitmap formats to the old stdole.IPictureDisp format

Apparently, there are (at least) a couple of options:

In your opinion would it be better to -

1. use the 'Microsoft.VisualBasic.Compatibility.VB6' reference using the .Support class and IconToPicture method
or
2. Wrap the win32 dlls c++ ole Picture functions.

?

I have the code for both working. I'm wondering which would be the safest to use in the long run.

Glenn R

  • Guest
Re: graphics conversion
« Reply #1 on: November 12, 2007, 04:43:44 PM »
If it was me, I would wrap the Win32 calls...having a VB reference in a C# project is just plain wrong no matter which way you look at it. :)

Draftek

  • Guest
Re: graphics conversion
« Reply #2 on: November 12, 2007, 04:46:55 PM »
heh. That was my first thought, too!