Home > Software engineering >  A machine VBA call external DLL will crash
A machine VBA call external DLL will crash

Time:10-01

Two machines are 64 + 32 bit office, doing a DLL is 32-bit, run on a machine without any problems, but another machine, as long as the first time used DLL function, crash, phenomenon of "Microsoft Excel to stop working," tried to reinstall Excel, still not solve the problem, could you tell me what could be the cause?

The calling code should be no problem, after all, another computer can run perfect, roughly as follows:

ChDrive (ThisWorkbook Path)
ChDir (ThisWorkbook. Path)
A. d. Private Declare Sub GetEdition Lib "ll" (ByVal Result As String)

GetEdition (Ret)

CodePudding user response:

DLL and may call the other DLLS or API, etc., so the key question is probably your inside the DLL call dongdong has conflict with the second machine or not compatible...

CodePudding user response:

Should be the problem of DLL!
Your DLL by yourself, or provided by the "third party"?

CodePudding user response:

Use Microsoft Visual Studio tools Depends open the DLL, and see it depend on what system files, and whether these files on the machine are present,
  •  Tags:  
  • VBA
  • Related