using Interoperability with Visual Basic.

janet_power

Member
Hi

We are currently having problems calling Custom OneWorld Business Functions using Interoperability with Visual Basic.


We are using OneWorld XE on a MS SQL Server Database and Windows NT Server.

We recently completed the JD Edwards Interoperability Course and are trying to create custom business functions to use with interoperability.
We have followed all the steps of running GenCom, creating the DLL and registering it, but our custom functions always fail. We have no problem calling existing OW Business Functions,
but when we try to call any custom functions they return an error in Visual Basic when we try to invoke the method.

The error we receive in VB is:

Run-time error '-2147467259 (8000040005)':
Method 'UpdateAlphaName' of object 'IJDEEmpQuickHire' failed



Here is our .cmd script to GENCOM our dll:

# This example creates a library whose name is derived from an input parameter (library)
# if one is specified. A default value is used otherwise

define library EmployeeQuickHire

login

library %library%
interface JDEEmpQuickHire
import N55EMP
import N0100041

build

logout


We added the Address Book Master function (N0100041) to verify that the Dll is working. We can call the Address Book Master function from our
custom Dll (EmployeeQuickHire), but the custom Functions Fail.


Is there something special that needs to be done to call a custom Business Function ? We have tested the business function within oneworld and it works fine.
For now all this function does is update the alpha name in the address book. We kept this function simple to make sure there is nothing wrong with the function itself,
just in the way its being called from VB.


Any Help would be appreciated


Thanks



Andrew

email: [email protected]
 
Andrew,

My guess is that there is something wrong in the 'C' code of your custom
BF, probably something to do with the way it's being exported. Can you
view the IJDEEmpQuickHire class and all its properties and methods in
the VB Object Browser? If not, then that is definitely the problem.

Good luck!

Mark Collins
XE/Oracle9/W2K
 
Back
Top