dll

Monitor RunTime behavior of a DLL

Hi, I am using a self made dll using VC++ in C#. I wanted to ask, is there any way by which I could monitor the run time performance the dll. Like, once the C# code has made a call to the dll and once when it is loaded, can I monitor the behavior of the dll? I am in development phase and the dll code-logic when run independently, ru...

why does dependency walker shows 32 bit dll as 64 bit?

During some analysis I had this situation on a Windows 7 64-bit machine: I loaded notepad.exe with depends and it shows me dependencies located on System32 as being 64 bit! Is is something buggy in depends or something else like redirection of dependencies? Any idea on how to interpret the output of depencency walker? ...

What is dll hijacking?

Simple question: What is dll hijacking? I read a lot about which applications are vulnerable, but not a lot of depth as to why. Answers appreciated. ...

How to embed version number & copyright into my DLL?

I have a VB Express 2008 class library and would like to embed a version number and some copyright/contact info. How do I do that? ...

Recreating a COM DLL, do I need to worry about the GUID?

A change needs to be made in a DLL. The DLL was originally coded in VB6 (not by me), and the source code lost. It is very simple in its functionality, so I recreated it from scratch, but I only have access to VB Express 2008. I created it first as a normal DLL then realized it had to be a COM DLL. Fortunately, an excellent article at h...

C# app can't find Dll when compiled with /MDd flag

Hi, I have a C# application which links to a few c# DLLs which in turn use bindings to call c++ functions in other Dlls. This all works fine if I compile the c++ Dlls with /MTd but when I use /MDd I get an XMLParseException in my C# app complaining that it can't find any Dlls(it fails to find the first of my Dlls that I use). My best g...

What is in a DLL and how does it work? - 12 questions on DLL's

I'm always referencing DLL's in my C# code but they have remained somewhat of a mystery which I would like to clarify. This is a sort of brain dump of questions regarding DLL's I understand a DLL is a dynamically linked library which I understand means that at run time another program can access this library to get "functionality". Howe...

Making a c# winforms application useable as a dll from an unmanaged mfc application

I'm wondering how I would go about converting an existing c# winforms application to a class library and then call it from an mfc application. Are there any references on how to do this? I've tried googling, but, besides the fact that it will need the ComVisible attribute set to true I haven't found much information. Thanks. ...

Copying DLL out of WAR results in LFs becoming CRLFs

I am using the Java Native Interface to include some statically compiled code in with my Java application. Particularly, I've got a DLL file with the compiled code in the WAR that contains my application. Unfortunately, the class loader can't load the DLL from inside the WAR (from preliminary research... if this is wrong, be sure to tel...

Calling F# (.Net dll) code from php

Hello, I was wondering if it was possible to call some F# code from php. It seems like Phalanger does the trick. Is anybody using it ? For this solutions and others( if there are any?), what requirements does it have on the server to run the code ? Thank you ...

dynamically running a DLL at a remote Windows box?

Hello All, Is there a way of dynamically running a DLL at a remote Windows box? Say a user wants to send a his own DLL file to a remote server and run a function in that DLL at the remote site. The user may be able to provide function entry points as well as required parameters, but no more. (e.g. no header file) I am thinking of se...

debugging dll in vb.net web application

I have a vb.net web application in visual web developer 2008 with a dll file and i need to debug a method in that dll. I also have project source files for the dll file itself. How could i make the web application use the source instead of the dll file so that i'd be able to debug it? I've tried debugging the dll project itself, but it's...

How to disable an exe file after first installation?

Does anybody know the solution for this? I create an exe file of my software. After first installation I have to disable the exe, so it cannot be run again because when someone purchases the software from me they can install it only once. ...

How can I replace a merge module with a <file>?

Hi all, I had a problem installing my project on vista and 7 which I mentioned before here. http://stackoverflow.com/questions/3617689/how-to-cope-with-install-error-1920-about-winsxs-merge-modules-in-vista-and-7 I see that post for a problem may be similar of mine, and there is a solutuion author tried. http://stackoverflow.com/quest...

visual studio copy dll refrences to output folder

I am trying to extend a certain application. I am using a DLL which comes bundled with that application to extend its functionality. I am using visual studio 2010 express edition. I added a reference to the dll library. In the refrence properties the option "Copy local" is disabled.(greyed out) why is that? I want visual studio to copy t...

Install DLL Server on x64 Windows

I need to install a shell extension (64-bit DLL server) for the contextual menu on any version of Windows x64. I'm able to register the extension just fine (regsvr32) if on the target system I have installed the redistributable files for VS 9.0 SP1 x64 (setup file from Microsoft). However I have to make a setup and cannot require the us...

Reading folder structure of parent Silverlight project from within child assembly

I have a custom Silverlight user control (which resides in a separate DLL we'll call usercontrol.dll) that builds a simple 3D page turning book. I have a project referencing this DLL and the project also has a folder, Pages, that contains all of the pages. The pages are labelled "page_1.xaml, page_2.xaml, ..., page_n.xaml." The number ...

How to use static members and singletons in dll's?

Hi all, actually i'm working on a windows (MSYS/MinGW) migration of our Linux project. With Linux everything works fine, but with windows i got trouble with static members and singletons which have to be used over the context of different dlls. I.e. I've an configuration mapper, which is a singleton build in a config.dll. If i use this...

Compile stand alone exe with Cygwin

I want to make a stand-alone exe with cygwin. I have two options: Staticly link cygwin1.dll If I can statically link cygwin1.dll, then I can get a stand-alone exe. Merge cygwin1.dll with myprog.exe If I can merge cygwin1.dll with my program, the I can get a stand-alone exe. Do not suggest that I use IlMerge. This will not work beca...

.NET DLLs and threads / distinct instances

Suppose I have a .NET dll with class 'B' and function 'C'. I then have a multithreaded .NET program that references the dll. Each thread instances the class 'B' and calls the function 'C'. Upon instantiation the class 'B' allocates all of its own variables on the heap. These variables are used by the function 'C'. Does this create a...