The outbound ECRTP functions convert data from a flat file, ODBC database table, or XML/ HTML data to a standard EDI message format. Three API function calls are available for running outbound transaction maps:
extern "C" _declspec(dllimport) int WINAPI OUTBOUNDMAPPER(int argc, char **argv
extern "C" _declspec(dllimport) int WINAPI OUTBOUNDRunCmd(char *cmd);
extern "C" _declspec(dllimport) int WINAPI OUTRun(LPSTR, MEMIOSTRUCT **)
The parameters passed to the DLL for outbound processing have the same values as the switches used on the command line of the executable program for outbound maps—wrmo32.exe.
For OUTBOUNDMAPPER, the runtime parameters are passed in using an array. “argc” is the number of cells in the array “argv”. The first “argv[0]” cell contains the function name (OUTBOUNDMAPPER) and the remaining cells contain the runtime parameters in the required order shown below.
For OUTBOUNDRunCmd, the runtime parameters are passed in as a string, in the required order shown below. “cmd” is the string containing the runtime parameters.
For OUTRun, the runtime parameters are passed in as a string, in the required order shown below. “LPSTR” is the string containing the runtime parameters. “MEMIOSTRUCT” is a pointer to an array of MEMIOSTRUCT structures that are used to redirect memory I/O files.