You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1.0 KiB

Issues

heap debug error

  • Symptom : Calling DLL function with std::string parameter / return value, causing heap debug error upon return
  • Cause: The caller DLL must compile using the same [Code Generation] - [Runtime Library] flag. eg: /MDd Multi-threaded Debug DLL
  • Remedy: Update the flag accordingly
  • Symptom : Compile Error C1189: #error : Building MFC application with /MD[d] (CRT dll version) requires MFC shared dll version. Please #define _AFXDLL or do not use /MD[d]
  • Cause : Default console project for Advance->Use of MFC is Use Standard Windows Libraries
  • Remedy: Switch setting to Use MFC in a Shared DLL

Compile error for string parameters

  • Symptom: Unable to match LPCSTR parameters / arguments
  • Cause: Advanced->Character Set Setting mismatch. Default VS2022 project is using Unicode Character set.
  • Remedy: Change to Multi-byte Character Set if original DLL is using MBCS Character Set

Database open fail on 64-bit (C#)

  • Symptom: