dll

Search path for a DLL referenced by a plug-in DLL

风流意气都作罢 提交于 2020-01-13 14:31:14
问题 I'm writing a Windows application plug-in (as a DLL) in native C++. Let's call it myplugin.dll . My plug-in references another DLL which we'll call other.dll . My plug-in is installed in the myplugin subdirectory of the application's plugins directory: application.exe plugins\ myplugin\ myplugin.dll myplugin.dll links implicitly to other.dll . I cannot delay-load other.dll because it exposes classes with virtual methods, and virtual method tables being considered as data, they cannot be

Accessing an SDK that is written in c++ using node.js

旧巷老猫 提交于 2020-01-13 11:15:18
问题 I have a SDK that will communicate with my Scanner device that is written in C++ language. I need to develop an Electron App that can access the Scanner device. I know there are many libraries available for scanner but I want to use this SDK since it will allow me to access full feature of the device and moreover it is provided by the device manufacturer. So, is there any way to implement this. Please suggest me any idea. 回答1: You can use the native V8 API for that. You will need to provide a

Accessing an SDK that is written in c++ using node.js

吃可爱长大的小学妹 提交于 2020-01-13 11:15:11
问题 I have a SDK that will communicate with my Scanner device that is written in C++ language. I need to develop an Electron App that can access the Scanner device. I know there are many libraries available for scanner but I want to use this SDK since it will allow me to access full feature of the device and moreover it is provided by the device manufacturer. So, is there any way to implement this. Please suggest me any idea. 回答1: You can use the native V8 API for that. You will need to provide a

Get All DLLS For A Process

筅森魡賤 提交于 2020-01-13 09:25:10
问题 I would like to get a list of all the dlls loaded for a given Process. I am currently using .NET Framework 4.0 . I am aware that there is a bug when trying to access all managed dlls through the Process.Modules property. (Only lists the unmanaged dlls). I need a way to programmatically retrieve all of these dlls. Process[] myProcess = Process.GetProcessesByName("MyProcess"); if(myProcess.Count() > 0) { foreach (ProcessModule processModule in myProcess[0].Modules) //get information } EDIT: The

How can I use Boost.Log across DLL boundaries?

不打扰是莪最后的温柔 提交于 2020-01-13 08:29:08
问题 I am trying to integrate Boost.Log in a fairly large application that is composed of a main application that dynamically loads plugins from DLLs. The initial idea was to pass a logging source to plugins so that they can add log messages. However, as soon as code from a DLL tries to log a message to the provided source, the application crashes with an access violation. Approach 1 The following minimal example illustrates the problem: int main(int argc, char* argv[]) { boost::log::sources:

Determine if an executable (or library) is 32 -or 64-bits (on Windows)

为君一笑 提交于 2020-01-13 08:28:07
问题 I am trying to find out if a given executable (or library) is compiled for 32-bits or 64-bits from Python. I am running Vista 64-bits and would like to determine if a certain application in a directory is compiled for 32-bits or 64-bits. Is there a simple way to do this using only the standard Python libraries (currently using 2.5.4)? 回答1: The Windows API for this is GetBinaryType. You can call this from Python using pywin32: import win32file type=GetBinaryType("myfile.exe") if type=

How can I convert a console application to a .dll?

筅森魡賤 提交于 2020-01-13 07:40:12
问题 I am trying to convert an application written in C# to a DLL. The console application takes in input from the user and resets the password by calling a method of a service that I have imported in my project. How do I convert the console application into a DLL so that, whenever the user wishes to change their password, my DLL is invoked? 回答1: Right-click Project -> Properties -> Application -> Output Type: 'Class Library' 来源: https://stackoverflow.com/questions/11736628/how-can-i-convert-a

Dependency objects/properties from a DLL

≯℡__Kan透↙ 提交于 2020-01-13 07:15:54
问题 Here is the code I have : public class MyObject : DependencyObject { public int speedSimu { get { return (int)GetValue(speedSimuProperty); } set { SetValue(speedSimuProperty, value); } } public static readonly DependencyProperty speedSimuProperty = DependencyProperty.Register("speedSimu", typeof(int), typeof(MyObject), new PropertyMetadata(0)); public int Value { get; set; } } public class Timer : DependencyObject { public string description { get { return (string)GetValue(descriptionProperty

ws2_32.lib vs. libws2_32.a, what's the difference and how to link libws2_32 to NB project?

一世执手 提交于 2020-01-13 06:58:11
问题 I use NetBeans, Windows and Cygwin with g++ compiler. I'm examining Windows Sockets 2. I do everything that is written in MS manual. I have a code (mostly from this manual): #include <winsock2.h> #include <ws2tcpip.h> #include <cstdlib> #include <iostream> #pragma comment(lib, "Ws2_32.lib") int main() { WSADATA wsaData; int iResult; // Initialize Winsock iResult = WSAStartup(MAKEWORD(2,2), &wsaData); if (iResult != 0) { printf("WSAStartup failed: %d\n", iResult); return 1; } else cout <<

LNK2028 Managed C++ DLL calling function in another Managed C++ DLL

二次信任 提交于 2020-01-13 06:36:09
问题 I'm using VS2010 with a managed C++ DLL calling a function in another managed C++ DLL and I'm getting many LNK2028 link errors that look like this. 1>udpPkt.obj : error LNK2028: unresolved token (0A0000AA) "unsigned short __cdecl ComputeCrc16(void const *,unsigned int)" (?ComputeCrc16@@$$FYAGPBXI@Z) referenced in function "public: short __thiscall CPrivateUdpPkt::ComputeCrc(void)const " (?ComputeCrc@CPrivateUdpPkt@@$$FQBEFXZ) When I use dumpbin /export on the called DLL I see the unresolved