Hi,
I have the following class which I want to expose as COM object, but
regasm tells me, that no types were registered.
namespace SyynX
{
[Guid("4ADD0E9C-E7CE-42fd-A920-D3C4E6AF29E8")]
public interface ISVG
{
void Load(string xml);
void Save(string path);
};
[ProgId("SyynX.Gfx.2")]
[Guid("AC230A26-53D1-4b80-883F-C4D9AC33F03D")]
public class Gfx : ISVG
{
public Gfx() {...}
public void Load(string xml) {...}
public void Save(string path) {...}
}
}
The class and the interface are public, there is no ComVisible(false) in
my project. I also tried to set ComVisible(true) without success.
Obviously there is a default ctor without parameters and the assembly is
signed.
Could somebody give me a hint what might be going wrong?
regards,
Achim
Phil Wilson - 08 Oct 2005 01:32 GMT
Have you got any dependencies (references) that can't be loaded? When I try
a complete class library with code as below it regasms fine.
using System;
using System.Runtime.InteropServices;
namespace SyynX
{
[Guid("4ADD0E9C-E7CE-42fd-A920-D3C4E6AF29E8")]
public interface ISVG
{
void Load(string xml);
void Save(string path);
};
[ProgId("SyynX.Gfx.2")]
[Guid("AC230A26-53D1-4b80-883F-C4D9AC33F03D")]
public class Gfx : ISVG
{
public Gfx()
{}
public void Load(string xml)
{
string x = xml;
}
public void Save(string path)
{
string x = path;
}
}
}
1.1 framework.

Signature
Phil Wilson [MVP Windows Installer]
----
> Hi,
>
[quoted text clipped - 29 lines]
> regards,
> Achim
Achim Domma (SyynX Solutions GmbH) - 08 Oct 2005 13:33 GMT
> Have you got any dependencies (references) that can't be loaded? When I try
> a complete class library with code as below it regasms fine.
I realy messed up my dependencies with a very stupid error and your hint
brought me back to the right way. Thanks a lot!
Achim