Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to call a Delphi .dll from Realia COBOL 2

Status
Not open for further replies.

Goody21

Programmer
Dec 13, 2004
2
US
I have't worked with COBOL for a while. I don't want to spend too much time if the solution is not there.

Background:
I'm writing a .dll that needs to be called from our Delphi systems and our legacy COBOL system. I'm trying to avoid having to write two .dlls (on in COBOL, one in Delphi). We would like to just have the one in Delphi.

Ideally I would like to call a boolean Delphi function w/in the dll. I want the function to utilize TMemoryStream in its parms.

Any advice/questions/comments would be greatly appreciated!

Thanks.
 
And your COBOL compiler vendor is...?

(The good news is that I think you will be able to get by with just one DLL, but the details require an answer.)

Tom Morrison
 
Title says Realia!

Goody21,

have you tried anything so far?
Calling a Delphi DLL should be the samething as calling any other DLL as long as you use the standard calling conventions.


Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Good morning all! Rather than answer both responses individually, I'll do it here (maybe this is the norm, but I've never been in a user group before). I was able to call the Delphi dll from my REALIA test .exe. The next big question was whether I could use TMemoryStream as the passed parms in my called Delphi function. I was informed that since TMemoryStream is a specific class in Delphi & not a pointer, I would be unable to accomplish this. I'm just going to pass it a parm-set that I can layout in COBOL. Thanks for your input! Ryan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top