getting VS to create a CLSID for the COM component

A

Amadej

Hello everyone,

I have written a small COM component (for Smart Devices) using the
Visual Studio 2003 IDE. The problem is that when I build and deploy
the dll, VS doesn't create the CLSID for it in the device registery
but on my PC registery.

The code
--------------------------------
using System;
using System.Data;
using System.Runtime.InteropServices;
using System.Windows.Forms;

namespace SmartCOMServer1
{

[Guid("34BB6D08-4B54-4c98-98DF-30B19A224C51")]
public interface IManagedInterface
{
int PrintHi(string name);
}

[Guid("A05EB7AA-26C2-47ca-8761-E096B9EDA2CD")]
public class InterfaceImplementation : IManagedInterface
{
public int PrintHi(string name)
{
MessageBox.Show("WinCE hello, " + name);
return 33;
}

}
}
----------------------

Am I missing any directives or something perhaps? I can't use the dll
if it has no CLSID, or can I?

Thanks in advance,
Amadej.
 

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