On Mac when i try to open a document from a database it givesc me "Error in loading DLL" Please note that is not on the mail database. I have some script on the "Declaration" Object of the form that the document i try to open is made with.

  • Does the document have embedded objects in it? Or customised database? – Simon O'Doherty Oct 24 '13 at 13:32

Most probably the developer used some Windows- specific DLL- functions in this application. The code in the Declaration- section then looks similar to this:

Declare Sub tapiRequestMakeCall Lib "TAPI32" (Byval lpszDestAddress$,Byval lpszAppName$, 
  Byval lpszCalledParty$, Byval lpszComment$)

Please contact the developer of the application to either

a) remove the Windows- specific code

b) give you a version that is compatible with MAC

  • the code is this :Declare Sub keybd_event Lib "user32" (Byval bVk As Integer, Byval bScan As Integer, Byval dwflags As Long, Byval dwextrainfo As Long) Const VK_F6 = &H75 Const KEYEVENTF_KEYUP = &H2 – MihaiRO Oct 24 '13 at 14:23
  • 2
    The developer uses the user32.dll to Emulate Key- presses... This is only working on Windows... That is the reason for your error. – Torsten Link Oct 24 '13 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.