dll

Do i have to register a DLL to use it in Excel?

允我心安 提交于 2019-12-24 10:15:00
问题 An older product we use has a 32-bit DLL that does Deflate compress/decompress. We import it in VBA thus: Declare PtrSafe Function EtUnCompress Lib "CompPl32.dll" (ByVal SrcSt$, ByVal SrcLen As Long, Dest As Any, ByVal DestLen As Long) As Long Some of our customers have 64-bit Office, so that's a problem. I was able to write my own 64-bit version using System.IO.Compression , with surprising ease. Now the question If I were to name my version CompPl32.dll and put it in System32, is that

Getting an exception when calling Syscall function

北城以北 提交于 2019-12-24 10:00:00
问题 I am using Go's syscall package to call a DLL that is written in C++. C++ method signature looks like this. init(int* buffer, int argc, char* argv[], const char* fileName, const char* key, const char* prefix, const char* version) this is the function I am using to call above method in Go. func init( buffer uintptr, argsCount int, args []string, fileName string, key string, prefix string, version string ) uintptr { // libHandle is handle to the loaded DLL methodAddress := getProcAddress

VBA FreeLibrary doesn't unload DLL

↘锁芯ラ 提交于 2019-12-24 09:47:54
问题 I need to delete a DLL file when I am done using it (cleanup after code is completed). I try using "LoadLibrary" and "FreeLibrary" in Excel VBA but no matter what I do Excel.exe clings to the DLL file. Public Declare PtrSafe Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long Public Declare PtrSafe Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long Private Sub Load_Unload_DLL() Dim lb As Long, pa As Long lb = LoadLibrary("C:

Finding Reference to System.IO.FileSystem.Watcher.dll

邮差的信 提交于 2019-12-24 09:47:51
问题 I have a Xamarin Forms cross platform solution. When I build the solution, the iOS project can't resolve the reference: C:/Program Files (x86)/Reference Assemblies/Microsoft/Framework/Xamarin.iOS/v1.0/Facades/System.IO.FileSystem.Watcher.dll even though it is physically there. All the other projects build just fine. I can't find a reference to the DLL or the class anywhere in the solution files. I don't need the capability. Ideas? Thanks. 回答1: I had the exact same issue. I found out that the

OpenCV.dll and java.library.path

牧云@^-^@ 提交于 2019-12-24 09:45:11
问题 Required library not found: C:\Users\ath\Desktop\KA\AuIer\AI\OpenCV.dll : Can't find dependent libraries Verify that the java.library.path property is correctly set and the '\path\to\OpenCV\bin' exists in your system PATH Any idea on how to fix this problem? Im working in Eclipse. 来源: https://stackoverflow.com/questions/4996724/opencv-dll-and-java-library-path

Loadable modules messages under Cygwin

为君一笑 提交于 2019-12-24 09:18:48
问题 When building LLVM using cmake, a few components involving "Loadable modules" are not built, and warning messages such as the following are issued: -- LLVMHello ignored -- Loadable modules not supported on this platform. ... -- BugpointPasses ignored -- Loadable modules not supported on this platform. ... -- SampleAnalyzerPlugin ignored -- Loadable modules not supported on this platform. -- PrintFunctionNames ignored -- Loadable modules not supported on this platform. But loadable modules are

Extract function information from c++ dll

。_饼干妹妹 提交于 2019-12-24 09:16:19
问题 i have c++ DLL and 1 program (not code) , that program calls 1 function from DLL, i know only name of that function, now all want to call that function from my application(C#). Is it possible? Thanks 回答1: I'm assuming that you only have the DLL by itself, if you've got a header file as well it would be much easier since you can skip straight to figuring out how to PInvoke it. First you have to get hold of the function signature so you know the arguments and their types. If it's a C++ DLL you

Debug in VS C++ with dll, pdb files and source

白昼怎懂夜的黑 提交于 2019-12-24 08:28:08
问题 A question about pdb file. Is pdb file for debugging in Visual Studio? If so, why do they also exist in my Release folder? It's normal that pdb files are in Debug folder, but why they are also in Release folder. So I have now a Release folder build by Integration team with all the pdb files. Now I can load all the corresponding source (in GIT) so I'm sure that the binaries correspond to the source. Then do I need to build again in order to debug in Visual Studio? If not, what I have to do in

Running my generated .jar yields “Can't load this .dll (machine code=0xbd) on a AMD 64-bit platform”

百般思念 提交于 2019-12-24 08:12:37
问题 I have a project which is using some native libraries (.dll). I'm using Netbeans, and I've specified java.library.path in the run configuration. Running the project from Netbeans yields no errors. I'm using Maven, and when building the project my jar is built in the target folder. I'm copying all the .dlls and my program's dependencies to target/lib with maven resources and dependency plugins. When I try to run my application "outside" of Netbeans, I get the following error: Can't load this

C# adding a resource error and calling function

这一生的挚爱 提交于 2019-12-24 07:38:21
问题 Hey all i am new at C# and i am trying to add a resource to a .dll file. It gives me the error of: Error 1 Source file 'C:\Documents and Settings\Administrator\Local Settings\Application Data\Temporary Projects\bluRemoteProg\Resources\HIDLibrary.dll' could not be opened ('Unspecified error ') bluRemoteProg What am i forgetting to do? David UPDATE Got it working but how do i call a function from the form menu? I've tried: PS3_BluMote.PS3RemoteDevice.Connect(); and PS3_BluMote.PS3RemoteDevice