Hi
My task is pretty simple create a .net usercontrol and use it in a old visual studio 6 proejct.
I have createt the usercontrol (its just a user control with a label), I then followed this guide (http://support.microsoft.com/kb/828736) and it seems to work fine. But how can I display the usercontrol? Do I have to use CreateControl, and how should I do that?
The .net looks like tihs:
namespace dotnetcotrol {
public interface dotnetcontrol
{
void setText(string str);
}
public partial class dontnetcontrolClass : UserControl, dotnetcontrol
{
public dontnetcontrolClass()
{
InitializeComponent();
}
public void setText(string str)
{
label1.Text = str;
}
}
}
And the c++ code looks almost like the one in the ms example however my project is a a window mfc project.