Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
fp_clees Absent Member.
Absent Member.
1023 views

Windows Messages and Callback Routines

Jump to solution

We have a report generator integrated into our COBOL application (List & Label of Combit) via a DLL. This works smoothly for years.

Now we want to realize a sequence, where the report generator send news about "Windows Messages" back to us, so that we can initiate new actions in COBOL.

Can I noticed this news about a EVENT Procedure at the window? Must this window be "modeless" and the DLL called as "thread"?

Or must I stand on a ACCEPT in COBOL (ACCEPT ... ALLOWING MESSAGES ...)?

Alternatively, you can also use callback routines for the report generator. What is it and does it work with COBOL?

Unfortunately there are no COBOL users in the forum of the report generator, who want to do so much.


Regards
Frank-Peter Clees

0 Likes
1 Solution

Accepted Solutions
DougP Outstanding Contributor.
Outstanding Contributor.

RE: Windows Messages and Callback Routines

Jump to solution

There is no built-in mechanism for an ACUCOBOL-GT program to provide callback functions like this. It is possible that you could write your own C function that controls this, and then which calls the COBOL function to run COBOL code.

View solution in original post

0 Likes
2 Replies
DougP Outstanding Contributor.
Outstanding Contributor.

RE: Windows Messages and Callback Routines

Jump to solution

There is no built-in mechanism for an ACUCOBOL-GT program to provide callback functions like this. It is possible that you could write your own C function that controls this, and then which calls the COBOL function to run COBOL code.

View solution in original post

0 Likes
fp_clees Absent Member.
Absent Member.

RE: Windows Messages and Callback Routines

Jump to solution

Thank you "DougP".

I will do so.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.