I've had to go to a loadlibrary rather than declare in one of my programs because i have 2 dlls
with similar procedures (named the same) with same result but achieved through different means. To be specific, they are print programs 1 uses
dllprint for preview/print the other uses xprint/graphic for preview/print.
Im getting an error in my program compiled in pbdll6+ on the call dword line.
the error is
Error 516: .... default type id(?$....) or AS required PRNTJRNL
it points to PRNTJRNL after the USING
I've tried using prntjrnl in quotes, defining procname as string and using procname, but the error persists. Got to be something simple im missing.
with similar procedures (named the same) with same result but achieved through different means. To be specific, they are print programs 1 uses
dllprint for preview/print the other uses xprint/graphic for preview/print.
Im getting an error in my program compiled in pbdll6+ on the call dword line.
Code:
GLOBAL szLib AS ASCIIZ * 128 GLOBAL hLib AS DWORD GLOBAL sLibname AS STRING GLOBAL lAddress AS DWORD GLOBAL lResult2 AS LONG GLOBAL procname AS STRING ... ... (in a dialog callback i have) CASE %ID_JOURNAL 'print journal CLOSE savecoid$=coid$ xpt$="FJP" 'from Journal Posting ghInst = GetModuleHandle("wumenuw3.exe") ' IF ghInst THEN ' LOCAL szLib AS ASCIIZ * 128 ' LOCAL hLib AS DWORD ' LOCAL sLibname AS STRING ' LOCAL lAddress AS DWORD ' LOCAL lResult2 AS LONG ' LOCAL lProcname AS STRING ' lProcname="printjrnl" IF ghInst THEN sLibname="wurptxp.dll" szlib=slibname hLib=loadlibrary(szlib) lAddress = GetProcAddress(hLib, "prntjrnl") procname="prntjrnl" CALL DWORD lAddress USING prntjrnl (savecoid$,xpt$,1) TO lResult2 FreeLibrary hLib ELSE sLibname="wurpt1.dll" szlib=slibname hLib=loadlibrary(szlib) lAddress = GetProcAddress(hLib, "prntjrnl") CALL DWORD lAddress USING prntjrnl (savecoid$,xpt$,1) TO lResult2 FreeLibrary hLib END IF
Error 516: .... default type id(?$....) or AS required PRNTJRNL
it points to PRNTJRNL after the USING
I've tried using prntjrnl in quotes, defining procname as string and using procname, but the error persists. Got to be something simple im missing.
Comment