dll

Win32 API to enumerate dll export functions?

限于喜欢 提交于 2019-12-27 10:19:28
问题 I found similar questions but no answer to what I am looking for. So here goes: For a native Win32 dll, is there a Win32 API to enumerate its export function names? 回答1: dumpbin /exports is pretty much what you want, but that's a developer tool, not a Win32 API. LoadLibraryEx with DONT_RESOLVE_DLL_REFERENCES is heavily cautioned against, but happens to be useful for this particular case – it does the heavy lifting of mapping the DLL into memory (but you don't actually need or want to use

Win32 API to enumerate dll export functions?

試著忘記壹切 提交于 2019-12-27 10:19:11
问题 I found similar questions but no answer to what I am looking for. So here goes: For a native Win32 dll, is there a Win32 API to enumerate its export function names? 回答1: dumpbin /exports is pretty much what you want, but that's a developer tool, not a Win32 API. LoadLibraryEx with DONT_RESOLVE_DLL_REFERENCES is heavily cautioned against, but happens to be useful for this particular case – it does the heavy lifting of mapping the DLL into memory (but you don't actually need or want to use

DLL Injection fails with code 127

帅比萌擦擦* 提交于 2019-12-25 18:55:11
问题 I am trying to do some dll injection. I think I tried everything I could but cound not solve the problem unfortunately. I always get ERROR CODE 127 which means ERROR_PROC_NOT_FOUND. I am using Windows 7 64 bit. #include <iostream> #include <Windows.h> #include <TlHelp32.h> using namespace std; char FileToInject[] = "theDll.dll"; char ProcessName[] = "calc.exe"; typedef HINSTANCE (*fpLoadLibrary)(char*); bool InjectDLL(DWORD processId); int main() { DWORD processId = NULL; PROCESSENTRY32 pre32

Converting C source code to a DLL results in “unresolved externals”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-25 18:54:32
问题 I am trying to run the code which is written using C and that is for a dialogic board dmv 960A 4T1pci . I am trying to convert that code to a DLL but I am facing 34 errors which are almost same , here is the list of them: Linking... Creating library Debug/drivendll.lib and object Debug/drivendll.exp drivendll.obj : error LNK2001: unresolved external symbol _sr_waitevt drivendll.obj : error LNK2001: unresolved external symbol _gc_CCLibStatusEx drivendll.obj : error LNK2001: unresolved external

Use DLL that is not installed on the system

不羁岁月 提交于 2019-12-25 18:45:18
问题 I am creating a C# CustomAction DLL from which I have to use another DLL that is not (yet) installed on the target system, but included in my installer. How will I be able to use this DLL in my C# CustomAction? The reason is that I have to check whether the provided credentials are accepted by the Web service this DLL hooks into before I write the credentials into web.config and encrypt web.config. 回答1: You could always try this - seems to be what you're looking for, a way to get the Dll and

Dll and shared variable

孤人 提交于 2019-12-25 18:41:46
问题 I have a Dll (C++) who contains a data_seg that is used to share variables among others programs. It works and many program is using it (30+). The problem is that I added this library into a new project, but the variable that I try to access, never change its value. I have to restart the program and now its synchronized with the rest of the other programs and I can see the last value of a variable. Any clue? Thank you. 回答1: You dont provide much information - like how you declare your

PresentationFramework DLL could not be loaded

送分小仙女□ 提交于 2019-12-25 18:41:44
问题 I am running a TeamCity build which is running FXCop Analysis. Getting the following error: [INFO] 2>Project : error : CA0058 : The referenced assembly 'PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' could not be found. Now, this error is coming on only one of the machines, and he build is running fine on all remaining ones. I've checked the following (same on all the machines) Checked that the assembly is present in GAC Verified that Visual Studio

Add excel workbook to VB.net application

本小妞迷上赌 提交于 2019-12-25 18:37:14
问题 I have a project that I created that only shows 1 form and button. What I am trying to do is once the button is clicked, it opens a pre-built excel workbook. The problem is, I need to add the excel file within the application bundle. For example, I give the application disc to someone else to load on another computer, and then they can run the application to open the workbook. I know how to reference the file on my personal computer, just not how to add it "within" the project, to be, more or

Why does accessing unmanaged memory cause a System.AccessViolationException? [duplicate]

左心房为你撑大大i 提交于 2019-12-25 18:33:55
问题 This question already has an answer here : Use XGBoost DLL from c# via p/invoke (1 answer) Closed 3 years ago . 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 =

How to launch java swing app which used precompled DLL from cmd?

☆樱花仙子☆ 提交于 2019-12-25 18:24:53
问题 When i'm using double click my java app starts perfectly. My path: PATH=...C:\Program Files\Java\jdk1.7.0_02\bin;... But when i'm running app from cmd: C:\Program Files\Java\jdk1.7.0_02\bin>java.exe -jar C:\Users\zagorulkinde\Docume nts\ps_client_lib\bin\Win32\GUItest.jar Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: C:\Window s\System32\pc_client_lib.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform at java.lang.ClassLoader$NativeLibrary.load(Native Method) at