I was able to call a 32bit dll from 16bit using the examples in pbdll 20
Is this still a safe technique?
On w95 it returns the correct value

Can we use this in a professional application?
------------------
[email protected]
DECLARE _ FUNCTION _ Declare32 Lib "call32" ( _ szFunc AS ASCIIZ,_ szLibrary AS ASCIIZ,_ szArgs AS ASCIIZ _ ) AS LONG GLOBAL gCall32Ids() AS LONG hCall32Lib = LoadLibrary("CALL32.DLL") IF ISFALSE hCall32Lib THEN Msgbox "LoadLibrary of CALL32.DLL failed" FUNCTION = 0 EXIT FUNCTION END IF gCall32Address = GetProcAddress(hCall32Lib,"Call32") REDIM gCall32Ids(32) gCall32Ids(2) = Declare32("NewDlgMsg","adp01","p") gCall32Ids(3) = Declare32("AdpTest2","adp01","i") gCall32Ids(4) = Declare32("FindUdt","adp01","ppp") gCall32Ids(5) = Declare32("FindEquate","adp01","ppp") gCall32Ids(6) = Declare32("FindDeclare","adp01","ppp") gCall32Ids(7) = Declare32("NewWmCommandMsg","adp01","p") gCall32Ids(8) = Declare32("NewDialogRc","dt","p") DECLARE _ FUNCTION _ NewDialogRc ( _ sztemp AS ASCIIZ, _ BYVAL Id AS LONG _ ) AS LONG CALL DWORD gCall32Address USING NewDialogRc(szTemp,gCall32Ids(8)) TO lRetVal
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment