dll

Check if a DLL is present in the system

Hi, quick question. I want to find out if a DLL is present in the system where my application is executing. Is this possible in C#? (in a way that would work on ALL Windows OS?) For DLL i mean a non-.NET classic dll (a Win32 dll) (Basically I want to make a check cause I'm using a DLL that may or may not be present on the user system,...

vb6 and vb .net interop on vista 64 versus windows 7.

I have written a .net dll that I can successfully call from vb6. Deployment to xp, vista 32, and vista 64 boxes have been working. It is not working on windows 7 64 bit. I cannot run regasm.exe /codebase name.dll on the end users machine because they are not admins. Any ideas on helping me with deployment would be greatly appreciated...

What does the code "DECLDIR __declspec(dllexport)" really do?

#ifndef _DLL_TUTORIAL_H_ #define _DLL_TUTORIAL_H_ #include <iostream> #if defined DLL_EXPORT #define DECLDIR __declspec(dllexport) #else #define DECLDIR __declspec(dllimport) #endif extern "C" { DECLDIR int Add( int a, int b ); DECLDIR void Function( void ); } #endif What does the code DECLDIR __declspec(dllexport) really do? ...

PInvokeStackImbalance when including a C DLL into C#

I have written a C DLL and some C# code to test including this DLL and executing functions from it. I am not too familiar with this process, and am receiving a PInvokeStackImbalance exception whenever my DLL function is called from the C# source code. The code is as follows (I have commented most code out to isolate this problem): C# In...

Passing objects between C# and C

Hi, My application consist of C# code with unmanaged C dll calls. In my C# code I have an object/class where its properties are both system types such as string and int and other objects I have defined. I would like to pass this complex (Graph.cs) object to my C (dll) code, what implementation would you suggest here? I have tried movin...

Problem with dll called in JSFL

I need to create dll using C. But I saw some problems. OK, first: I need function in dll library to compute angle of the line - tgA = dy/dx. Angle = arctg(dy/dx). And I define this in file framework.c: JSBool computeAngle(JSContext *cx, JSObject *obj, unsigned int argc, jsva...

Can I use a C# dll with unsafe code in VB.NET?

There is an FastBitmap class for C#, that lets you acces and modify pixel information of am bitmap. I have already used it in some C# project, but I need it now in VB.NET. The problem is that that class uses unsafe code, that is not supported in VB.NET. The question is. Can I compile the FastBitmap class in a dll and use it in VB.NET? ...

Within a DLL, how is the function table structured?

I've been looking into the implementation of a device library that doesn't explicitly support my operating system. In particular, I have a disassembled DLL, and a fair amount of supporting source code. Now, how is the function table/export table structured? My understanding is that the first structure of the .data section is a table of ...

Compiling a single .cpp in VS 2008 w/ the Command Line

I was using MinGW's GCC manually without a makefile to compile a DLL. It's since proved ridiculously hard to get more than one MinGW DLL running in an app compiled with Visual Studio. I've decided to compile the DLL with the Visual Studio 2008 Command Line, but I'm having a hard time figuring out how to do that. It seems there are sizab...

Using .lib and .dll files in Linux

Hi all, I have to make a project to run successfully on a Linux machine. Right now my project works very well on windows machine. On Windows machine it is compiling and working fine. My project is using one ".lib" and one ".dll" file to do the tasks successfully on Windows. Can i use the same .lib file and .dll file on linux machine to...

Load an assembly dynamically and create an variable of its type

I am trying to load an assembly dynamically and create an variable of its type: Assembly Ass= Assembly.LoadFrom(@"d:\abc\microsoft.office.interop.excel.dll"); foreach(Type Excel Assembly.Gettypes()) { // here now Type contains // Excel.nameSpace="microsoft.officce.interop.excel" // now i need to creae an variable of type ...

How can I create a working extension-dll for Fiddler with MS V C# 2008 EE?

Hello stackoverflow, this question reltates to TheChange's Question. The requirements changed so I need to use an extension in Fiddler with the same task. How can I create an extension with C# which will be excepted by Fiddler? I can create an dll in C# - I also tried the old .net 2.0 compiler for it.. I first tried to use my extensi...

converting projects to single dll

hi all i have finished my web site ,i used netiers to generate DAL and then i copied the .data and .datasqlclinet and .entities projects to my website and add a reference to them and i use the netiers functions and proc to develop my site ,,but i wana know how to add this 3 projects generated by netiers to a single dll and use it in my s...

What is the best way to update an ASP.NET web application DLL?

I have an ASP.NET web application which contains a DLL in the /bin folder 'Example.dll'. If I do not have any mention of 'Example.dll' in the Web.config, is it safe to simply replace it with a newer version of 'Example.dll', and the application will use it? If not, what steps are needed? ...

Finding legacy calls within ASP.NET DLLs

I have an ASP.NET web application that leverages 5 DLLs. This web application and its DLLs are all very old, and occasionally we find some deprecated call or something that has been broken over time. Currently I am getting this error, which I believe is a .NET active directory call which no longer is present in the latest version. Me...

Why does this program crash: passing of std::string between DLLs

Hello together. I have some trouble figuring out why the following crashes (MSVC9): //// the following compiles to A.dll with release runtime linked dynamically //A.h class A { __declspec(dllexport) std::string getString(); }; //A.cpp #include "A.h" std::string A::getString() { return "I am a string."; } //// the following compil...

ATL Dll Fails to register with XP

Hi, I created a simple COM object with ATL VS 2008. I can successfully register the dll in my machine and use it. However, I tried to register the dll with a XP installed machine with no VS 2008 installed. But this does not seem to be work. Then, I installed the VC 2008 redistributable SP1, and tried. Still the registration is failed...

Stack calling convention between .NET & C on WinCE 6.0

Hi there. I'm porting a DLL written in C from WinCE 5.0 to WinCE 6.0 on an ARM target. This DLL is called by a .NET software. On WinCE5.0, everything runs fine. On WinCE6, I have the following problem: on InitInstance() of my DLL, I can call anything without problem (for example MessageBox()) or uses recursivity. Passed that point, th...

How do I resolve ambiguity between my project DLL and a DLL in the GAC?

I am currently working on another issue in my ASP.NET MVC project. In an effort to better understand what is happening in the codebase I decided to reference the ASP.NET MVC Source Code project in my own project by adding the solution file to my references. When I did this, I started getting HTTP 404 errors. It just so happens I had...

Can you statically link the same protobuf message into multiple DLLs - and then have those DLLs work together?

We are using google protobufs to pass data around on the wire. The server side of things is plugin-like so several of the modules handling the protobuf messages are DLLs. Some DLLs depend on others and use the others' messages to define their own messages. So, A.DLL has a.proto which generates a.pb.h/cc with a message class MsgA. Usi...