Skip to main content

Problem:

Unable to call a Microsoft C from a COBOL program.  The call never went into the C function.

Resolution:

This was caused bythe C functon not being exported as an entry point in the DLL.  The simplest mechanism is to add the __declspec( dllexport ) declaration to before the C function.  This specifies that the function is to be made visible in the DLL.

Old KB# 7127