Powerpoint ActiveX errors

G

Guest

I am getting 2 errors when I try to insert some ActiveX controls in slides.
One is a powerpoint error saying "PowerPoint found an error that it can't
correct. You should save presentations, quit, and then restart PowerPoint.",
the other error is a Microsoft Visual Basic error saying "Could not access
the system registry" I am logged in as admin so there shouldn't be an error
about not being able to access the system registry. If anyone knows what the
problem with these ActiveX controls are, let me know.
 
S

Steve Rindsberg

I am getting 2 errors when I try to insert some ActiveX controls in slides.
One is a powerpoint error saying "PowerPoint found an error that it can't
correct. You should save presentations, quit, and then restart PowerPoint.",
the other error is a Microsoft Visual Basic error saying "Could not access
the system registry" I am logged in as admin so there shouldn't be an error
about not being able to access the system registry. If anyone knows what the
problem with these ActiveX controls are, let me know.

Have you contacted the developer of the controls?
That'd be the best place to start.
 
G

Guest

Steve Rindsberg said:
Have you contacted the developer of the controls?
That'd be the best place to start.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


Well, I am trying to develop my own ActiveX control for powerpoint, and I am getting the same error, specifically the "Cannot Access System Registry" one. So, technically I am one of the developers. First, I thought it was just my code, but then I realized other controls had the same problem. Here is my code that I used for a simple custom control:

I used c#.net

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
using System.Runtime.InteropServices;
using System.Reflection;

namespace ActiveXDotNet
{

[InterfaceTypeAttribute( ComInterfaceType.InterfaceIsDual )]
[Guid( "4075f012-1f8c-4bd5-a2d6-c843ac9e16a1" )]
public interface AxMyControl
{
[DispId(1000)]
String UserText { set; get ; }
}

[InterfaceTypeAttribute( ComInterfaceType.InterfaceIsIUnknown )]
[ComImport, Guid( "dd598b26-ca0b-4c42-bcb7-60d00d2fe181" )]
public interface IUnknown
{
[PreserveSig]
bool QueryInterface( string InterfaceName );

[PreserveSig]
void AddRef();

[PreserveSig]
void Release();
}

[ClassInterface( ClassInterfaceType.None )]
[Guid( "e5a054c6-8cf1-480c-b391-910e47cfe6ce" )]
public partial class myControl : UserControl, AxMyControl, IUnknown
{
private String mStr_UserText;


public String UserText
{
get { return mStr_UserText; }

set
{
mStr_UserText = value;

//Update the text box control value also.
txtUserText.Text = value;
}
}


public bool QueryInterface( string InterfaceName )
{
MessageBox.Show( "Interface Name is "+InterfaceName );
return true;
}


public void AddRef()
{ }


public void Release()
{ }

public myControl()
{
InitializeComponent();
}

}
}


the C# forums didn't know what it was, so I thought it might be a powerpoint
problem since more than one control gave the error
 
S

Steve Rindsberg

Afraid I can't help with either C (sharp, flat, medium, rare ...) or .Net controls.

I recall reading that the controls for PPT/VBA are different (different interface? not sure) from normal ActiveX controls.

I think maybe Chirag may have an answer for you. Heloooooooo Chirag ... you there? ;-)

Steve Rindsberg said:
Have you contacted the developer of the controls?
That'd be the best place to start.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================


Well, I am trying to develop my own ActiveX control for powerpoint, and I am getting the same error, specifically the "Cannot Access System Registry" one. So, technically I am one of the developers. First, I thought it was just my code, but then I realized other controls had the same problem. Here is my code that I used for a simple custom control:

I used c#.net

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using Microsoft.Win32;
using System.Runtime.InteropServices;
using System.Reflection;

namespace ActiveXDotNet
{

[InterfaceTypeAttribute( ComInterfaceType.InterfaceIsDual )]
[Guid( "4075f012-1f8c-4bd5-a2d6-c843ac9e16a1" )]
public interface AxMyControl
{
[DispId(1000)]
String UserText { set; get ; }
}

[InterfaceTypeAttribute( ComInterfaceType.InterfaceIsIUnknown )]
[ComImport, Guid( "dd598b26-ca0b-4c42-bcb7-60d00d2fe181" )]
public interface IUnknown
{
[PreserveSig]
bool QueryInterface( string InterfaceName );

[PreserveSig]
void AddRef();

[PreserveSig]
void Release();
}

[ClassInterface( ClassInterfaceType.None )]
[Guid( "e5a054c6-8cf1-480c-b391-910e47cfe6ce" )]
public partial class myControl : UserControl, AxMyControl, IUnknown
{
private String mStr_UserText;


public String UserText
{
get { return mStr_UserText; }

set
{
mStr_UserText = value;

//Update the text box control value also.
txtUserText.Text = value;
}
}

public bool QueryInterface( string InterfaceName )
{
MessageBox.Show( "Interface Name is "+InterfaceName );
return true;
}

public void AddRef()
{ }

public void Release()
{ }

public myControl()
{
InitializeComponent();
}

}
}

the C# forums didn't know what it was, so I thought it might be a powerpoint
problem since more than one control gave the error
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top