Hi Khosi,
Need help!!!!!!!!!!!!!!!
We have a payroll vertex configured on AS/400 and we keep getting an Error "Load Library of VPRT Failed" when we run pre payroll. WHat is causing this problem? Here is the Business function code for B0700058. Any idea?Why did they hardcode the library name as "LIBVPRT"?
/* SAR 2545039 - begin */
sprintf (szCmd, "ADDLIBLE LIB(%s) POSITION(*BEFORE %s)",
dsD0700057.szPayRollPassword, dsD0700057.szPayRollUserID);
system (szCmd);
if (system(szCmd) != 0)
{
sprintf (szCmd, "ADDLIBLE LIB(%s) POSITION(*LAST)", dsD0700057.szPayRollPassword);
system (szCmd);
}
strncpy (szLibName, "LIBVPRT", sizeof(szLibName));
/* SAR 2545039 - end */
#endif
/*****************************\
* Load the library Vprt.dll *
\*****************************/
PayrollDLLInst = LoadLibrary (szLibName);
/* Error handling for problem in loading library */
if(PayrollDLLInst == NULL)
{
/* SAR 2641240 - begin */
jdeErrorSet(lpBhvrCom, lpVoid, (ID)0, "108E", (LPVOID)NULL);
lpDS->cVertexLibraryFailedFlag = '1';
jdeWriteLog ("B0700058", 0, "B0700058: Load library of Vprt failed");
/* SAR 2641240 - end */
Thanks
sudhakar