Highlighted
greiner Honored Contributor.
Honored Contributor.
144 views

Visual Cobol 5.0 - Install and compiles problems

Jump to solution

How must we proceed to install Visual cobol 5.0 trial?

- Windows 10 x64 Version 1909 with all updates

- Visual Studio 2019 preview

- vcvs2019_50.exe first, then vsvs2019_pu02_242792.exe

When wanting to install vcbt_50.exe we become following message, 0x81f40001 Micro Focus Visual COBOL for Visual Studio 2019 5.0 must be uninstalled before continuing. 
Is this correct to deinstall VC 5.0

How must we proceed to install the vc_build_tools_dockerfiles_5.0_windows.zip?

By compiling i missed the btrieve object files used in Netexpress5.x (_btrv.obj) What file must be used in VC5.0?

Many Warnings comes by using microfocus dialog systems copy files as dslang.cpy, ds_call.cpy, pan2link.cpy, userctrl.cpy

C:\adm\copy\dslang.cpy (641,19-21) : warning COBCH1125 : Punctuation character not followed by a space.  Assume space.

C:\adm\copy\ds-call.cpy (45,60-66) : warning COBCH1168 : COMP-5 redefinition.

C:\adm\copy\pan2link.cpy (708,56-62) : warning COBCH1168 : COMP-5 redefinition.

a new directive must be used for sql: 

C:\adm\copy\sqldb.cpy (52,22-23) : warning COBES0100 : SQL(BEHAVIOR) not set, BEHAVIOR=OPTIMIZED used as default

COBCH1140 VALUE in FILE or LINKAGE SECTION - only used with INITIALIZE statement.

COBCH1111 Boundary violation. Processed as written.

COBCH1168 COMP-5 redefinition.

Who can help solving this problems or answer this question?

 

Thanks

 

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

Re: Visual Cobol 5.0 - Install and compiles problems

Jump to solution

For your other questions:

The separate _BTRV.obj file that was used in Net Express is no longer required. The BTRV and _BTRV entry points have been moved to the file handler MFFH.DLL. This is loaded automatically at run-time whenever the first COBOL OPEN statement is executed on a file. If you are not opening any files via OPEN but are using the CALL "BTRV" instead then you might have to load this .dll manually. You can do this by adding the directive $SET INITCALL"MFFH" to your program.

There are some new warning messages in Visual COBOL that might not have appeared when compiling under Net Express. You also might have been setting a different value for the WARNING directive under NX than you are setting under VC so that warnings that did not appear under NX, do appear under VC.

You can set the directive $SET NOWARNING to turn off all warnings or you can selectively turn off warnings using the CHANGE-MESSAGE directive.

Example:  $SET CHANGE-MESSAGE"CH1168 N"

View solution in original post

0 Likes
7 Replies
Micro Focus Expert
Micro Focus Expert

Re: Visual Cobol 5.0 - Install and compiles problems

Jump to solution

Hi.

To answer your installation issue.

Its not possible to have Micro Focus Visual COBOL for Visual Studio 2019 5.0 and Visual COBOL Built Tools installed on the same machine.

If you are planning on using the Docker installation then you just need to unzip the Docker files, vc_build_tools_dockerfiles_5.0_windows.zip, on your Docker Server machine.  Then run the bld.bat file found in the VCBuildTools sub directory.  This will take you through all the steps to setup VC Build Tools within a Docker container.  There is also a README file in this directory with all the details.

 

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Visual Cobol 5.0 - Install and compiles problems

Jump to solution

For your other questions:

The separate _BTRV.obj file that was used in Net Express is no longer required. The BTRV and _BTRV entry points have been moved to the file handler MFFH.DLL. This is loaded automatically at run-time whenever the first COBOL OPEN statement is executed on a file. If you are not opening any files via OPEN but are using the CALL "BTRV" instead then you might have to load this .dll manually. You can do this by adding the directive $SET INITCALL"MFFH" to your program.

There are some new warning messages in Visual COBOL that might not have appeared when compiling under Net Express. You also might have been setting a different value for the WARNING directive under NX than you are setting under VC so that warnings that did not appear under NX, do appear under VC.

You can set the directive $SET NOWARNING to turn off all warnings or you can selectively turn off warnings using the CHANGE-MESSAGE directive.

Example:  $SET CHANGE-MESSAGE"CH1168 N"

View solution in original post

