dll

How to “add reference” in C++

雨燕双飞 提交于 2020-01-01 01:59:11
问题 I'm new to C++ and there's something I just completely don't get. In C#, if I want to use an external library, log4net for example, I just add a reference to the log4net DLL and its members are automatically available to me (and in IntelliSense). How do I do that in non-managed C++? 回答1: Often, the library comes with 1) a header file (.h) and 2) a .lib file in addition to the .dll. The header file is #include'ed in your code, to give you access to the type and function declarations in the

What is dllspec(dllimport) and dllspec(dllexport) means

半世苍凉 提交于 2020-01-01 00:49:08
问题 After googling, i came to know that Dllimport makes the function available for other modules, is it mandatory to declare function with extern "c" identifier? Also, Dllexport means, Dll itself uses the function while compiling it says. so by default all functions present in DLL are dllexport? 回答1: __declspec(dllexport) exports a symbol. It makes it available from outside a DLL. __declspec(dllimport) imports a symbol. It practically says "this symbol is not defined in this application, it needs

Export a global symbol from a Delphi DLL

拥有回忆 提交于 2019-12-31 22:38:12
问题 I'm trying to create a Gecko 2.0-compatible DLL in Delphi. Previously (pre-Gecko 2.0) the DLL needed to export a NSGetModule() function. This worked flawlessly. Starting with Firefox 4, my DLL is getting loaded (I have verified this though a breakpoint in my initialization section), but my NSGetModule() function does not get called anymore. This is the designed behavior because starting with Gecko 2.0 (Firefox 4), a binary component is not supposed to export a NSGetModule() function: https:/

How to list all dlls loaded by a process with Python?

五迷三道 提交于 2019-12-31 22:01:22
问题 I want to list all the dlls loaded by a process, like this: How could I get the information with Python on Windows? 回答1: Using listdlls: import os os.system('listdlls PID_OR_PROCESS_NAME_HERE') 回答2: Using the package psutil it is possible to get a portable solution! :-) # e.g. finding the shared libs (dll/so) our python process loaded so far ... import psutil, os p = psutil.Process( os.getpid() ) for dll in p.memory_maps(): print(dll.path) 来源: https://stackoverflow.com/questions/5553917/how

What does WoW64 emulation layer do?

∥☆過路亽.° 提交于 2019-12-31 17:55:50
问题 All WoW64 apps go through WoW64 emulation layer. I'd like to know what happen in this layer.(especially, how they can convert address space) Please give me some important points. 回答1: Since you have already posted the diagram it is clear that you know why WOW64 exists. Now to answer your question: I'd like to know what happen in this layer. I think you want to know how it is implemented. Process startup: The loader loads 64-bit user-mode part 'Ntdll.dll' as usual, but also loads 32-bit Ntdll

Transitive Dependency causing Conflicting version of same DLL

拟墨画扇 提交于 2019-12-31 13:47:10
问题 What is the best practice in the .NET world to manage transitive dependencies that cause version conflict ? In details : Project A Depends on Project B which in turn depends on library C also Project A also depends on Project X which depends on a DIFFERENT and (potentially) incompatible version of library C. A->B->Cv1.0 & A->X->Cv2.0 where Cv1.0 <> Cv2.0 Is there a way to make this work ? Can it be done WITHOUT using the GAC ? Can it be done even if B and X are in binary format only (source

ASP.NET Can't Load Assembly

不打扰是莪最后的温柔 提交于 2019-12-31 13:28:28
问题 My computer crashed and I'm now unable to start my previously working ASP.NET Web Application in Visual Studio 2008 -- getting the following error: === Pre-bind state information === LOG: User = Adam-PC\Adam LOG: DisplayName = log4net (Partial) LOG: Appbase = file:///C:/Users/Adam/Desktop/SV/sview/Src/StoredProcedureTest/SV.Common.Web/ LOG: Initial PrivatePath = C:\Users\Adam\Desktop\SV\sview\Src\StoredProcedureTest\SV.Common.Web\bin Calling assembly : (Unknown). === LOG: This bind starts in

Converting from PDF to HTML [closed]

*爱你&永不变心* 提交于 2019-12-31 10:32:44
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Is there a .dll I can use which uses a PDF file as an input and HTML file as an output? I want to convert from PDF to HTML. My

Converting from PDF to HTML [closed]

与世无争的帅哥 提交于 2019-12-31 10:31:15
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Is there a .dll I can use which uses a PDF file as an input and HTML file as an output? I want to convert from PDF to HTML. My

Use XGBoost DLL from c# via p/invoke

倾然丶 夕夏残阳落幕 提交于 2019-12-31 07:15:12
问题 I'm trying to use XGBoost's dll (libxgboost.dll) to create a DMatrix (which is like a 2D array) and get how many columns it has. It runs fine until it throws a System.AccessViolationException at the int cols = ... line in the code below: using System; using System.Runtime.InteropServices; namespace basicXgboost { class Program { [DllImport("../../libs/libxgboost.dll", CharSet = CharSet.Auto)] public static extern int XGDMatrixCreateFromFile([MarshalAs(UnmanagedType.LPStr)] string file, int