dll

Is there any way to use DLLs in PHP under Linux?

As far as I know, it's only possible under Windows. But maybe, just maybe, there is some perverse way to achieve this under Linux..? ...

Warning C4251 when building a DLL that exports a class containing an ATL::CString member

I am converting an ATL-based static library to a DLL and am getting the following warning on any exported classes that use the ATL CString class (found in atlstr.h): warning C4251: 'Foo::str_' : class 'ATL::CStringT' needs to have dll-interface to be used by clients of class 'Foo' I am correctly declaring the Foo class as exp...

Delphi 7 using a .DLL that is created by VB.net

I am using Delphi 7 to try to use a .DLL created by VB.net. When I run TDUMP.EXE on the .DLL, it reports no exported data available. The VB.Net .DLL uses "RaiseEvent" to return data. Any help would be usefull. Thanks ...

LoadLibrary of unmanaged dll returns IntPtr.Zero in ASP.NET application.

I am trying to call LoadLibrary and load Delphi dll in ASP.NET application. On my production machine everything works fine (using VS integrated server), but when I place it on destination server, LoadLibrary returns IntPtr.Zero. File.Exists(libraryName) returns true. What can be the problem? ...

Ordinal 12345 could not be located in dynamic link library

When running my freshly built application, I get the following error message: Ordinal 12345 could not be located in dynamic link library mfc90u.dll Apparently, my application calls a function that is not present in the given .DLL. Is there a way to determine which part of my source code that calls this function? Update: I think I'm b...

Method of referencing dll's in Dotnet projects. project reference or dll reference ?

Hi - we have more than 30 projects and 7 web project solutions. In our current build architecture, out of 30 projects about 20 projects constitute the app, db and other lower level layer projects and are being used by the remaining 7-8 web layer projects. Web projects have each of the lower level projects as project reference and in ...

How to export C++ function as a dll that throws exception?

When I try to export the following function as a dll: extern "C" __declspec(dllexport) void some_func() { throw std::runtime_error("test throwing exception"); } Visual C++ 2008 gives me the following warning: 1>.\SampleTrainer.cpp(11) : warning C4297: 'some_func' : function assumed not to throw an exception but does 1> The f...

is there something like .dll or .so,but crossplatform?

is there something like .dll or .so,but crossplatform? ...

Can I reference a dll programatically in VB.net? Or change the Local Copy path for a dll reference?

Can I reference a dll programatically in VB.net? Or change the Local Copy path for a dll reference? ...

RegFree DLL with CPython using win32com module

Hi, I am currently using the win32com module of CPython to use a DLL. I know some people using IronPython to automagically get the list of functions provided by this DLL. They don't need to register the DLL. I'd like to do the same as them but with CPython. 1) Is it possible to use CPython and win32com to connect to a dll reg-free. Ho...

How can I link (C++) with renamed Python .lib and .dll?

Hi there, When I include "Python.h" from Python 2.5 in a C++ project, it knows through some magical process that it has to link with "python25.lib" and load "python25.dll" at runtime, though I didn't specified anything neither in "Linker -> Additional Dependencies" nor in "Linker -> Additional Library Directories". Now I would like to ...

When to include .lib and when to include .dll or both

I got a .h file, two .lib files, a .dll file and a tiny test project from a hardware vendor to talk to their hardware. Compiling and running their test project works just fine. Noteworthy: they don't use the .dll. I can throw the dll-directory and all of it's content away, everything works just fine. To start things off I simply copie...

What is proper naming convention for MSVC dlls, static libraries and import libraries.

Hello, What is standard or "most-popular" naming convention for MSVC library builds. For example, for following platforms library foo has these conventions: Linux/gcc: shared: libfoo.so import: --- static: libfoo.a Cygwin/gcc: shared: cygfoo.dll import: libfoo.dll.a static: libfoo.a Windows/MinGW: shared: libfoo.dll import: li...

Acquire images from scanners from Powerbuilder

I am using EZTWAIN from a powerbuilder application to acquire images from an HP scanner. Recently I tried a Kodak model (i1120) and it seems that it is not supported. Specifically the application freezes during the scanning process (perhaps the problem has to do with duplex scanning). Can you recommend another library that you have use...

Overloading Operators in C++, exporting and Importing then in VB.NET

Howdy all, I have a weird situation. I have a C++ code that overloads the +,-,* operators and exports them in a .DLL file. Now, I want to import those overloaded operators from within VB.NET code. So it should be like this: <DllImport("StructDLL.dll")> Public Shared Function Operator +(ByVal a1 As A, ByVal a2 As A) As A End Function ...

Oracle oci.dll in ASP.NET bin directory can't be deleted/doesn't work

I followed the directions here: http://splinter.com.au/blog/?p=156 in an attempt to use a newer version of ODP.NET without installing the Oracle 11g client. I followed everything, so far, except for restarting IIS. However, this has caused some problems and I'm really curious as to why. If I try to use ODP.NET I'm met with a blank excep...

How do I fix fatal error C1113: #using failed on 'Mylib.lib'

I have a project which uses C++/CLI to implement a GUI and some background processing to talk to a sensor. I've got that all working and a lot of the comms stuff which we use to communicate the the sensor sits in a .dll. The problem is that I'd like to combine the library into the main executable to avoid having to worry about distributi...

How to call DLL function in vbscript

I am writing VB script in which I have to call a function of a COM DLL. The fuction which I want to use is in structure and thus I want to create the object of that structure to access the required function. e.g. I have a dll 'BasicCom.dll', in which struct abc { bool xyz(); } Now I want to call xyz(). Is any one have any idea, h...

Dll loaded twice with Dll redirection through manifest

Hi there, I'm including python.h in my VC++ dll project which causes an implicit linking with python25.dll. However I want to load a specific python25.dll (several can be present on the computer) so I created a very simple manifest file named test.manifest: <?xml version='1.0' encoding='UTF-8' standalone='yes'?> <assembly xmlns='urn:sc...

Sharepoint woes: Could not load file or assembly - BadImageFormatException

I've been working on a project that's been a rather seat-of-the-pants experience. We have MOSS 2007 and Silverlight 3 installed. We're trying to make use of some new 3rd party software, Visual Fusion(http://www.idvsolutions.com/products_overview.aspx). While working through the tutorial I ran into a bit of an issue. All I really have...