I'm new to using c#, but what I'm trying to do is create a library control
containing a form which in turn contains a Windows application that I have
defined in another library.
I'm able to do it if my application which I put in the form is a c++ dll
like so:
[DllImport ("C:\\MyApp.dll ")]
private extern static void RunMyApp(IntPtr handle);
private void InitializeCompo nent()
{
this.Name = "MyControl" ;
this.Size = new System.Drawing. Size(480, 640);
RunMyApp( this.Handle);
}
However, my requirements now dictate that the application I want to put in
this form is contained in a static c++ library. I have not been able to
import the static library into the control. This is literally the only
function that I need to call from my static library application. Is there a
way to do this?
containing a form which in turn contains a Windows application that I have
defined in another library.
I'm able to do it if my application which I put in the form is a c++ dll
like so:
[DllImport ("C:\\MyApp.dll ")]
private extern static void RunMyApp(IntPtr handle);
private void InitializeCompo nent()
{
this.Name = "MyControl" ;
this.Size = new System.Drawing. Size(480, 640);
RunMyApp( this.Handle);
}
However, my requirements now dictate that the application I want to put in
this form is contained in a static c++ library. I have not been able to
import the static library into the control. This is literally the only
function that I need to call from my static library application. Is there a
way to do this?
Comment