![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
Yes,
I think this is my problem: "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." How could I Show icon on a commandBarButton? without this method? Using vs.net 2003 & outlook 2003 What is derived classs? "Ken Slovak - [MVP - Outlook]" wrote: Are you deploying stdole.dll with your code? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Yael" wrote in message news ![]() Hi, I funded the problem: Add-in runing only on computer having a VS.NET If the Visual Studio is not installed I don't get my com add-in because of public class MatarotHost : AxHost Why? Or if I don't add this class, It's running good. Thank's, Yael. public class MatarotHost : AxHost { public MatarotHost() : base( "02FD5840-C1A3-448E-8310-98611DF58281"){ } public static stdole.IPictureDisp IPictureDisp(System.Drawing.Image Image) { return ((stdole.IPictureDisp)(AxHost.GetIPictureDispFromP icture(Image))); } |
#2
|
|||
|
|||
![]()
This is really a C++ question, not Outlook.
Try to post in a VS newsgroup. Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool "Yael" wrote in message ... Yes, I think this is my problem: "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." How could I Show icon on a commandBarButton? without this method? Using vs.net 2003 & outlook 2003 What is derived classs? "Ken Slovak - [MVP - Outlook]" wrote: Are you deploying stdole.dll with your code? -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Yael" wrote in message news ![]() Hi, I funded the problem: Add-in runing only on computer having a VS.NET If the Visual Studio is not installed I don't get my com add-in because of public class MatarotHost : AxHost Why? Or if I don't add this class, It's running good. Thank's, Yael. public class MatarotHost : AxHost { public MatarotHost() : base( "02FD5840-C1A3-448E-8310-98611DF58281"){ } public static stdole.IPictureDisp IPictureDisp(System.Drawing.Image Image) { return ((stdole.IPictureDisp)(AxHost.GetIPictureDispFromP icture(Image))); } |
#3
|
|||
|
|||
![]()
I don't know. I've never had a problem with using AxHost in my code and
deploying to computers where VS was never installed. I do use a different GUID than you're using, I have no idea if that makes any difference. I agree with Dmitry, at this point it's a .NET/Interop problem and nothing to do with Outlook. You might have more luck in a general .NET group for C# where there may be people more knowledgeable about AxHost and its ins and outs. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm "Yael" wrote in message ... Yes, I think this is my problem: "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." How could I Show icon on a commandBarButton? without this method? Using vs.net 2003 & outlook 2003 What is derived classs? |
Thread Tools | Search this Thread |
Display Modes | |
|
|