DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 12 Jul 2007 23:58:16 -0000,    posted on: microsoft.public.dotnet.framework.interop        back       

Thread Index
  1    jmzl666


(c#) ProgId vs AssemblyTitle in VB6   
Hi all, I'm making a component which will be called from .net and from
VB6, the problem that I'm facing is that in VB6 I cannot reference the
component using the ProgId, just the AssemblyTitle, Here some sample
code:
//in AssemblyInfo
[assembly: AssemblyTitle("Cnbv.Sait.Encripta.3011")]
[assembly: AssemblyDescription("CNBV Componente para cifrar y
descifrar para SEI.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("C.N.B.V.")]
[assembly: AssemblyProduct("Cnbv.Sait.Encripta.3011")]
[assembly: AssemblyCopyright("C.N.B.V.")]
[assembly: AssemblyTrademark("C.N.B.V.")]
[assembly: AssemblyCulture("")]

//in class
        [Guid("someguid")]
	[ProgId("CNBV_SAITENC_3011.AlgorithmSymmetric")]
	[ClassInterface(ClassInterfaceType.None)]
	[ComVisible(true)]
	public sealed class
AlgorithmSymmetric:IAlgorithmSymmetric,IDisposable{
/// code
}

// in interface
        [Guid("someguid")]
	[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
	[ComVisible(true)]
	public interface IAlgorithmSymmetric{
/// code
}


and in VB6 instead of using this

Dim x As CNBV_SAITENC_3011.AlgorithmSymmetric

I have to do this
Dim x As Cnbv_Sait_Encripta_3011.AlgorithmSymmetric

what is the problem with my code, or is something else that I'm
missing, thanks for your time.




Juan Zamudio
Date:Thu, 12 Jul 2007 23:58:16 -0000   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us