0 Likes
greiner Honored Contributor.
Honored Contributor.

Re: Visual Cobol 5.0 - Install and compiles problems

Jump to solution
Thank you Chris for your explications.
the most warning Comes from Dialog System copy files as:
- ds-call.cpy
- dslang.cpy
- pan2link.cpy
- userctrl.cpy
because punctuations or comp-5 redefinitions.
Customer wanted from MicroFocus to Show a good examples with his own files to be used as copy Statements.
Are redefinitions from comp-Fields obsolete?

0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Visual Cobol 5.0 - Install and compiles problems

Jump to solution

It looks to me like the compiler is finding a different version of the DS copy files than the default versions provided by Visual COBOL which are in the C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib folder.

Your error messages indicate that they are in C:\adm\copy\ds-call.cpy

Are these the older NX versions?

I am not sure if these differ at all but you might try pointing to the default copyfile path for VC instead.

This is only a warning and does not indicate that the construct is obsolete at all. The warning is to inform you that redefining comp-5 fields can cause portability problems because of the different byte ordering between big-endian and little-endian systems. You can turn this off if this is not an issue for you.

0 Likes
greiner Honored Contributor.
Honored Contributor.

Re: Visual Cobol 5.0 - Install and compiles problems

Jump to solution
Chris,
i have remove all mf-copy files from my Project and use the %copy% for the netexpress 5 or visual Cobol copy-files with the same result.
This are all warnings:
COBCH1111 Boundary Violation. Processed as written.
COBCH1122 Period must be followed by a space
COBCH1125 Punctuation character not followed by a space. Assume space.
COBCH1140 VALUE in FILE or LINKAGE SECTION - only used with initiliaze Statement.
COBCH1168 COMP-5 redefinition.
COBCH1169 Reference modification on a COMP-5 item.
COBCH1236 Duplicate, equivalent Definition of Level 78
COBES0100 SQL(BEHAVIOR) not set, BEHAVIOR=OPTIMIZED used as Default

One error:
unresolved external symbol _Shell_NotifyIcon@8
What must i link or call? shell32.lib oder shell32.dll?

Thanks for help or only for your Information!



0 Likes
greiner Honored Contributor.
Honored Contributor.

Re: Visual Cobol 5.0 - Install and compiles problems

Jump to solution
Here the original copy files and Messages (only one for one file)
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\guicl\gadget.ins (227,39-51) : warning COBCH1168 : COMP-5 redefinition.
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\guicl\richedit.ins (227,39-51) : warning COBCH1168 : COMP-5 redefinition.
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\guicl\statbar.ins (227,39-51) : warning COBCH1168 : COMP-5 redefinition.
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\guicl\treeitem.ins (227,39-51) : warning COBCH1168 : COMP-5 redefinition.
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\guicl\treeitem.ins (228,37-43) : warning COBCH1168 : COMP-5 redefinition.
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\guicl\window.ins (227,39-51) : warning COBCH1168 : COMP-5 redefinition.
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\windows.cpy (1903,60-61) : warning COBCH1122 : Period must be followed by a space
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\userctrl.cpy (10,36-47) : warning COBCH1168 : COMP-5 redefinition.
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\pan2link.cpy (424,54-60) : warning COBCH1168 : COMP-5 redefinition.
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\ds-call.cpy (37,60-66) : warning COBCH1168 : COMP-5 redefinition.
C:\Program Files (x86)\Micro Focus\Visual COBOL\cpylib\dslang.cpy (120,20-22) : warning COBCH1125 : Punctuation character not followed by a space. Assume space.


0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Visual Cobol 5.0 - Install and compiles problems

Jump to solution

If you are receiving an unresolved external on the link then that means that your program is making a call like the following: 

call winapi "Shell_NotifyIconA" using ...

and in special-names you are assigning winapi to a value of 74 which means that it uses the static winapi call-convention. This means you need to add shell32.lib to the link.

If you were assigning winapi to the value 66 then this would instead be using the dynamic winapi call-convention which means you would need to load shell32.dll at run-time instead of linking.

01 pp procedure-pointer.

    set pp to entry "shell32"

All of the warnings that you show are valid and are informational only. If you wish to get rid of them then you either need to change the program code or simply use one of the following directives:
NOWARNING
or
CHANGE-MESSAGE"CH1168 N CH1122 N CH1125 N"
You can add as many warnings to this directive as you would like.

 

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.