473,497 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

AxHost.GetIPictureDispFromPicture

public class MatarotHost : AxHost
{
public MyHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ }
public IPictureDisp GetIPictureDispOfPicture(Image image)
{
return (IPictureDisp)MyHost.GetIPictureDispFromPicture(im age);
}
}

Why I don't have in AxHost GetIPictureDispFromPicture method?
I have only in MyHost.
I'm using vs.net 2003

May 31 '07 #1
3 4413
Yael,

This code won't even compile, as it will see the MyHost declaration,
thinking it is a constructor, and then realizing it is in a MatarotHost
class declaration, will yield an error.

The GetIPictureDispFromPicture is a protected method, so it is only
exposed internally to classes that derive from AxHost.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Yael" <Ya**@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
public class MatarotHost : AxHost
{
public MyHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ }
public IPictureDisp GetIPictureDispOfPicture(Image image)
{
return (IPictureDisp)MyHost.GetIPictureDispFromPicture(im age);
}
}

Why I don't have in AxHost GetIPictureDispFromPicture method?
I have only in MyHost.
I'm using vs.net 2003
May 31 '07 #2
Thank you for your replay:
I foud that if I have VS in a computer, I get my comm add-in.
So,
How could I Show icon on a commandBarButton?
without this method?
Using vs.net 2003 & outlook 2003

"Nicholas Paldino [.NET/C# MVP]" wrote:
Yael,

This code won't even compile, as it will see the MyHost declaration,
thinking it is a constructor, and then realizing it is in a MatarotHost
class declaration, will yield an error.

The GetIPictureDispFromPicture is a protected method, so it is only
exposed internally to classes that derive from AxHost.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Yael" <Ya**@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
public class MatarotHost : AxHost
{
public MyHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ }
public IPictureDisp GetIPictureDispOfPicture(Image image)
{
return (IPictureDisp)MyHost.GetIPictureDispFromPicture(im age);
}
}

Why I don't have in AxHost GetIPictureDispFromPicture method?
I have only in MyHost.
I'm using vs.net 2003
May 31 '07 #3
I tried all these:
public static new stdole.IPictureDisp
GetIPictureDispFromPicture(System.Drawing.Image image)
{
return (stdole.IPictureDisp)MatarotHost.GetIPictureDispFr omPicture(image);
}

public IPictureDisp GetIPictureDispOfPicture(Image image)
{
return (IPictureDisp)MatarotHost.GetIPictureDispFromPictu re(image);
}

public static stdole.IPictureDisp ImageToIpicture(System.Drawing.Image
image)
{
return (stdole.IPictureDisp)MatarotHost.GetIPictureDispFr omPicture(image);
}
"Nicholas Paldino [.NET/C# MVP]" wrote:
Yael,

This code won't even compile, as it will see the MyHost declaration,
thinking it is a constructor, and then realizing it is in a MatarotHost
class declaration, will yield an error.

The GetIPictureDispFromPicture is a protected method, so it is only
exposed internally to classes that derive from AxHost.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Yael" <Ya**@discussions.microsoft.comwrote in message
news:02**********************************@microsof t.com...
public class MatarotHost : AxHost
{
public MyHost() : base("02FD5840-C1A3-448E-8310-98611DF58281"){ }
public IPictureDisp GetIPictureDispOfPicture(Image image)
{
return (IPictureDisp)MyHost.GetIPictureDispFromPicture(im age);
}
}

Why I don't have in AxHost GetIPictureDispFromPicture method?
I have only in MyHost.
I'm using vs.net 2003
May 31 '07 #4

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

Similar topics

2
2415
by: Kuba Florczyk | last post by:
Hi Do anybody know how to show ActiveX whitout AxHost? For example i got wrapper to ActiveX and now i don't know how AxHost shows ActiveX. I must do it, because i think AxHost made it wrong...
0
1437
by: Oculus | last post by:
Hi, Using AxImp /source I generated a wrapper class for one of my ActiveX controls that also implements a few other COM interfaces (I got the hotfix for KB886802 to even get this far) and it...
0
1451
by: Carlo Micieli | last post by:
Hello, I have a problem with an AxHost-derived class, this class represents a barcode for a thermal printer. To draw the barcode it expose a method call Draw() that receive as parameter a...
2
10444
by: Norvin Laudon | last post by:
Hi, I have a legacy ActiveX control (circa 1996) which I would like to use in a C# class, without using a form. I am getting an exception thrown when I try to set properties on the control:...
8
6788
by: Martijn Boven | last post by:
I created a activex control in c# (vs 2005) -------------------------------------------- public partial class ActiveTest : UserControl { public ActiveTest()
0
5282
by: Patel | last post by:
Hi All, I am doing one INTERESTING work with Context Menu Strip. I am trying to insert a custom control / .Net control in Context menu as a context menu strip. I tried inserting MonthCalender in...
0
1515
by: =?Utf-8?B?WWFlbA==?= | last post by:
I have com a add-in for outlook 2003 in c# vs.net 2003. there I add this class for display icon in my add-in button: In some computer this add-in running currect, but in one computer this add-in...
0
1836
by: schao416 | last post by:
Hello all, I'm currently using an ActiveX control that has a property called OcxState that returns a value of type LONG. However, when I try to compile my app, the compiler says OcxState...
0
1010
by: vshra | last post by:
Hello anyone can guide me how to convert Byte Array to AxHost:State pointer?
0
6993
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...
0
7162
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7197
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...
0
7375
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...
1
4899
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...
0
4584
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3088
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3078
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
650
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.