🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #2585

Re: Server Socket DLL calling external function

#2585
From: Paul
Date: Sun, 12 Mar 2006 13:35
22 lines
1848 bytes
Hi Colin,

I'm not an expert on DLLs, but I have just finished wrapping a BCB component 
into a DLL, to be used in VC++ and BCB.  It took me quiet some time to get 
it right.  The __stdcall is a good calling convention to use, and use 
standard types for parameters (I used ints and enums and it went horribly 
wrong, so changed them to ulong, char, etc).  You also have to make sure 
that the DLL releases memory it creates and vice versa.  Haven't tried 
callbacks though.

Paul.


"Colin B Maharaj" <noreply@myhost.com> wrote in message 
news:4414209d@newsgroups.borland.com...
> Hi all I was considering making a DLL with an Indy Server socket. The 
> thing is I want to call a function from the DLL that exists on the calling 
> application, whenever the OnExecute fires.
>
> Is it possible to do this in a DLL? Is this what they call callback?
>
> Any pointers will be appreciated. 
Technical Details
Message-ID: <4414238b@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.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
References: <4414209d@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,635d156d10eec29e
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Paul" <plmacca@clara.co.uk>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4414209d@newsgroups.borland.com>
Subject: Re: Server Socket DLL calling external function
Date: Sun, 12 Mar 2006 13:35:21 -0000
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 86.132.250.1
Message-ID: <4414238b@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1142170507 86.132.250.1 (12 Mar 2006 05:35:07 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news3.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