I have a VB6 application, which referencing a COM visible .Net application, The .Net application is a windows form project which contains some forms.
The VB6 application calls a method from .Net application to show some forms and save data.
The question is: How can I make the .Net application to be deployed, auto updated using Click-once and still accessible from VB6? Because the .Net assembly should be registered after deployment using (RegAsm.exe)! and the assemblies should be next to the VB6 application exe file.
Here code snippet from VB6
Dim a As HISIntegration.HIS
Set a = New Rims_HISIntegration.HIS
a.Show
Here is .Net code:
[Guid("C79963CC-0284-4848-BAED-F24FC19433F9"), ClassInterface(ClassInterfaceType.AutoDual)]
public class HIS
{
public bool Show()
{
/// ...... some code.
return (frm.ShowDialog() == DialogResult.OK);
}
}