473,320 Members | 1,848 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Convert Image to stdole.StdPicture

Joe
I was looking at the StdPictureClass to see if it could be useful but I
can't seem to find any documentation on it.

The image is drawn dynamically therefore I cannot use OleLoadPictureFile
API.

Thanks,
Joe
Nov 17 '05 #1
2 6801
Joe,

Add a reference to Microsoft.VisualBasic.Compatability.dll (it's in the
framework directory, shipped standard). Once you have that, use the static
ImageToIPicture or ImageToIPictureDisp methods on the Support class in the
Microsoft.VisualBasic.Compatability.VB6 namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I was looking at the StdPictureClass to see if it could be useful but I
can't seem to find any documentation on it.

The image is drawn dynamically therefore I cannot use OleLoadPictureFile
API.

Thanks,
Joe

Nov 17 '05 #2
Joe
Works perfect! Thanks!

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:eQ**************@TK2MSFTNGP15.phx.gbl...
Joe,

Add a reference to Microsoft.VisualBasic.Compatability.dll (it's in the
framework directory, shipped standard). Once you have that, use the
static ImageToIPicture or ImageToIPictureDisp methods on the Support class
in the Microsoft.VisualBasic.Compatability.VB6 namespace.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Joe" <J_no_spam@_no_spam_Fishinbrain.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
I was looking at the StdPictureClass to see if it could be useful but I
can't seem to find any documentation on it.

The image is drawn dynamically therefore I cannot use OleLoadPictureFile
API.

Thanks,
Joe


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bruce A. Wilkinson | last post by:
Greetings All I am currently attempting to pass an STDPicture object to the Picture property of a class module within a DLL. However, none of the usual methods seem to apply. The Microsoft...
1
by: Magnus | last post by:
I use IFontDisp and some other stuff from stdole in VB.NET, but sometimes Visual Studio simply refuses to compile, complaining about various stdole errors (for example, it wants me to add a...
1
by: Diego | last post by:
Hi, Anyone can help to convert this code to C#? Public Class MonImageConverter Inherits System.Windows.Forms.AxHost Public Sub New() MyBase.New("59EE46BA-677D-4d20-BF10-8D8067CB8B33") 'note...
1
by: Sagaert Johan | last post by:
How can i put the image in a stdole.StdPicture object in a Picturebox.Image ?
4
by: CJ | last post by:
Hi I'm trying to send email via a c# app, and I've come across various ways to do it, but the way that seems best given my constraints is this little vbscript: Dim theApp, theNameSpace,...
4
by: Mark | last post by:
We're authoring a VS 2005 app that includes several EXE's and DLL's and also uses a COM component (a customer requirement). The COM component provides a graphic image to be used by the .NET app;...
8
by: samadams_2006 | last post by:
I'm trying to find the namespace for stdole.dll Is there a tool out there that will help me do this?
2
by: Dominic Vella | last post by:
Hi, I know I seem to have the really complicated questions, but I guess that's why I'm here. This is a little verbose, only because I've been trying to crack this for a week now. Your help...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.