Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't create COM component
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01240285
Message ID:
01240315
Vues:
7
>I'm having trouble generating a COM component from C#. It looks like I'm doing everything right:
>
>- public class and public methods
>- using System.Runtime.InteropServices
>- Checked "Register for COM interop" in the project's Build configuration
>
>but I can't see the component in VFP.
>
>Any ideas on what's wrong?

Did you use the ClassInterface / ProgId attributes on your class?

ex.
[ClassInterface(ClassInterfaceType.AutoDual)]
[ProgId("MyProject.MyClass")]
public class SomeClass
{
   // Code here
}
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform