TheSwamp
Code Red => .NET => Topic started by: Draftek 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.
-
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. :)
-
heh. That was my first thought, too!