dll

Call specific C++ DLL from Fortran

不问归期 提交于 2021-01-24 11:09:58
问题 I received a DLL made in C++, and I'm building a Fortran program to call the C++ DLL. My compiler (gfortran) shows no warnings, but it crashes during runtime with the following description: forrtl: severe (157): Program Exception - access violation Image PC Routine Line Source MainDLL_v10.dll 0B7A6B01 Unknown Unknown Unknown MainDLL_v10.dll 0B7A1BEF Unknown Unknown Unknown ... I guess something is wrong with my call arguments. The C++ DLL includes the following: #include <DllClasses.h> ...

Call specific C++ DLL from Fortran

懵懂的女人 提交于 2021-01-24 11:06:21
问题 I received a DLL made in C++, and I'm building a Fortran program to call the C++ DLL. My compiler (gfortran) shows no warnings, but it crashes during runtime with the following description: forrtl: severe (157): Program Exception - access violation Image PC Routine Line Source MainDLL_v10.dll 0B7A6B01 Unknown Unknown Unknown MainDLL_v10.dll 0B7A1BEF Unknown Unknown Unknown ... I guess something is wrong with my call arguments. The C++ DLL includes the following: #include <DllClasses.h> ...

DLL load failed: %1 is not a valid Win32 application - Appcelerator

a 夏天 提交于 2021-01-23 04:50:47
问题 When I try to run an app in Appcelerator (3.1.x) on the built-in Android emulator I'm getting a Python error like this: Traceback (most recent call last): File "C:\Users\Donny\AppData\Roaming\Titanium\mobilesdk\win32\3.1.3.GA\android\fastdev.py", line 10, in <module> import urllib, threading File "C:\csvn\Python25\lib\urllib.py", line 26, in <module> import socket File "C:\csvn\Python25\lib\socket.py", line 47, in <module> import _socket ImportError: DLL load failed: %1 is not a valid Win32

DLL load failed: %1 is not a valid Win32 application - Appcelerator

拟墨画扇 提交于 2021-01-23 04:49:37
问题 When I try to run an app in Appcelerator (3.1.x) on the built-in Android emulator I'm getting a Python error like this: Traceback (most recent call last): File "C:\Users\Donny\AppData\Roaming\Titanium\mobilesdk\win32\3.1.3.GA\android\fastdev.py", line 10, in <module> import urllib, threading File "C:\csvn\Python25\lib\urllib.py", line 26, in <module> import socket File "C:\csvn\Python25\lib\socket.py", line 47, in <module> import _socket ImportError: DLL load failed: %1 is not a valid Win32

How to pass function pointer from C# to a C++ Dll?

杀马特。学长 韩版系。学妹 提交于 2021-01-21 07:59:44
问题 The function defined in C++ dll is: static double (*Func1)(double); EXTERN_C __declspec(dllexport) __stdcall double TestDelegate(double (*fun)(double)) { Func1 = fun; return Func1(25.0); } void My_Real_purpose() { SomeClass a; a.SetFunction(Func1);//Define behaviour of a by C# in runtime a.DoSomething();//Even I want it runs in another thread! } And I tried to call it in C# like this: class A { [DllImport("DllName.dll")] public extern static double TestDelegate(IntPtr f); public delegate

How to pass function pointer from C# to a C++ Dll?

a 夏天 提交于 2021-01-21 07:58:25
问题 The function defined in C++ dll is: static double (*Func1)(double); EXTERN_C __declspec(dllexport) __stdcall double TestDelegate(double (*fun)(double)) { Func1 = fun; return Func1(25.0); } void My_Real_purpose() { SomeClass a; a.SetFunction(Func1);//Define behaviour of a by C# in runtime a.DoSomething();//Even I want it runs in another thread! } And I tried to call it in C# like this: class A { [DllImport("DllName.dll")] public extern static double TestDelegate(IntPtr f); public delegate

DLL hell with SQLite

冷暖自知 提交于 2021-01-21 06:22:55
问题 Some of our users are getting an issue with the version of sqlite.interop.dll that is being loaded at runtime, and it's a real head scratcher. Background: A WPF application built for AnyCPU, deployed with SQlite .NET and sqlite.interop.dll version 1.0.89. We deploy both x86 and x64 dlls and employ the delay loading included with SQLite. This has been fine until recently, when we started getting a few support issues from users that had - typically - recently purchased new Dell machines. It

DLL hell with SQLite

ⅰ亾dé卋堺 提交于 2021-01-21 06:22:22
问题 Some of our users are getting an issue with the version of sqlite.interop.dll that is being loaded at runtime, and it's a real head scratcher. Background: A WPF application built for AnyCPU, deployed with SQlite .NET and sqlite.interop.dll version 1.0.89. We deploy both x86 and x64 dlls and employ the delay loading included with SQLite. This has been fine until recently, when we started getting a few support issues from users that had - typically - recently purchased new Dell machines. It

Unable to load DLL 'SqlServerSpatial140.dll': The specified module could not be found

给你一囗甜甜゛ 提交于 2021-01-20 23:41:31
问题 This all new to me, so bear with me... I'm working on a Visual Studio project; it's a web service that returns some data. I've just tried to make a particular call to the web server on my local machine (IIS) and I'm getting this error: Unable to load DLL 'SqlServerSpatial140.dll': The specified module could not be found Before anyone says it - yes, obviously I am missing this DLL file. I've searched online and don't see where I could download it from (I have Microsoft SQL Server System CLR

Unable to load DLL 'SqlServerSpatial140.dll': The specified module could not be found

柔情痞子 提交于 2021-01-20 23:41:21
问题 This all new to me, so bear with me... I'm working on a Visual Studio project; it's a web service that returns some data. I've just tried to make a particular call to the web server on my local machine (IIS) and I'm getting this error: Unable to load DLL 'SqlServerSpatial140.dll': The specified module could not be found Before anyone says it - yes, obviously I am missing this DLL file. I've searched online and don't see where I could download it from (I have Microsoft SQL Server System CLR