dll

how to execute changed interface.

My project build is forked. Now that main and forked build will probably have some interface changes. I have client that tests interfaces in main build and I need to use the same client to test these changes in fork build. what is the best way to test interface changes in both with single client. One thought I'm heading is to get the...

Using .Net classes through COM Objects in Delphi sometimes hangs

I have a set of libraries written in Delphi.NET (.NET 1.1) which I want to use in my Win32 (Delphi) application. For performance related issues, I've decided to follow the COM route. Sometimes, after rebuilding the DLL, when I try to instantiate the objects exposed through COM the win32 application hangs at the CreateComObject call--h...

C++: Dll unloading issue

How can I ensure a dll is not unloaded while any objects in it exist? The problem is, when I was using explict memory management I could delete the dll objects before freeing the dll, however with smart pointers I have no controll over the order there destroyed, meaning the dll may be freed first causeing a crash when trying to free one...

What's the best way to cache data in a C# dll?

I've written a DLL that may be used in a number of ways (referenced by ASP.NET web sites, WinForms, etc.). It needs to load its data from several delimited files that will be automatically updated on a semi-regular basis. For performance reasons, I'm loading the data into a static object (a generic List), and only want to go back to th...

OpenAs_RunDLL in Vista

This isn't strictly a programming question, but hopefully someone here has the knowledge to help me. Running Vista x64, the "Open File With" dialog takes forever to appear when trying to open a file with unknown type. To be specific, the prompt giving the choice between "Use the web service to find the correct program" and "Select a pr...

Debugging my windows DLL that might be invoked from a Windows Service

Hi, I have my SNMP Extension Agent DLL that is called by the Windows SNMP Service (snmp.exe) everytime i do an snmpwalk (another console application) .I want to step into my DLL code that is called from the above Windows Service. How do i go about doing that? Thanks Som ...

How do you create a COM DLL in Visual Studio 2008?

It's been ages since I've written a COM dll. I've made a couple of classes now, that inherit from some COM interfaces, but I want to test it out. I know I have to put a GUID somewhere and then register it with regsvr32, but what are the steps involved? Edit: Sorry, forgot to mention I'm using C++. ...

VerQueryValue Fileversion doesn't match Windows Shell

I'm using the VerQueryValue to retrieve strings from a DLL's VersionInfo. All works fine, except that the FileVersion displayed by Explorer (right-click on file, Properties, Details, "File Version") doesn't match the string I get from the VerQueryValue. All my other calls to VerQueryValue are working fine, but FileVersion seems to retr...

ASP.net Bin directory - dll loading

I need to use a dll in my asp.net application. How do I load a dll not from a bin directory? Perhaps I should mention that the application is a mixture of asp code and asp.net code. so, when I develop it on my machine, I place a dll in the bin directory, but after I move the code to the live environment, I don't want to have a separate...

WinDbg symbol resolution

When using WinDbg, where should the private symbol files (pdb?) be placed? My situation is: I have a DLL which I want to debug. I have the source code and symbol files for this DLL. This DLL is called by another DLL (which I don't have symbols or source for) which, in turn, is called by an EXE (which I also don't have symbols or source ...

C# equivalent of getClassLoader().getResourceAsStream(...)

In Java you can read a file embedded inside a JAR-file by using the following code: String file = "com/company/package/filename.txt"; InputStream is = ClassName.class.getClassLoader().getResourceAsStream(file); What is the C#/.NET equivalent of the above code - that is, how do I read a file I've embedded inside a DLL? Thanks! ...

How do I find out which dlls an executable will load?

If I have a Windows executable, how can I find out which dlls it will load? I'm just talking about which ones that will be loaded statically, not ones it might load dynamically with something like LoadLibrary. ...

can I include dll in exe (in visual studio) ?

To run my App I need AxInterop.WMPLib.dll and Interop.WMPLib.dll that are located in Debug and Release folder is there any way to include those dlls into exe? so my app is available in one file only. ...

Why do I have to copy the libmysql.dll to the apache/bin directory to get the PHP extension to load properly?

I'm on a Windows machine. This seems like it should be unnecessary, but when I do it, everything suddenly works. Is there something wrong with my path? Do I need to add something to it to avoid having to copy DLLs? ...

DLLs, memory mapping, base address, memory usage, and .NET?

Before I start with the real question, let me just say that I might get some of the details here wrong. If so, please arrest me on those as well as, or even instead of answering my question. My question is about DLLs and .NET, basically. We have an application that is using quite a bit of memory and we're trying to figure out how to mea...

Passing VB Callback function to C dll - noob is stuck.

Callbacks in VB (from C dll). I need to pass a vb function as a callback to a c function in a dll. I know I need to use addressof for the function but I'm getting more and more confused as to how to do it. Details: The function in the dll that I'm passing the address of a callback to is defined in C as : PaError Pa_OpenStream( PaSt...

unable to register 3rd party dll

I am new to usage of objects in HTML esp dlls I need to use a 3rd party dll in my html page for which I need the classid which was not provided to me. I have tried using the following command to generate the type library and register it. "regasm XXXXXXXX.dll /register /tlb" After I am done with the above statement, I have used oleview...

Clarion: Possible to use a C# Assembly?

Is it possible to use a C# assembly from Clarion? If not. Is it possible to run a simple console application written in C# and read the output from it back into Clarion? In both cases, how would you do it? In the case of the assembly, would you have to do something special with it for Clarion to get access to it? In both cases, how would...

Best way to 'hide' pass phrases, init vectors etc.. for encryption in a class library

I'm adding some encryption methods to a class library (C# 2.0) and would like to know the best place to put the pass phrase, salt value and initialisation vector required. Is it a really bad idea just to hard-code these into the DLL, or should I be be encoding them and storing them somewhere else? Thanks. Edit: Further info - encryptio...

What is a dll?

This may be a very noobie question, but in today's world of web app development many programmers don't need to deal with dll's much, and thus don't bother to learn about their purpose. So what is a dll? What is it used for? How does it work? How do you create one? In what situations is creating one appropriate? I've been told that d...