Patrick, I am not sure about an equivalent ComClass attribute, but have you considered using the REGASM utility to expose your .NET assembly as a COM object? This tool reads the assembly's metadata and adds the appropriate entries in the registry so that any COM client can use the object. You could then reference the COM object within your VB program...
Todd |---------+----------------------------> | | Patrick Burrows | | | <pburrows@STROMBE| | | RG.COM> | | | Sent by: dotnet | | | discussion | | | <[EMAIL PROTECTED]| | | EVELOP.COM> | | | | | | | | | 05/30/2002 04:56 | | | PM | | | Please respond to| | | dotnet discussion| | | | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------------------| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: [DOTNET] ComClass | >--------------------------------------------------------------------------------------------------------------------------| What's the C# equivalent of the VB <ComClass> attribute? Or, more to the point, how do I expose a class in my C# DLL so it can be called from a VB6 EXE? Patrick Burrows Well I sleep like a baby With the snakes and the bugs -------------------- Now Playing: flamenco collection storm - gipsy kings - salsa de noche (patcast) -------------------- You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.