Thread: About AxHost
View Single Post
  #5  
Old May 31st 07, 03:25 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default About AxHost

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)));
}


Ads