Hi,
Can I call a managed VB dll from Cobol Net Express? If so, how?
Here is a sample of how playet, a VB 6 dll, would be called by NE Cobol:
$SET OOCTRL( P)
identification division.
program-id. CALLPLAY.
environment division.
class-control.
playet is class "$OLE$playet.clsLocation".
configuration section.
special-names.
call-convention 8 is llnk.
data division.
working-storage section.
01 work-area.
05 playserver object reference.
linkage section.
01 crm-linkage.
05 crm-street-address1 pic x(30).
05 crm-CITY pic x(20).
05 crm-state pic x(02).
05 crm-zipcode pic x(05).
05 crm-Result pic x(01).
procedure division using reference crm-linkage.
mainline.
invoke playserver "inBounds" using crm-street-address1
crm-city
crm-state
crm-zipcode
crm-result.
*destroy an instance of playet, i.e. playserver
invoke playserver "Finalize" returning playserver.
finalization.
exit program.



