COBOL to VB Interface Programs

COBOL to VB Interface Programs

Background

In order for a Micro Focus COBOL program to interface to a .NET program, two intervening programs must be written.  For example, if a COBOL program wants to call a VB program named ELPDFGEN, it must instead call an unmanaged C++ program (ELPDFGEI), which calls a managed C++ program (ELPDFGEW), which finally calls ELPDFGEN.

For testing, you can build a debug version of these programs which will run on any box that has Visual Studio installed.

For Release, you must build a release version that does not rely on debug .DLLs from Visual Studio.

Building Release Code

Change the output to Release.  For both the I and W versions of the program (ELPDFGEI and ELPDFGEW):
  • Right click on the project and select Properties.
  • In the C++ section of Configuration Properties, click on All Options.
  • Select Runtime Library and use the dropdown to select Multi-threaded DLL (/MD).
  • Click Apply and OK.



Now, when you build the project, it will not have a dependency on the Visual Studio debug Runtime .DLLs.

JEG


    • Related Articles

    • What Are "COBOL Only" or "User Defined" Event Actions? Can We Use Them in Any Way?

      Q - When adding an event, there are two choices for "Action Type" that I can't find an explanation for in any documentation: COBOL Only User Defined See sample screen below: Can we use them in any way? A - "COBOL only" means it will call a COBOL ...
    • Debugging COBOL Code in Elliott 8.6

      Preparation This documentation is intended for Netcellent or Netcellent's developers. It use Netcellent's own environment as an example of how to perform certain tasks. Start by opening a command prompt and typing COB86. This will set the necessary ...
    • Presales Interface Setup

      Release Date: 3/1/24 Revised: 3/21/24 Version: 8.6 and Above Alpha Document Number Support If using alpha document numbers, set up alpha document number support for the Presales Generated Order. This option is available from System Utilities-> Global ...
    • Feature - Online Credit Card Interface Level 3 Support

      Release Date: 4/21/23 Revised Date: 12/20/23 Version: 8.5 and Above Introduction Elliott currently supports credit card level 2 transactions. This means, in addition of passing the credit card number, expiration number info when charge a credit card, ...
    • Change - CSV Import Programs to Support File Names Longer Than 20 Characters

      Release date: 5/5/2021 Version 8.5 & Up There were many Elliott CSV Import programs which had a limitation that the maximum file name could not be greater than 20 characters. See the following KB article: ...