My solution has two projects.
Project 1 - winform (managed template)
Project 2 - wrapper class and native cobol (managed)
First project includes winforms calling wrapper class in second project. My wrapper class calls native cobol program. So i have only included SQL directives in second project.
With this approach my program works in machine with 'cobol server' or 'visual cobol' but doesn't work across network. It fails with "OdbcWrapper.Class1 exception'
I was instructed by Micro focus support team not to combine wrapper class which is manged code with native program in same project. So i did move my wrapper class to project 1 and created a new native project which includes only my native program with SQL directives. And i did add reference to project 2. But at run time my wrapper class fails to find native program in second project
"MicroFocus.COBOL.Program.COBOLProgramNotFound: 173 Called program file not found in drive/directory'