Re: Windows Forms app in Win32



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



"S Clough" <sccNOSPAM@xxxxxxxxxxxxxx> wrote in message news:%23OD3McGIIHA.4592@xxxxxxxxxxxxxxxxxxxxxxx
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




.



Relevant Pages

  • Re: Preventing pasting in a TEdit
    ... Yet you are writing your code with mindset, ignoring the benefits of the ... >>avoids having to go anywhere near the windows procedure for the control. ... >And, for many things, there has always been a better way THAN using the Delphi ...
    (comp.lang.pascal.delphi.misc)
  • Re: Windows Forms app in Win32
    ... "with the exception of Microsoft Internet Explorer & MFC, Windows Form ... are not supported hosts for Windows Forms control. ... has a complicated piece of software written in Delphi 5. ... and delphi 2007 doesn't support windows forms. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Windows Forms app in Win32
    ... "with the exception of Microsoft Internet Explorer & MFC, Windows Form ... controls are not supported in applications designed to host ActiveX control. ... complicated piece of software written in Delphi 5. ... and delphi 2007 doesn't support windows forms. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: My story with registrations
    ... With Delphi, there's more money spent, ... I use a corporation based Windows which doesn't needs to be activated. ... in the case that it does, it will suffer the same faith than Delphi. ... send a picture of the user using the software just to control that the ...
    (borland.public.delphi.non-technical)
  • Windows Forms Control hosted on a WebForm?
    ... tag). ... But IS IT possible to host a Windows Forms control on an ASP.NET Web Form? ...
    (microsoft.public.dotnet.framework.windowsforms)