Article View: borland.public.cppbuilder.nativeapi
Article #12171Re: Hosting Borland DLLs inside of .NET apps
From: Bruce Rhoades
Date: Wed, 24 Dec 2003 15:38
Date: Wed, 24 Dec 2003 15:38
32 lines
2240 bytes
2240 bytes
I have reposted this under ms_compatibility. "Bruce Rhoades" <bruce.rhoades@gdsinc.com> wrote in message news:3fe8a344$1@newsgroups.borland.com... > I am trying to solve the problem below and was wondering if someone could > help me out, as I am trying to "host" DLLs created with Borland C++ Builder > inside of a C#.NET exe: > > I created a .NET main form that only has a button on it. The button's > onclick handler simply makes a call into a Borland DLL exported function > that creates a modeless dialog box. Upon pressing the button, the dialog is > created but tab key navigation does not work. > > Note that if I use a similar scenario, where I create the modeless dialog > box from an MFC DLL and create it with the same .NET "host" the same thing > happens. > > Microsoft's fix to this is to filter the messages for the modeless dialog > with the WinAPI function, IsDialogMessage() at the application level. This > works fine for the MFC DLL, but not for the Borland Dll. Using this method > results in the tab key navigation going in the wrong order. > > Is there a way I can get this to work? I imagine BC++ has enhanced > functionality for these keyboard events that I need to invoke somehow. Any > comments/code samples are appreciated. > > - Bruce R > > >
Technical Details
Message-ID:
<3fe9b311$3@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fe8a344$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,476618a297d592d5 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-12-24 07:39:52 PST From: "Bruce Rhoades" <bruce.rhoades@gdsinc.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fe8a344$1@newsgroups.borland.com> Subject: Re: Hosting Borland DLLs inside of .NET apps Date: Wed, 24 Dec 2003 10:38:03 -0500 Lines: 34 Organization: GDS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 66.200.122.33 Message-ID: <3fe9b311$3@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1072280337 66.200.122.33 (24 Dec 2003 07:38:57 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail