🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Callback, Dll, Thread and synchronization HELP!

#2506
From: Stefano Bonifazi
Date: Fri, 09 Feb 2007 07:59
21 lines
1926 bytes
Hi Mr Mulroy!
  Thank U for Ur reply.


> If that were my situation I would consider doing this in the DLL:
> 
> Register a windows message
> Create a message-only window
> Post that windows message to the window
> When that message is received, post it again

I can't register windows at all :( that code should be recompiled in 
other platforms :( And so only slight modification are allowed :( ... I 
can for example provide those functions EnterInThreadSafeCode, 
ExitInThreadSafeCode, allowing the developer who will port into linux 
the console to reinplement those 2 functions in a specific way for his 
OS... Basing all the stuff on windows messages would mean rebuilding all 
in a OS that works differently :(
Thank U anyway!
Regards,
Stefano B.
Technical Details
Message-ID: <45cc29e6@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!64.192.187.27!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <45ca2bba@newsgroups.borland.com> <45ca3549@newsgroups.borland.com> <45ca373c$1@newsgroups.borland.com> <45ca50ae$1@newsgroups.borland.com> <45cae882@newsgroups.borland.com> <45cb3c4d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7631859e1e5bf75d
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 09 Feb 2007 08:59:46 +0100
From: Stefano Bonifazi <stefboombastic@email.it>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Callback, Dll, Thread and synchronization HELP!
References: <45ca2bba@newsgroups.borland.com> <45ca3549@newsgroups.borland.com> <45ca373c$1@newsgroups.borland.com> <45ca50ae$1@newsgroups.borland.com> <45cae882@newsgroups.borland.com> <45cb3c4d@newsgroups.borland.com>
In-Reply-To: <45cb3c4d@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 80.104.235.19
Message-ID: <45cc29e6@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1171007974 80.104.235.19 (8 Feb 2007 23:59:34 -0800)
Lines: 21
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!wns14feed!worldnet.att.net!64.192.187.27!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail