dll

Inno Setup: Uninstall Dll Server

孤者浪人 提交于 2019-12-24 11:50:13
问题 Greetings, With my app I install a Dll server for the Windows shell. The server is registered and unregistered properly by Inno by using the flag "regserver". However if any explorer windows are open the dll is in use and cannot be deteled by Inno. How can I delete the dll automatically and uninstall the app properly? Regards, Cosmin 回答1: In addition to the regserver flag you could use the uninsrestartdelete flag for your shell extension. To quote from the Inno Setup help ( [Files] section):

How to reduce QT program start-up time when using a DLL

倖福魔咒の 提交于 2019-12-24 11:48:20
问题 My program relies on several DLLs during startup, including QtCore4.dll and QtGui4.dll from QT itself and ni488.dll from National Instruments. When I try using any of the functions in cbw32.dll (a 5 MB file found in the UniversalLibrary at http://www.mccdaq.com/software.aspx), my program suddenly takes 5+ seconds to start up, whereas previously it did so instantaneously. Is there anything I can do to reduce the time it takes to start up? For that matter, what is happening during that time, is

C++: Adding external XML file to a DLL project to load/access it during execution

只谈情不闲聊 提交于 2019-12-24 11:37:28
问题 Is there a way to add files or other binary data to a DLL so that the program can access it during runtime by "loading" with a filename? I am programming a DLL which has some code fragments like: SomeObject mObject = SomeObject("filename.xml"); Now I have 2 problems: I don't know where the .xml file is placed during runtime since I don't know where the DLL is used. I don't even want to give the .xml file to the user of the DLL. where SomeObject is from an external library so I can't change

Qt app and icu files

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 11:28:13
问题 I've been searching for hours for a solution to my problem , which is " the size of the dll files " after finishing my project , for example the icu files are too big for my simple app. I found two solution: 1- recompile qt without icu support " tried to find a good tutorial but i'm out of luck " need a tutorial that thinks about the reader a new user " 2- creating or compiling your own icu , I tried this : http://qt-project.org/wiki/Compiling-ICU-with-MSVC but I could not understand it I got

How to use a C++ class dll loaded explicitly in visual studio

假如想象 提交于 2019-12-24 11:26:57
问题 For exactly the reason mentioned here: http://msdn.microsoft.com/en-us/library/vstudio/253b8k2c.aspx "The application does not know the name of a DLL that it will have to load until run time" I need to load a dll that doesn't bind its name to the application. That is, I don't need the application to require "myDll.dll" to work (because in our configuration system, myDll.dll is not named like that) . However, using GetProcAddress for every function doesn't seems like a good idea, specially

How can I search and get the directory of a DLL file in python

僤鯓⒐⒋嵵緔 提交于 2019-12-24 11:16:17
问题 Let's say if I have a dll file called banana.dll , and I have a module called banana.py which will use ctypes to load banana.dll , and they are stored in the same directory, for exmaple c:\Python27\lib in Windows. Now I create a new python file called testing.py in other directory (for example c:\user\desktop ) which will import the banana.py module. But since the current working directory is the directory where testing.py is stored. So I need to manually change the directory to c:\Python27

How to embed a DLL within a C++/CLI executable?

安稳与你 提交于 2019-12-24 11:04:59
问题 I'm on a C++/CLI project, and I'm trying to embed some DLL files (WPF custom control library) within my executable to avoid having over 9000 DLLs in the same folder. There is a lot of information about embedding a C++/CLI DLL in a C# project (moreover, it is very simple), but the documentation about the reverse seems to be poor. The closest solution I have found is here: Embedding resource in a C++/CLI project, but unfortunately I can't see my WPFWidget.dll in resources when I open the .exe

Correct way to call a C DLL method from C#

筅森魡賤 提交于 2019-12-24 10:23:26
问题 I'm trying to execute some methods (in this particular case, rdOnAllDone) from a third party DLL, written in C, and looking trough the headers files, I found this: #ifndef TDECLSDONE #ifdef STDCALL #define CCON __stdcall #else #define CCON __cdecl #endif #define TDECLSDONE #endif #define DLLIMP __declspec (dllimport) DLLIMP int CCON rdOnAllDone (void(CCON *)(int)); After goggling for a way to call this method, I made this: [DllImport("sb6lib.dll", CallingConvention = CallingConvention.Cdecl)]

If a DLL or OCX is registered by a non-administrator user and regsvr32 says it succeeds, could it still fail to be registered properly?

旧城冷巷雨未停 提交于 2019-12-24 10:18:29
问题 If a DLL or OCX is registered by a non-adminstrator user and regsvr32 says it succeeds, could it still fail to be registered properly? 回答1: Yes. For example, if RegCreateKeyEx is supplied HKEY_CLASSES_ROOT and the user is not an administrator, it will create the key under HKCU\Classes . Otherwise, if the user is an admin, it will create the key under HKLM\Classes . (Note the HKCU vs. HKLM distinction. For those who aren't aware:) HKCU = HKEY_CURRENT_USER HKLM = HKEY_LOCAL_MACHINE The

Get the Windows version correctly from a dll function call?

偶尔善良 提交于 2019-12-24 10:17:19
问题 Suppose I'm writing a multi-purpose dll which includes a function for getting the OS version: void get_os_version(DWORD *major, DWORD *minor) { OSVERSIONINFOEX osvi; ZeroMemory(&osvi, sizeof(OSVERSIONINFOEX)); osvi.dwOsVersionInfoSize = sizeof(OSVERSIONINFOEX); // deprecated but easier to use for this example's sake GetVersionEx((OSVERSIONINFO*)&osvi); *major = osvi.dwMajorVersion; *minor = osvi.dwMinorVersion; } For the Windows version to be retrieved correctly for versions higher than