when i convert a .h file with h2cpy.exe the names are cut on 30 characters.
Is there a option to keep the long names from the h file?
in Visual Cobol 9.x h2cpy.exe is not here
i missed so many thinks in VC as Type Library, h2cpy, out directory, etc
Thanks for help
cg
Which Visual COBOL 9.0 version do you have ? Visual Cobol 9.0 for Visual Studio DOES contain h2cpy.exe and it is documented. See https://www.microfocus.com/documentation/visual-cobol/vc90/VS2022/BKPRPRH2CP.html
It is also documented in the Visual Studio for Eclipse documentation so should be in that version too.
See www.microfocus.com/.../BKPRPRH2CP.html
I have no idea what out directory is.
Yes, h2cpy will truncate names to thirty characters as per the COBOL language specification, and that appears to be the same regardless of whether you are using the Net Express or Visual COBOL version, but you should still be able to call APIs with longer names as the conversion defines a constant eg
my.h:
int this_is_a_very_long_function_name_indeed(int x);
my.cpy:
$set constant this-is-a-very-long-function-n "this_is_a_very_long_function_name_indeed"
entry this-is-a-very-long-function-n default-conv using
by value int
returning int
.
I don't see any way to retain the full name. If you have an example of something that does not work, can you give details ? If it is something you would need to get added to the product you will need to request an enhancement.
Which Visual COBOL 9.0 version do you have ? Visual Cobol 9.0 for Visual Studio DOES contain h2cpy.exe and it is documented. See https://www.microfocus.com/documentation/visual-cobol/vc90/VS2022/BKPRPRH2CP.html
It is also documented in the Visual Studio for Eclipse documentation so should be in that version too.
See www.microfocus.com/.../BKPRPRH2CP.html
I have no idea what out directory is.
Yes, h2cpy will truncate names to thirty characters as per the COBOL language specification, and that appears to be the same regardless of whether you are using the Net Express or Visual COBOL version, but you should still be able to call APIs with longer names as the conversion defines a constant eg
my.h:
int this_is_a_very_long_function_name_indeed(int x);
my.cpy:
$set constant this-is-a-very-long-function-n "this_is_a_very_long_function_name_indeed"
entry this-is-a-very-long-function-n default-conv using
by value int
returning int
.
I don't see any way to retain the full name. If you have an example of something that does not work, can you give details ? If it is something you would need to get added to the product you will need to request an enhancement.
Gael: i have vc9.0 for windows with vs2022 developer
i don't find a file h2cpy.exe on my installation
can i post a *.h file, so that you are able to convert this to a cobol cpy and then see the result (no long names)
cg
Which Visual COBOL 9.0 version do you have ? Visual Cobol 9.0 for Visual Studio DOES contain h2cpy.exe and it is documented. See https://www.microfocus.com/documentation/visual-cobol/vc90/VS2022/BKPRPRH2CP.html
It is also documented in the Visual Studio for Eclipse documentation so should be in that version too.
See www.microfocus.com/.../BKPRPRH2CP.html
I have no idea what out directory is.
Yes, h2cpy will truncate names to thirty characters as per the COBOL language specification, and that appears to be the same regardless of whether you are using the Net Express or Visual COBOL version, but you should still be able to call APIs with longer names as the conversion defines a constant eg
my.h:
int this_is_a_very_long_function_name_indeed(int x);
my.cpy:
$set constant this-is-a-very-long-function-n "this_is_a_very_long_function_name_indeed"
entry this-is-a-very-long-function-n default-conv using
by value int
returning int
.
I don't see any way to retain the full name. If you have an example of something that does not work, can you give details ? If it is something you would need to get added to the product you will need to request an enhancement.
ok, i have found the h2cpy.exe file on vc9
but by running h2cpy.exe cmbtll29.h i see following error:
FATAL ERROR -- Cannot access message file
what modules must be in the directory? h2cpy.exe, cblrtsm.dll and ???
ok, i have found the h2cpy.exe file on vc9
but by running h2cpy.exe cmbtll29.h i see following error:
FATAL ERROR -- Cannot access message file
what modules must be in the directory? h2cpy.exe, cblrtsm.dll and ???
If you run it from a Visual COBOL Command Prompt , either the 32-bit or 64-bit version, the environment will be set up and you should not see that error.
If you run it from a Visual COBOL Command Prompt , either the 32-bit or 64-bit version, the environment will be set up and you should not see that error.
sorry, but i had the error also in the visual cobol command prompt, either 32- or 64 bit
i had posted as code in the thread before the code of my file cmbtll29.h
can you try with this file?
cg
sorry, but i had the error also in the visual cobol command prompt, either 32- or 64 bit
i had posted as code in the thread before the code of my file cmbtll29.h
can you try with this file?
cg
I do not see the file cmbtll29.h attached anywhere in this post. Can you please upload it?
Thanks
I do not see the file cmbtll29.h attached anywhere in this post. Can you please upload it?
Thanks
how can i upload a file as zip? community.microfocus.com/.../cmbtL29h.zip
I tested with your .h file and Visual COBOL, and I get the same error that you are seeing. I have created a defect for development to take a look. I do not currently have a workaround for you but I will update this post when I get an update from development.
I tested with your .h file and Visual COBOL, and I get the same error that you are seeing. I have created a defect for development to take a look. I do not currently have a workaround for you but I will update this post when I get an update from development.
Chris, when you disable the line with tchar, it will give a Little result!