Hi, I am using JNA to access a custom DLL which seems to be using the FAR PASCAL Calling Conventions, but the JVM crashes every time i try to access it.
Development Guide of the dll says:
BOOL FAR PASCAL GetIomemVersion(LPSTR);
And Dependency Walker tells me:
_GetIomemVersion@4
public class PebblePrinter{
public interface Iomem exte...
Hi, I've been using Inno Setup for deploying and registering a dll, but all the setups generated with InnoSetup have a min size of 500kb while my dll is only like 40kb.
I don't want to use a packer such as UPX because I don't like the way they work.
Is there another free app to create smaller setups for deploying dlls?
...
I have a problem with a VB6 DLL and some of the behaviour leads me to wonder whether Windows is unloading it from memory after a period of inactivity. Are there any good applications/techniques for determining which DLLs are loaded into memory at a given point?
I'm using Windows XP if that makes any difference.
...
From a C# 32-bit application, In need to determine whether a given (unmanaged!) DLL file is 32-bit or 64-bit.
Does anybody have working sample code that can do this with managed code, for example by using FileStream (and not by calling Windows API functions)?
...
Most Real world web applications have at least one dll library behind them. If we use the ASP.NET membership provider, how can we call the Roles.IsInRole method in the dll?
The possibility of referencing HttpContext is not good. Because, we have a few console application tools that use the same dll to complete a few bulk operations.
...
I don't know much about dlls. I'm reading a book on COM. In which author is referring to something Exporting a function from a DLL. He tells how to do that but he doesn't tell what is it or why it should be done?
The method he suggests is:
a) mark function with extern "C" (don't know why?)
b) create a DEF file and add the function names...
I have a VB6 DLL embedded in some ASP pages. The DLL hits a Codebase database, an obsure and obsolete database engine (a dialect/variation on dBase) that virtually no-one has even heard of. It takes Codebase nearly a second to initialise a new connection, which is unacceptably slow and so I've created a connection pool, managed by a VB c...
I have a class defined in one DLL, with a certain member that is overloaded.
A second DLL imports that class, inherits from it and exports the inherited class. The inherited class overrides one of the overloads of the above member, and so looses all the other overloads.
The solution for this problem generally, AFAIK, is to use a using s...
Hi,
Say we have a class library project containing 10 classes. Now I want to create a dll which should contatin only 6 classes out of those 10. How we can achieve this?
...
Or do I have to restart each service that uses it?
...
I am helping my friend develop a Unit Converter. He asked me if I could help split up the work. So I am making a .dll called Unit. Unit is supposed to handle the conversions. I was brainstorm on how to do this and I came up with an idea to put give each section an enum (like enum Angle[Degrees, Radians, Gradians], enum Area[Square meters...
We've got a few common libraries (C# but I guess this isn't platform- or language-specific), let's call them A, B, and C. Library A has references to B and C, library B has a reference to a 3rd-party DLL, and library C stands alone. The idea behind three separate projects was that each library had distinct functionality, but library A ha...
My program is a converted python file to exe file. The problem with this exe file is that it does not run without python installed and it only needs mscvr90.dll! I don't want to install C++ Redistributable Package just for this dll file! That big fat package! If I copy this msvcr90.dll to my application folder it just won't work!
The f...
I recently asked this question which got me started in the right direction - at least for loading the MFC DLL and trying to show a dlg box.
The problem is, the typical dialog box is horrible as a main window for an APP. It is quite simple for me to create a new exe project to do what I want, but the problem is that I have a DLL and t...
In my project I got a device which comes with C++ Sample codes. The codes are ok and the device is working as expected.
But I need it to talk with my C# interface because all other devices are currently using C# interface.
So I am planning to create a DLL Wrapper for the driver. I will create a C++ Library of my own (from source code w...
I have a (native C++) visual studio solution with several projects in it, some of them being DLLs. The dependencies of the projects on each other is fed into "Project dependencies". Whenever a DLL is being changed and re-built, regardless of wether this change affects other projects or not (that is, only the implementation and not the de...
I am using VC 2008.
I call into an MFC regular DLL from a console app in C++. I want to show a top-level window (a form I created that is an IDD_FORMVIEW)
Right now I have no window showing. I am not sure what is wrong.
What do I have to do (starting from scratch) to create a main window in an MFC DLL? This is a regular DLL and ...
Hi !
I'm using xampp.
I search and it looks like for php 4.x, there was an extension called php_w32api.dll which seems to have vanished for php 5.x. Nevertheless, it's still in the documentation on php.net but marked as experimental.
Some suggested to use win32std in pecl instead, but that just wraps some function of the win32 api, bu...
I'm developing application using VC++ 6.
I have a 3rd party DLL. This library compiled as Multithreaded DLL (/MD) and my application too.
But I fail to link:
LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification
msvcprtd.lib(MSVCP60D.dll) : error LNK2005: "public: __thiscall std::basic_string<char,stru...
Is it valid to develop a DLL in C++ that returns boost shared pointers and uses them as parameters?
So, is it ok to export functions like this?
1.) boost::shared_ptr<Connection> startConnection();
2.) void sendToConnection(boost::shared_ptr<Connection> conn, byte* data, int len);
In special: Does the reference count work across DLL b...