Windows Forms app in Win32

  • Thread starter Thread starter S Clough
  • Start date Start date
S

S Clough

The help page
ms-help://MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.VisualStudio.V80.en/dv_fxmancli/html/0a26d99d-8135-4895-8760-c9a2b5f67f14.htm
states that:

"with the exception of Microsoft Internet Explorer & MFC, Windows Form
controls are not supported in applications designed to host ActiveX control.
Other applications and dvelopment tools that are capable of hosting ActiveX
controls, including the ActiveX test containers from versions of Visual
Studio that are earlier than Visual Stueio .NET 2003, are not supported
hosts for Windows Forms control. These constraints also apply to the use of
Windows Forms controls through COM interop. The use of a Widows Forms
control through a COM callable wrapper is supported only in IE."

Alas I discovered this too late, and now I have a problem. My company has a
complicated piece of software written in Delphi 5. Part of this is a
display engine, which needed to be updated, as it's being given new data.
Enter me, and I write a display engine in Visual Studio 2005, C#.NET, with
OpenGL. I've written it as a dll, and display it in a test harness, also in
C#.NET, works fine as you would expect.

I now need to get my dll, the basis of which is a Windows Forms Control, to
display in the Delphi app, but I'm having no luck, and have been hitting my
head against brick walls for weeks and weeks. I've made it into a COM
assembly, but it's just no good as windows forms aren't supported through
this.

I've tried downloading the trial versions of Delphi 2006 & 2007 to use a
intermediaries, but Delphi 2006 uses the framework 1.1 and my app is written
in 2.0, and delphi 2007 doesn't support windows forms.

I've tried asking the Delphi newgroups but no luck, so I've come here. Does
anyone know a way of getting my windows forms control to appear in a win32
application?

Thanks in advance,
S Clough
 
hi,
sounds like you are in a pickle alright.
could you host internet explorer inside your Win32 app and then use that in
turn to host your winforms code?

tim
 
I haven't looked into that option as I just assumed the functionality would
be restricted, but maybe it's worth me checking out.
 
Back
Top