473,803 Members | 3,752 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Convert Image to stdole.StdPictu re

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 OleLoadPictureF ile
API.

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

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

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

"Joe" <J_no_spam@_no_ spam_Fishinbrai n.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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 OleLoadPictureF ile
API.

Thanks,
Joe

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

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

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

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

"Joe" <J_no_spam@_no_ spam_Fishinbrai n.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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 OleLoadPictureF ile
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
3397
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 Knowledge base has very little on the STDPicture object. Does anyone know if there is a build-in limitation that prevents you from passing this type of object? If so, is there a work around method I've missed? If anyone could point me toward some...
1
1912
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 reference to stdole even though I already have a reference to stdole). At this point, restarting Visual Studio can sometimes help, but sometimes not even that helps and than you have to restart the computer. Removing and reinserting the reference to...
1
3451
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 the GUID here has no meaning. End Sub
1
5317
by: Sagaert Johan | last post by:
How can i put the image in a stdole.StdPicture object in a Picturebox.Image ?
4
5850
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, theMailItem set theApp = CreateObject("Outlook.Application") Set theMailItem = theApp.CreateItem(0)
4
3218
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; the graphic is supplied as a "StdPicture" (AKA, IPictureDisp). How can I convert this to a .NET Image? A search of the object browser shows: protected static System.Drawing.Image GetPictureFromIPictureDisp(object picture)
8
10296
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
20916
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 would be appreciated. I've been trying numerous ways to resize images, as I want to make store thumbnails, not full images in my database. -----------------------------------------------------------------------------
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9566
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10317
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10300
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9127
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7607
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5636
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3802
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.