dll

GHC Foreign hs_init/hs_add_root crashes

孤街浪徒 提交于 2020-01-03 21:48:09
问题 I don't repeat more than necessary, brief summary: Following the Adder example from this tutorial on a machine with win7 (64) with VS 2010. But I don't use C++ but plain C. When using the cl (MS compiler) with cl /Zi (and no other flag) it works like expected. If not use /Zi and then try to execute the exe goes into flames. Why? (There must be some compiler/link options that make some init in the start of the haskell dll go wrong ) EDIT: Some investigation: /Zi does not affect optimizations.

GHC Foreign hs_init/hs_add_root crashes

廉价感情. 提交于 2020-01-03 21:47:04
问题 I don't repeat more than necessary, brief summary: Following the Adder example from this tutorial on a machine with win7 (64) with VS 2010. But I don't use C++ but plain C. When using the cl (MS compiler) with cl /Zi (and no other flag) it works like expected. If not use /Zi and then try to execute the exe goes into flames. Why? (There must be some compiler/link options that make some init in the start of the haskell dll go wrong ) EDIT: Some investigation: /Zi does not affect optimizations.

C++ Access violation calling function from dll

扶醉桌前 提交于 2020-01-03 21:01:27
问题 I am developing an application that will access smart cards using the standard PKCS#11. At this moment the application is working very well both on Ubuntu and OS X. Now I am porting it to Windows, but I am getting an "access violation" exception whenever I call functions from the pkcs#11 library, which is linked at runtime. Below I tried to reproduce a SSCCE of my code (The place where the exception is happening is identified with a comment). void * libraryHandle = NULL; CK_RV rv; CK_C

What breaks a .net binary (dll) interface

旧街凉风 提交于 2020-01-03 19:34:06
问题 Consider two .net dlls. The first, "application.dll" contains the main business logic and data access code. The second, "webservice.dll" consists mostly of WebMethods that link to objects and methods with application.dll for the purpose of providing webservice calls to existing code. What changes (e.g. add new classes, add a new field or method to an existing class etc) can and can't be made to application.dll without requiring a recompile of webservice.dll? 回答1: Most things will be fine;

JNI - Listener in C++/Java - is it possible to instantiate Java objects in c++ and use them as parameters

£可爱£侵袭症+ 提交于 2020-01-03 17:44:25
问题 Is the following usable with JNI? public NativeClass { static { System.loadLibrary("dll"); } public static native void addListener(Listener listener); } public interface Listener { public void eventOccurred(Info info); } public Info { private final String s1; private final String s2; public Info(String s1, String s2); // ... getters for use in Java } Is it possible to register a Listener object on a dll (should be no problem, as far as I found out) instantiate an Info object in the c/c++ code

JNI - Listener in C++/Java - is it possible to instantiate Java objects in c++ and use them as parameters

拈花ヽ惹草 提交于 2020-01-03 17:44:14
问题 Is the following usable with JNI? public NativeClass { static { System.loadLibrary("dll"); } public static native void addListener(Listener listener); } public interface Listener { public void eventOccurred(Info info); } public Info { private final String s1; private final String s2; public Info(String s1, String s2); // ... getters for use in Java } Is it possible to register a Listener object on a dll (should be no problem, as far as I found out) instantiate an Info object in the c/c++ code

Using two .NET libraries with the same namespace

可紊 提交于 2020-01-03 15:54:21
问题 I'm currently maintaining some old code for a company. As it would happen, the current app I'm modifying uses an older version of the in-house library (we'll call this Lib1.dll). They also have a new version of the library called Lib2.dll that improves upon the previous library in many ways. Unfortunately, Lib2 is not backward compatible with Lib1. What's worse is that they both use the same namespace Product.Common. How do I use Lib2 and Lib1 in the same project? Right now if I add

Classic ASP and COM DLL Does not work in Server 2008 R2 (Microsoft VBScript runtime error '800a01ad' ActiveX component can't create object )

久未见 提交于 2020-01-03 13:31:56
问题 I have created a dll in Visual Studios 2010. I have performed the following steps: Given build a strong name by associating a key pair (snk file) to it Given each class an individual ProgID and GUID As it is a 64 bit DLL I made sure that Used the RegAsm.exe located in the 'FrameWork64/v4xxxx' folder. I used RegAsm.exe /codebase ECE2.dll I ran 'gacutil -i' on the DLL All of these steps have been successful. The DLL and the ASP page I am using it on are stored in intetpub/wwwroot. Now, the DLL

Add a dependency / reference to your own DLL project in Visual Studio 2013

谁说我不能喝 提交于 2020-01-03 13:05:14
问题 I have been working on a few different applications and I want them all to share the same DLL library. The shared DLL is one that I created, so really I want each application to have a dependency on the DLL so that the DLL gets built in the same solution as the application. Then the DLL should copy itself to the application's bin folder before the application runs. After figuring out how to do this, it seems that it should have only taken about 5 minutes, but unfortunately it took me an hour

Add a dependency / reference to your own DLL project in Visual Studio 2013

依然范特西╮ 提交于 2020-01-03 13:05:01
问题 I have been working on a few different applications and I want them all to share the same DLL library. The shared DLL is one that I created, so really I want each application to have a dependency on the DLL so that the DLL gets built in the same solution as the application. Then the DLL should copy itself to the application's bin folder before the application runs. After figuring out how to do this, it seems that it should have only taken about 5 minutes, but unfortunately it took me an hour