🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.pascal.borland
Article #2

Calling ObjPascal Callback Routines from C++ DLL

#2
From: Bob White
Date: Tue, 29 Aug 1995 20:01
17 lines
1336 bytes
I am trying to pass a callback for a Pascal (Delphi) procedure to a DLL written in 
C++ and execute the callback from the DLL.  I can't seem to keep Windows stable 
enough to track things down with TDW and I can't get a valid return value from 
MakeProcInstance for any pascal procedures.  And Delphi (as far as I can tell) does 
not allow you to export functions from within programs, only DLLs.

I've read all the FAQs I could find and reviewed all the on-line tech journals I've 
stumbled across, but no one seems to have addressed this issue.  The time of 
desperation is near...

Does anyone have an example of such a callback.  Prototypes and code examples for 
both ends would be a great help... actually at this point, any inforation would be a 
great help.

Thanks in advance.

Bob
Technical Details
Message-ID: <41vrlt$139f@library.erc.clarkson.edu>
Path: arc1-ca.pugleaf.net!library.erc.clarkson.edu!news

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!library.erc.clarkson.edu!news
From: Bob White <bob@murkworks.com>
Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.delphi.misc,comp.lang.pascal.misc,comp.lang.c++
Subject: Calling ObjPascal Callback Routines from C++ DLL
Date: 29 Aug 1995 20:01:01 GMT
Organization: MurkWorks, Inc.
Message-ID: <41vrlt$139f@library.erc.clarkson.edu>
NNTP-Posting-Host: 128.153.43.27
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Mailer: Mozilla 1.1PE (Windows; I; 16bit)