Chris,
As far as I know, .NET 1.1 support was abandonned with the 1.0.8.0 release of DGDK.NET, so it probably won't work with any version of VS prior to 2005. If you're still using version 1.0.6, than everythinhg's ok.
The cone should be something like this:
class Program : CDGDK
{
static bool m_bKillMe = false;
[DllImport("user32.dll")]
private static extern bool ShowWindowAsync(int hWnd, int nCmdShow);
[STAThread]
static void Main()
{
frmMain theForm = new frmMain();
int hOldHwnd;
if (!InitializeDGDK(""))
return;
oDBFile.SetDir("../../../../Media");
hOldHwnd = oDBDisplay.GetHWND();
oDBDisplay.OverrideHWND(theForm.thePictureBox.Handle.ToInt32());
oDBDisplay.SetDisplayMode(800, 600, 32);
ShowWindowAsync(hOldHwnd, 0);
theForm.Show();
while (oDBP.LoopGDK )
{
oDBCore.Sync();
if (m_bKillMe)
break;
}
}
public static void KillMe()
{
m_bKillMe = true;
}
Of if you use the DarkEngine DGDK.NET's Wrapper that I Wrote, it should be just a single line: DarkDisplay.DisplayOnPictureBox(theForm.thePictureBox);
But I must remind you that DarkEngine supports only .NET 2.0, but I don't see why you shouldn't be using as VC# Express is free for life even for commercial usage.
I hope I could be of any help.
Best Regards,
Thiago