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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including DLL

Status
Not open for further replies.

amala

Programmer
Nov 26, 2002
1
IN
I have created a dll using VB. Now I have to test whether it works in AcuCobol. I'm new to AcuCobol and I am only aware of some COBOL basics. Could anyone send a sample program indicating how to include a dll, initialize the object member attributes of the classes in the dll and call functions from the Dll.
 
amala -

I don't have access to my doc right now, but IIRC, you need to generate a .def file that describes your object using AXDEFGEN(?)(I assume that's what's in your DLL based on your question.). Include the .def file in the SPECIAL-NAMES paragraph. Don't forget the extra period that's required at the end.

You then use the CREATE verb to create the object and the MODIFY verb to change object properties or invoke object methods. See the examples at:
If you need further help, I'll be happy to provide it when I'm at home where I have the compiler, docs, and actual examples I've used myself.

Glenn
Brainbench MVP for COBOL II
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top