Highlighted
New Member.
1060 views

Help - How to use pointers in visual cobol?

I am migrating the netexpress COBOL to Visual cobol with eclipse but few programs which use below pointers are not working when compiling in visual cobol dll. for example Netexpress Cobol has "SET  ADDRESS OF WS-COMM-AREA TO RCL-HCOMMAREA". I am trying to compile the same program in visual cobol with eclipse and generating the dll.

Does the above pointer logic works statement works in visual Cobol?

0 Likes
3 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Help - How to use pointers in visual cobol?

Hello Vinod,

Yes, I believe the same statement should work in Visual COBOL for Eclipse. Are you getting any errors or warnings at compile time? Also, are your COBOL programs in Eclipse built using the same bitness (32 or 64 bit) that they used in Net Express? Was the value RCL-HCOMMAREA returned from another program, and has that program perhaps been compiled to a different bitness?

Blair McDonald

0 Likes
Highlighted
New Member.

RE: Help - How to use pointers in visual cobol?

Thanks Blair for the response.
Compilation is working fine. Actually my existing project has many native COBOL programs which use pointers and windows API calls statement. I was told by microfocus technical support guy that the latest Visual cobol version is not capable of handling those programs. This will fail during runtime.
So just checking here if there is any possibility of this. Yes I used the same bitness.
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

RE: Help - How to use pointers in visual cobol?

If you are still compiling for native code and you are moving from NX to Visual COBOL Eclipse under Windows and not changing the bitness then there is no reason that this shouldn't work the same way that it did in NX.

If you are recompiling as 64-bit or as managed JVM code then you might have an issue.
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.