dll

reverse-engineering dependencies between .NET dlls

Hi, I have two .NET dll's, where one calls some methods located on the other. I need to know what methods exactly are being called between those two dlls to map the dependencies between these two dlls. (No public interface is available). Any idea which tool does the job? ...

How to use the VIPS dll ?

I have just started learning C# and ASP.NET for my project and i need to use the VIPS(VIsion based Page Segmentation) DLL but i don't know how to go about doing that as im new to C# and ASP.NET.I know how to create and use a simple DLL using C# but then i want to know how to find out the names of the classes and/or functions inside the V...

C# dll files compilation

Hi, I wonder, if C#.NET is managed language, why does it produce .dll file and not some .mdll or something? Or is dll compiled to native code? Would this be even possible? I mean, to have dll witj calls to managed libraries? Thanks. ...

How to create a CUDA dll?

Hi all! I need to use cuda in my application. But i can't create a dll. Some code here. __global__ void calc(float *a, int n) { int idx = blockIdx.x * blockDim.x + threadIdx.x; float val = a[idx]; if (idx < n){ a[idx] = 4.0 /(1.0 + val*val); } } ... extern "C" __declspec(dllexport) void GPU_Code ( f...

Programming Language for Creating DLL: C++ or C#

Hi, This is NOT a Programming doubt! I am going to write a DLL for some application. I have two options to choose from: C++ or C# In which language I should write DLL? Does that affects functionality? I am a completely newbie and Unaware of both C++ and C# (but Some Small programs in C#). What are Pros and Cons about Writting DLL in ...

How to debug C DLL when called from a C# application in Visual Studio 2008

I have a C# windowed application that needs to make use of a third-party API, which is offered only in C. To solve this problem, I've created three projects within VS2008: two C# projects and an empty C++ project. One C# project is my "Wrapper" project, responsible only for producing managed code that calls the C DLL. The other C# pro...

.NET Remoting client.exe needs server.exe

I have a working distributed application that has a rather big blemish. The client.exe needs the server.exe to work. The reason for this is that the client and server use a MarshalByRef Class (which exists on both sides in the form of a .DLL) which contains a reference to the server. Is there any way I can rearrange things so that I do...

DFS Locking ASP.Net DLL's through FTP

Hi everyone, I am having an ongoing situation where when I try to upload files via FTP that I get an error that the DLL is locked and currently cannot be overwritten. This is only DLLs that this is happeneing to and normal files (aspx, ascx, css etc) can be overwritten fine. Our Setup We have 2 webservers that are kept in sync via DFS w...

Using MinGW built dll in a Visual Studio 2010 C++ project

Hi, I have build a dll and now I want to use this dll in a Microsoft Visual Studio project. g++ -O0 -Wall -c -fmessage-length=0 -osrc\MyLib.o ..\src\MyLib.cpp g++ -shared -Wl,--out-implib=MyLib.lib -Wl,--output-def=MyLib.def -oMyLib.dll src\MyLib.o -lwsock32 The dll works fine when I use it in a "gcc project". I have tried different ...

Drag and drop files/text to tray icon (C#, WindowsForms)

I'm trying allow drag and drop to the tray icon on my application. I know it's impossible to do this with the higher level C# WindowsForms API, since NotifyIcon doesn't support drag events. So with a little help of a more windows-experienced friend I set out to try this via Win32 API. The idea was registering a hook in the tray window ...

What’s the correct way to build the SQLite FTS extension as a DLL?

What’s the recommended way to build the SQLite FTS3 extension as a Windows DLL? I’m having the following problem: fts3_tokenizer.obj : error LNK2005: sqlite3_api already defined in fts3.obj The macro SQLITE_EXTENSION_INIT1 is used in both fts3_tokenizer.c and fts3.c. It creates a global variable named sqlite3_api, and since this ...

what is the name of the functions inside a dll

how to know what function names inside a dll? So that i can use it in in java with JNI ...

DelayLoading a DLL and the associated .lib file

I am attempting to delay load wintrust.dll and crypt32.dll in my application (these are used to perform digital signature/publisher checks in a DLL). I am using VS2008. After adding these two DLLs as entries in the Delay Load property in the Linker section of my project properties, I still get LNK4199 warnings that nothing was loaded fro...

Cant load interop.PRNADMINLib in c# on Windows 7 64 bit

Hi have a project that uses the functions in prnadmin.dll, in order to the use them I reference the interop.PRNADMINLib.dll It all works fine on 32 bit but I get the following error on 64 bit: Could not load file or assembley 'Interop.PRNADMINLib, version=1......... I have registered the prnadmin.dll on the 64 bit system using regs...

Why native C++ Win32 DLL does not working properly in C++/CLI managed code?

Hello, I have native C++ DLL code to call from C++/CLI functions. It's not working properly. I am copying those areas of code here which causing problems. Note: I made native C++ stub and called that native dll's functions and it worked fine as per context. Native C++ DLL: void ExecutorFactory::GetTESService(string a_strFileToProce...

Can I link MSVCRT statically with mingw?

I have C program I compile with mingw on Windows. It works fine but requires MSVCRT.DLL. I want to link that statically (like I can do in Visual Studio). Is this possible? I tried -static flag to gcc and it didn't make any change. What about C++ program using also standard C++ library? ...

Validity of .NET Assemblies Causing Runtime Error

Hello, I created a library of classes in C++ and compiled it to a .dll. Everything compiles fine in .NET framework 3.5 using VS2008. Then I want to reference my .dll in a C# project I'm working on in VS2010. The .dll is linked fine and all the methods are loaded properly (meaning if I type a class variable and then a ".", it drops do...

Multidimensional array and dllhijacking

I'am currently working on a tool which checks if your apps are vulnerable to dllhijacking. Anyway, there's a section in my code which doesn't look very elegant. Now there are just two sets, but I want to add some more. Is there another way instead of just adding for loops for each set? LPSTR szFileExtWireShark[] = {"airpcap.dll", ".bfr"...

Passing PChar / *char between C++ and Delphi DLL

I have a C++ program, that calls Delphi DLL to initialize a buffer that contains chars. I am testing out the interface to make sure the data are passed correctly: In C++ program: char * pMsg = (char*)malloc(3); //allocate buffer Init(pMsg * char); //Delphi DLL function In Delphi DLL: procedure Init(pMsg:PChar); var pHardcodedMsg...

Embedding Python on Windows: why does it have to be a DLL?

I'm trying to write a software plug-in that embeds Python. On Windows the plug-in is technically a DLL (this may be relevant). The Python Windows FAQ says: 1.Do not build Python into your .exe file directly. On Windows, Python must be a DLL to handle importing modules that are themselves DLL’s. (This is the first key undocumented fac...