dll

Registering a dll returns 0x80020009 error

I am trying to register with regsvr32.exe the prnadmin.dll (on a Win7 target machine) but i get this error 0x80020009 Any suggestions please? ...

.NET: Writing DataAccess dll

I would like to write all data relations processes (general functions regarding with DataAccess via .NET) in dll and I want to use it repeatedly. What kinds of functions should have in that dll? Some want to use Stored Procedures , Some with Statements. Can you all suggest me? Please guide me! Thanks all! ...

BadImageFormatException when loading 32 bit DLL, target is x86

I have a DLL (FreeType) which is certainly 32-bit (header: IMAGE_FILE_MACHINE_I386). I want to use it from C# code, using DllImport. Target of my application is x86, IntPtr.Size is 4, process is 32-bit. But I get BadImageFormatException (Exception from HRESULT: 0x8007000B). What can be wrong? Of course I use 64-bit Windows 7. ...

how to us .dll in java based web application

i have a web based j2ee application. is there any way to use .dll file in it. ...

Calls to singleton library

I have a singleton class, and I will compile it as a library static(lib) or dynamic(dll). Is it guaranteed that calls to same file in a machine always refer to same and unique instance in both cases? Edit: What if a process loads two different library and different functions from these libraries want to use instance of singleton class....

Windows 7 dsound.dll load from dll crash

I'm getting a crash when loading dsound.dll from another DLL in Windows 7. The following code crashes: #include <Windows.h> #include <mmreg.h> #include <dsound.h> #include <assert.h> HRESULT (WINAPI *pDirectSoundEnumerateA)(LPDSENUMCALLBACKA pDSEnumCallback, LPVOID pContext); HMODULE hDsound; BOOL CALLBACK DSEnum(LPGUID a, LPCSTR b, LP...

What is the "Cannot set allocations" error, who emits it and what can I do about it?

We've been plagued for several years by occasional reports from customers about a non-descript error message "Cannot set allocations" that appears on startup of our app. We have never been able to reproduce the problem in our own test environments so far. I have now run out of ideas for attempting to track this down. Here's a collection ...

.NET: How does the use of components in .NET differ to pre-.NET?

How does the use of components in .NET differ to pre-.NET? Are the differences as follows? .NET components don't have to be centrally registered on a machine and can merely be invoked at run-time from a specified location if .NET components are 'registered' in the GAC, problems associated with different versions of the same DLL ("DLL ...

How can I tell whether two .NET DLLs are the same?

I have the source for a DLL and I have a compiled version of it lying around somewhere. If I compile the source it will have a different date to the already-compiled version. How can I tell whether they are in fact the same and have merely been compiled at different times? ...

How to access excel with out using dll

Hi, I want to access (open and read) the excel file of any version without using the office dlls in ASP.NET. Is it possible?. If so how is it possible?. Help me in this case.. Thanks in advance. ...

How to share classes between DLLs

I have an unmanaged Win32 C++ application that uses multiple C++ DLLs. The DLLs each need to use class Foo - definition and implementation. Where do Foo.h and Foo.cpp live so that the DLLs link and don't end up duplicating code in memory? Is this a reasonable thing to do? [Edit] There is a lot of good info in all the answers and comme...

How to port a C#.net .dll to siverlight for more platform independence?

I have coded a dll library using the basic utilities of C#. But for platform independence, I want to port it to silverlight. Is it possible? If possible, then how to do it? Or do you guys have any other suggestion? ...

How to find a particular dll is threadsafe or not ? Ant API/tool for this?

For example, i downloaded Gecko 1.9.1 SDK. It contains js3250.dll. How i can be sure that this dll is thread-safe? Advance Thanks -Parimal Das ...

Howto troubleshoot vb6 dll 800a01ad error in c# application

I have a dll that I created from a VB6 project that I am now using in a c# project. This has worked before but now when I try to return to the c# project to fix a bug, the program get a COMException stating roughly translated: Could not create an instance of COM-component with CLSID {085E3494-9F78-47D5-B0E6-FA460FD3CBED} from IClassF...

Loading multiple copies of a group of DLLs in the same process

Background I'm maintaining a plugin for an application. I'm Using Visual C++ 2003. The plugin is composed of several DLLs - there's the main DLL, that's the one that the application loads using LoadLibrary, and there are several utility DLLs that are used by the main DLL and by each other. Dependencies generally look like this: plug...

how to use dll injecting?

i was looking how to inject a dll into a program (exe, or dll, etc). i have been googleing dll injecting but i have not found anything that is very helpful :(. i have not worked with dlls very much so im not sure on what to do, i really could use some help on this. uhh the only thing i have really found is setwindowshookex but i can't f...

Access DLL without instantiating

I wrote a simple dll with only 2 functions in it. Is there a way to access these functions without having to instantiate them on every page? Can't I add them to the web.config somehow as assemblies thus giving me access to them? ...

Importing a C DLL's functions into a C++ program

I have a 3rd party library that's written in C. It exports all of its functions to a DLL. I have the .h file, and I'm trying to load the DLL from my C++ program. The first thing I tried was surrounding the parts where I #include the 3rd party lib in #ifdef __cplusplus extern "C" { #endif and, at the end #ifdef __cplusplus } // ext...

which .dll files do i need for Windows mobile 6 bluetooth development

Hi everyone, i'm developing bluetooth app on VisualStudio2008 windows mobile 6 sdk.I searched that i will be needing using microsoft.windowsmobile.sharedsource.bluetooth; for C# I don't know what .dll files i need. Could any1 give me a dl link ? if possible some example codes on C# on how to discover other bluetooth devices would be ...

Calling WPF Control Library

Hi all, When I want to show user a (windows) form which resides in a DLL (in this case Form1), I use the following code from another executable; Assembly a = Assembly.Load(System.IO.File.ReadAllBytes("mydll.dll")); Form MyDLLFormInstance = (Form)a.CreateInstance("myNamespace.Form1"); MyDLLFormInstance.Show(); Now, I created another D...