🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12151

Hosting Borland DLLs inside of .NET apps

#12151
From: Bruce Rhoades
Date: Tue, 23 Dec 2003 20:14
23 lines
2143 bytes
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: <3fe8a344$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!in.nntp.be!news-in-sterling.newsfeed.com!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,476618a297d592d5,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-23 12:32:25 PST
From: "Bruce Rhoades" <bruce.rhoades@gdsinc.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Hosting Borland DLLs inside of .NET apps
Date: Tue, 23 Dec 2003 15:14:17 -0500
Lines: 26
Organization: GDS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 66.200.122.38
Message-ID: <3fe8a344$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1072210756 66.200.122.38 (23 Dec 2003 12:19:16 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news-out1.nntp.be!propagator2-sterling!in.nntp.be!news-in-sterling.newsfeed.com!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail