somesogoood

Sunday, December 28, 2008

activex csharp c# .net web deploy

C + + commonly used in the Registerserver = Yes, a simple call to regsvr32 registration of C # to no avail. Therefore, we need to use the code to complete this work. Here, we resolve how to create a CAB file to the computer and layout. To this end, we first of all to create a COM interface with the c # application, the following simple example:

using System;
using System.Text;
using System.Windows.Forms;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace DownloadedApp
{
[Guid("D1E40FCE-E964-4dfd-B07E-BDE49D3519A1")]
interface IDownload
{
void InvokeMethod();
}
///
/// COM exposed .NET class.
///
[ClassInterface(ClassInterfaceType.AutoDual)]
[Guid("A47C22B1-3CC3-45bc-801E-3FCC4FFD3E45")]
public class Download : IDownload
{
///
/// COM exposed .NET Method.
///
public void InvokeMethod()
{
MessageBox.Show("Clientside component invoked successfully!!",
"Clientside component", MessageBoxButtons.OK,
MessageBoxIcon.Information);
}
}
}

Now create a MSI installation, and the COM application is set to output projects.

need continue

more in http://lilyhealth.blogspot.com and http://lilyworldmeta.blogspot.com

No comments: