dll

merge DLLs n .cs files

Hi, A part of big project is a payment system, that I would like to reuse. I want to merge all the class files of this payment system into DLLs so that add them as a reference in all the other projects. The present payment system is also using namespaces from the DLLs of a commercial application (nsoftware-paypal n few others). I tried ...

How to dynamically load a dll in c#

Possible Duplicate: Load Assembly at runtime and create class instance I want to load a dll dyanmically in my c#.net project. I dont know how to do it. and what are the benefits I can get by dynamically loading a dll. EDIT: See Comments ...

How to make 64 bit dll compatible with 64-bit editions of Windows Server 2008, Windows 7, and Windows XP?

I have compiled a dll on Windows Server 2008 64 bit edition. It works fine on that version of Windows, but if I switch to Windows 7 or XP 64 bit edition the dll does not work. How can I make the dll compatible with all three versions of 64bit edition windows? I am using Visual Studio 2010. ...

Why won't my DLL register with RegSvr32 ?

I have to register a .dll file named MatchMolDLL.dll. To register the DLL I followed these steps: 1) Goto RUN 2) Type “cmd” 3) Type “regsvr32 MatchMolDLL.dll” However regsvr32.exe reports: "MatchMolDLL.dll was loaded, but the DllRegisterServer entry point was not found." How can I register it? If I had to link this .dll file ...

Problems connecting to Oracle database from Java classes (ocijdbc11.dll)

I have some database import and export ant scripts that run little java programs to import and export data to and from oracle 11g. The scripts used to work on Vista 32 bit, but stopped working with Windows 7 64 bit. There are two versions of ocijdbc11.dll that I can use. When I use the 64bit version the error message is: java.lang.Unsa...

VC++ merge multiple COM DLLs into one

Let's say we have multiple libraries (DLLs) whose features one wants to use in an application, and wants to use them as a single DLL. Is it possible to merge the DLLs into a single one, with all the features packed into it? I am not looking at the option to write a wrapper. EDIT: I've revisited the problem. Now all I want to do is bri...

Visual Studio 2010 is Eating My DLLs! - referenced third party dlls missing after build

Please help I am pulling my hair out over this: I have a Visual Studio ASP.NET MVC solution in which a project references a third party DLL, log4net in this case. My solution tree is as follows: GenericLibrary MyApp.NHibernate MyApp.Library MyApp.WebUI MyApp.WebUI is the main start-up MVC web project and has references to GenericLib...

How do you make Visual Studio run assembly files (dependencies) from the bin?

I have a solution made up of multiple projects which have various dependencies on each other. When I build the project/solution, it creates the DLL assembly files in the Project\bin folder(s) as it should. But when I run the program, it copies everything to the temporary files folder and runs it from there: C:\WINDOWS\Microsoft.NET...

System.AccessViolationException with a .dll I compile

Hi, I am compiling a project into a .dll and trying to use it in another project. For most of the functions I use in this library, I get a System.AccessViolationException exception : System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at nglib.Ng_Get...

Add settings from another project to app.config

I have written an application in C# with a settings file (which is used to create an app.config file at compile time). This application uses a C# DLL which also has a settings file. I read the following from this post: If you build a project that references your DLL, you would add the same .settings file to that project and those s...

weird stack corruption due to a dll call

I'm trying to make a call to a DLL function (via GetProcAddress etc) from C, using lcc compiler. The function gets called and everything goes well, but it looks like the top of the stack gets corrupted. I've tried to play with calling conventions (__stdcall / __cdecl), but that didn't help. Unfortunately I don't have access to the dll c...

"msvcrt-ruby18.dll was not found" with Ruby

When I try to run even simple rails commands such as: rails -h I get a popup error after a few seconds that says: ruby.exe - Unable To Locate Component This application has failed to start because msvcrt-ruby18.dll was not found. Re-installing the application may fix the problem. I am running: Windows XP (yes I know...

What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library?

What is inside .lib file of Static library, Statically linked dynamic library and dynamically linked dynamic library? How think there is no need for a .lib file in dynamically linked dynamic library and also that in static linking, the .lib file is nothing but a .obj file with all the methods. Is it correct? ...

typedef solving for dll wrapper

I want to write a wrap for a DLL file, in this case for python. The problem is that the argument types are not the C standard ones. They have been typedef'end to something else. I have the header files for the DLL files... so I can manually track the original standard C type the argument type was typedef'ined to. But wanted a more syste...

Calling member functions from DLL (AI library for games)

My problem is this: I am trying to implement a C++ library which can call functions in the base EXE. I am trying to have a minimum amount of code on the EXE side to get the functionality to work. At the moment I have DLL-side entities which are created by DLL function calls. These entities hold a container of "actions" which is just a ...

Dll file and Rich text box

Can I load dll file into rich text box using C#? The dll file will be telnet.dll ...

Creating a shared MFC Dialog: Regular DLL or MFC extension DLL

When creating a MFC DLL project in VC++ 2005, you get a screen "application settings" with a choice of Regular DLL with static/dynamic MFC, or an MFC Extension DLL. We want a DLL that contains a few common dialogs, so we can use them in other projects e.g: CGetNameDlg *dlg = new CGetNameDlg(); dlg->doModal(); string name = dlg->getName...

Run a dll file in PHP

Hi, i have a dll file with me. I know the source code of it and also know what methods it has. What i want is to call that dll file through php. I should be able to pass parameters to that dll file and return values from that file both in PHp. After a google search what i find is, we have COM and DOTNET class available in php for reading...

Apply an App.config to my DLL assembly?

I'm writing a class library as an abstraction to use for logging in any application, service, etc. that I write. I'm making it decently robust by making it very configurable to suit my needs for most application/service logging scenarios that I come across. The config is designed to specify things such as: What logging level to write ...

Why does curl require both .lib and .dll to work?

I just downloaded curl and managed to build a programe with it. What I don't understand is why it requires both curllib.lib and curllib.dll ? In my opinion either curllib.lib or curllib.dll should be enough, why both? Also I've searched through the source but doesn't find anywhere it uses dlopen to load curllib.dll, so why is curllib....