Article View: borland.public.cppbuilder.nativeapi
Article #2515Re: Callback, Dll, Thread and synchronization HELP!
From: Ed Mulroy
Date: Fri, 09 Feb 2007 16:28
Date: Fri, 09 Feb 2007 16:28
36 lines
2605 bytes
2605 bytes
If you have to run on such diverse multiple platforms as to not be able to have messaging then how can you use a DLL, threads or even consider if something is console mode? Almost any windowing operating system has messages and window procedures, although what they are called and the specifics of them vary. You are looking to do a platform-specific task and the solution to it will therefore be platform-specific. Figure out how to solve it under each of the target OS systems and conditionally compile for each. . Ed > Stefano Bonifazi wrote in message > news:45cc29e6@newsgroups.borland.com... > > 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:
<45cca126$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<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> <45cc29e6@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 From: "Ed Mulroy" <dont_email_me@bitbuc.ket> Newsgroups: borland.public.cppbuilder.nativeapi 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> <45cc29e6@newsgroups.borland.com> Subject: Re: Callback, Dll, Thread and synchronization HELP! Date: Fri, 9 Feb 2007 11:28:35 -0500 Lines: 38 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 66.57.117.102 Message-ID: <45cca126$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1171038502 66.57.117.102 (9 Feb 2007 08:28:22 -0800) X-Authenticated-User: edmulroy Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail