Hi there,
I have the below VBA codes and need to know how do I implement the code in .NET?
Option Compare Database
Declare Sub Process Lib "Process.dll" (ByRef sInt As Integer, ByRef sString As MemInfo)
Type MemInfo
sString As String * 100
End Type
Public Sub test()
Dim sSize As...
hey mate.. sorry just giving you the updates.. the dllimport statement from ASP.NET below should be passing byref for string.
'Web service cobol dll
<DllImport("TRIAL.DLL", EntryPoint:="TRIAL", _
SetLastError:=True, CharSet:=CharSet.Unicode, _
ExactSpelling:=True, _...
ok... don't worry about the "netcobol for .net".. my company is using microfocus netexpress 3.1 anyway so it won't work with class system.string.
I was testing using netcobol for the testing purpose only.
back to your questions:
1. What a string you try to pass to COBOL (ascii, unicode,...)...
OK, here is my cobol code:
-----------------------------------------
IDENTIFICATION DIVISION.
PROGRAM-ID. TRIAL.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
REPOSITORY.
CLASS SYS-STRING AS "System.String".
001000 DATA DIVISION...
hi there,
I'm trying to call a cobol dll from .Net application but when the dll returns the string value, it returns the extended ascii characters.
It is working fine if i'm passing the integer value.
please help!!!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.