dll

using jna with FAR PASCAL custom dll

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...

Creating small setups to deploy dll?

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? ...

determining which DLLs are in memory

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. ...

Determine whether a DLL is 32-bit or 64-bit

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)? ...

How to use IsInRole from ASP.NET Membership in the Library dll

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. ...

What does `Exporting a function from a DLL` mean?

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...

Unexpected reinitialization of variables declared in VB6 DLL module

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...

`using` statement across two DLLs

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...

Is it possible to compile a dll with subset of classes from the class library project?

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? ...

When you move a new version of a dll to the GAC, will it be automatically updated in the running services?

Or do I have to restart each service that uses it? ...

Help with structure of abstract class/class/interface Unit.

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...

Why shouldn't I have a single monolithic utility library?

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...

Installing msvcr90.dll easy way! (without C++ Redistributable Package)

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...

How do I create and use a CFormView in an MFC regular DLL? (visual studio 2008)

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...

Creating C++ Dll, and call it from C#

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...

Visual Studio DLL dependencies cause unnecessary re-link

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...

How do I create a top-level Window in MFC DLL code?

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 ...

How do I call a function from a dll from php on windows?

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...

newbie: Determinate CRT lib used by library

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 OK to use boost::shared ptr in DLL interface?

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...