Skip to main content
deleted 1 character in body
Source Link
Ivan Silkin
  • 445
  • 1
  • 10
  • 19

If somebody experienced this error in 2022 or later, use VisualStudio 2010 to compile DLLImport and P/Invoke operations, the future versions (may be except for Visual Studio 2012) doesn'tdo not allow to load managed code from Delphi in C# application that target x64 machiene system from an unmanaged x86 DLL library. Use .Net Framework 4.0 instead of .Net Framework 4.8 or later, also avoid using .Net Core, Standard and .Net when dealing with / exporting from RAD Studio and Delphi compilers.

If somebody experienced this error in 2022 or later, use VisualStudio 2010 to compile DLLImport and P/Invoke operations, the future versions (may be except for Visual Studio 2012) doesn't allow to load managed code from Delphi in C# application that target x64 machiene system from an unmanaged x86 DLL library. Use .Net Framework 4.0 instead of .Net Framework 4.8 or later, also avoid using .Net Core, Standard and .Net when dealing with / exporting from RAD Studio and Delphi compilers.

If somebody experienced this error in 2022 or later, use VisualStudio 2010 to compile DLLImport and P/Invoke operations, the future versions (may be except for Visual Studio 2012) do not allow to load managed code from Delphi in C# application that target x64 machiene system from an unmanaged x86 DLL library. Use .Net Framework 4.0 instead of .Net Framework 4.8 or later, also avoid using .Net Core, Standard and .Net when dealing with / exporting from RAD Studio and Delphi compilers.

Source Link
Ivan Silkin
  • 445
  • 1
  • 10
  • 19

If somebody experienced this error in 2022 or later, use VisualStudio 2010 to compile DLLImport and P/Invoke operations, the future versions (may be except for Visual Studio 2012) doesn't allow to load managed code from Delphi in C# application that target x64 machiene system from an unmanaged x86 DLL library. Use .Net Framework 4.0 instead of .Net Framework 4.8 or later, also avoid using .Net Core, Standard and .Net when dealing with / exporting from RAD Studio and Delphi compilers.