🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: form inside a dll loaded by a console application

#2800
From: Remy Lebeau (TeamB)
Date: Wed, 27 Dec 2006 21:55
39 lines
2644 bytes
"Stefano Bonifazi" <stefboombastic@email.it> wrote in message
news:4592e225@newsgroups.borland.com...

> Well it seems this time I get into something impossible to do :(

Apparently so.

> Impossible the console application should continue its work in spite
> of what my form does ...

Then you are running out of options.

> No the console application has a loop that does other than processing
> windows messages.. low level stuff with high priority

Then that loop will have to handle messages as well.  Or at the very least,
have your DLL export a function to process any pending messages in the
calling thread, and then the console application's loop can call that single
function periodically.

> If I have to start coding all the windows in WinAPI the wonder of
> borland vanishes and I'd better use the MS VC++

When it comes to working with the API directly, VC++ does not gain you
anything that Borland does not already do.  You will still have the same
amount of work in your code, so you may as well stick with the Borland
compiler if that is what you are comfortable with.

> But if I create a window inside a thread spawned by the DLL, cannot
> those messages be received by the thread provided that window has its
> message queue?

Like I said earlier, messages for a window can only be received by the
thread that created the window.  A window is tied to a specific thread.  No
other thread can receive messages for that window.


Gambit
Technical Details
Message-ID: <4592ebe5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <458e4f48@newsgroups.borland.com> <45903d10$1@newsgroups.borland.com> <45919f15@newsgroups.borland.com> <4591c308$1@newsgroups.borland.com> <4592cf7c$1@newsgroups.borland.com> <4592dc17$1@newsgroups.borland.com> <4592e225@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3fa2091e9808a898
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <458e4f48@newsgroups.borland.com> <45903d10$1@newsgroups.borland.com> <45919f15@newsgroups.borland.com> <4591c308$1@newsgroups.borland.com> <4592cf7c$1@newsgroups.borland.com> <4592dc17$1@newsgroups.borland.com> <4592e225@newsgroups.borland.com>
Subject: Re: form inside a dll loaded by a console application
Date: Wed, 27 Dec 2006 13:55:52 -0800
Lines: 41
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <4592ebe5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1167256549 75.83.34.171 (27 Dec 2006 13:55:49 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail