>01 RRINT. >05 RRINT-CONTROL. >10 RRINT-VERS PIC X(04). >10 RRINT-FILE_DIR PIC X(80). >... > >05 RRINT-INPARAMS. >10 RRINT-RT_KZ PIC X(01). >10 RRINT-WKZ PIC 9(03). >... > >05 RRINT-OUTPARAMS. >10 RRINT-RKL_HAFT PIC X(03). >... > >10 RRINT-RKL_GEBRL_TAB. > 20 RRINT-GEBIETSREFORML-ITEM OCCURS 30. > 25 RRINT-RKL_GEBRL_PLZ PIC 9(05). >... >>
>Declare Function COBOLFUNCTION Lib "cobol.DLL" (ByVal VERS As String, ByVal FILE_DIR As String, ByVal RT_KZ As String, ByVal WKZ As String,ByRef RKL_HAFT As String, ByRef RKL_GEBRL_PLZ As String) > >Dim VERS As String * 4 >Dim FILE_DIR As String * 80 >Dim RT_KZ As String * 1 >... >>Now everytime I try to call the dll (with Call COBOLFUNCTION(params...)) I encounter a memory violation and the program closes.
"If ye love wealth better than liberty, the tranquility of servitude better than the animated contest of freedom, go home from us in peace. We ask not your counsel or arms. Crouch down and lick the hands which feed you. May your chains set lightly upon you, and may posterity forget that ye were our countrymen."
~Samuel Adams