Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling VB DLL From REXX

Status
Not open for further replies.

mavest

Programmer
Feb 27, 2003
54
0
0
US
I wish to call a VB dll from rexx.

I've tried rxfuncadd, but seem to be missing something. The error message indicates that the dll was found, but not the function.

A friend suggested using the Dependency Walker to see what the VB dll had exposed, and sure enough the function was not exposed. This could be the problem, but I can't figure out how to get the VB to expose the function.

If anyone has hints on calling a VB dll from REXX, please help. Thanks!

-Mike
 
Have you tried using RXSUBCOM? I haven't done OOREXX for years, but I found this in the help files;
Code:
RXSUBCOM LOAD loads a subcommand handler dynamic-link library. 

>>-RXSUBCOM---LOAD---envname---+---------+---------------------><

                               '-dllname-'

 
 Parameters: 

 

envname 

The name of the subcommand handler. 


libname 

The name of the dynamic-link file containing the subcommand handler routine. 
 

 Return codes: 

 

0  The dynamic-link library was located and loaded successfully. 

50  The dynamic-link library was not located or could not be loaded. 

-1  A parameter is missing or incorrectly specified.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top