dll

CustomAction succeeds on development computer, fails on deployment computer

依然范特西╮ 提交于 2020-01-24 23:43:04
问题 I'm creating a WiX installer to install a program which connects to a database. To help with this, I've created a C dll which checks to see if a certain instance of SQL exists on a server: extern "C" UINT __stdcall DBConTest(MSIHANDLE hInstaller) { FILE *fp; fp = fopen("dbcontestdll.txt", "w"); _ConnectionPtr pCon; int iErrCode; HRESULT hr; UINT rc; //init COM fwprintf(fp, L"entering dbcontest\n"); if(FAILED(hr = CoInitializeEx(NULL,tagCOINIT::COINIT_APARTMENTTHREADED))) return ERROR_INVALID

DLL missing error when EXE run from command line [VS2010]

北城以北 提交于 2020-01-24 22:42:51
问题 So I built an SSH-connect-test console application using libssh library, and is dependent on ssh.dll. The application works perfectly fine when run from inside VS2010, but gives "ssh.dll missing from your computer. Reinstall the program" error when the same EXE is run from the command prompt. Any inputs as to why am I seeing this dual behaviour of the console application from inside and outside of VS2010? Thanks. 回答1: you should download ssh.dll by searching it in google .when the file

Why does my program stop after passing data from c++ dll to c# several times? (There's no error message)

耗尽温柔 提交于 2020-01-24 22:10:25
问题 I'm working on a project which required a dll file for another program written in c# to use (I'm not very familiar with the usage of C++/C#). After finishing the development(?) of the dll file, I started its testing process(run the function call from dll in C# for many times to ensure it works fine). I've asked the way to pass data from C++ to C# here, and the problem is, the program will stop without any error message(I've put try catch in my program) after calling it over 2 times . I've

How to correctly dispose of injected DLL thread?

时光怂恿深爱的人放手 提交于 2020-01-24 21:49:12
问题 I'm injecting a DLL into a target process to act as a helper while playing an MMORPG (currently functionality converts key press into mouse clicks, as the MMORPG requires the user to move their mouse for certain functionality, something I despise.) Let's say I want to uninject my DLL for whatever reason, how would I go about it? Is this method clean? bool running = true; while (running) // This is the only thread I'm using, and it is running in "realtime" { // Do keyboard handing stuff in

JNI to call .NET dll

时光毁灭记忆、已成空白 提交于 2020-01-24 17:45:07
问题 I am trying to create a Java Application that will call C# dll through an intermediate Visula C++ dll, its all well and good when I try to run the .class file from cmd prompt or Eclipse IDE but the problem is in order to do it I need to place the C# dll in the same directory as the Java.exe or else there occurs an exception the the native call, thus making to impossible to build the Java Project, any idea as to how this can be done 回答1: You can enable and register your managed (.NET) dll with

Cannot find type System.ApplicationException in module mscorlib.dll Error in Windows Store App while using Matlab dll

馋奶兔 提交于 2020-01-24 17:17:25
问题 I am making an Image processing App for my own use which I don't want to put on store. I want to use my pre designed Matlab codes in that windows store app. When using the dlls in my project, it displays the error - Cannot find type System.ApplicationException in module mscorlib.dll 回答1: Most probable cause for this exception is the DLLs which you are referencing or their dependencies are not supported by WinRT Try to use LoadPackagedLibrary or GetProcAddress to load DLLs. If you cannot then

Qt5.8.0 missing vcruntime140d_app.dll

此生再无相见时 提交于 2020-01-24 16:35:32
问题 I have a very simple Qt application consisting of main.cpp, mainwindow.cpp, mainwindow.h and mainwindow.ui. The contents of each are shown below: main.cpp #include "mainwindow.h" #include <QApplication> int main(int argc, char* argv[]) { QApplication a(argc, argv); MainWindow w; w.show(); return a.exec(); } mainwindow.cpp #include "mainwindow.h" #include "ui_mainwindow.h" MainWindow::MainWindow(QWidget* parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::

C DLL to Python Callback

风流意气都作罢 提交于 2020-01-24 15:28:29
问题 I have a Visual C++ DLL. I have a SetCallback( function-pointer) exported in the DLL. I use this function to set a callback function from a python2.7 script. I follow what is given in the Python documentation. from ctypes import * def mypy_callback(number): print str(number) d = cdll.LoadLibrary(r"myfunctions.dll") callback_type = CFUNCTYPE(None, c_int ) d.SetCallback(callback_type(mypy_callback)) In the C code I have typedef void (*callback_function)(int); void SetCallback(callback_function

Qwindows.dll Never Found In

人走茶凉 提交于 2020-01-24 14:22:55
问题 When I run my application in other machine and if i rename the Qt directory i'm getting the "This application failed to start because it could not find or load the Qt platform plugin "windows". Reinstalling the application may fix this problem." Here's the layout of the folder holding the application: app.exe icudt53.dll icuin53.dll icuuc53.dll Qt5Core.dll Qt5Gui.dll Qt5Widgets.dll msvcp110.dll platforms/qwindows.dll Is there any possibility to force the seek qwindows.dll for directory of my

VirtualAlloc C++ , injected dll, asm

南笙酒味 提交于 2020-01-24 12:18:29
问题 I want to reserve space for my codecave in application. I use VirtualAlloc function to reserve this space. I have X questions. What parameters (sllocation type and protection) should I use to allocate memory for code-cave? As return value I get address of my codecave. In other part of the program I want to JMP to that codecave. How to do it? I know (correct me if I'm wrong) that JMP takes as agument nuber that is offset from current location. But I want to JMP to ma codecave. How to calculate