dll

DLL administration

I build some dlls to be used in a big application, and have a team working in the dlls heart of the application and another team working in the gui, but i am having a problems in the deployment of the dll's when a change is done, because the gui team needs or copy the new dll to the project folder, or delete the old reference and add the...

Handling exception from unmanaged dll in C#

Hello. I have the following function written in C# public static string GetNominativeDeclension(string surnameNamePatronimic) { if(surnameNamePatronimic == null) throw new ArgumentNullException("surnameNamePatronimic"); IntPtr[] ptrs = null; try { ptrs = StringsToIntPtrArray(surnameNamePatronimic); int resultLen = M...

Handling exception from unmanaged dll in C#

Hello. I have the following function written in C# public static string GetNominativeDeclension(string surnameNamePatronimic) { if(surnameNamePatronimic == null) throw new ArgumentNullException("surnameNamePatronimic"); IntPtr[] ptrs = null; try { ptrs = StringsToIntPtrArray(surnameNamePatronimic); int resultLen = M...

EXE stops working if containing folder is renamed. MSVCP90.dll

This popup comes up as soon as the app is started: The program can't start because MSVCP90.dll is missing from your computer. Before anyone says "install the VC++ runtimes", wait! If I rename the folder containing my .EXE then the app runs. If I rename it back, it breaks. The app has been running for weeks without any changes to my...

clickonce, adding native dll's, com free reg

Hi there I'm using regfree com to deploy an activex component with clickonce. The component is dependent on some native dlls that should reside in the same directory as the component. If I manually copy the native dlls to the install dir of the clickonce app ( I located the directory by using System.Reflection.Assembly.GetExecutingAssem...

Asp.Net Dependency question

Hello, I have a dll, call it dllA and dllA references dllB. When I put dllA in the bin folder of my asp.net application, and call a method in dllA that references dllB, the asp.net application throws an error saying can't find dllB. I have to add dllB to the asp.net bin folder as well. My question is why, if I'm only referencing classes...

Struct size containing vector<T> different sizes between DLL and EXE..

I have this situation where an EXE program imports a DLL for a single function call. It works by passing in a custom structure and returning a different custom structure. Up till now it's worked fine until I wanted one of the structs data members to be a vector < MyStruct > When I do a sizeof(vector< MyStruct >) in my program I get a si...

Loading .dll to use in Visual Studio 2010

Hello all, complete newb quesiton here, but I'm new to C# and Visual Studio 2010. How do I load .dll's into Visual Studio 2010 so I can write C# programs using their methods? More specifically, I'm trying to write a twitter application using TweetSharp that will be run via command line. ...

Problem in DLL update in .Net

My site stops working when I drop a new DLL in the bin of my virtual directory. It took to much time to work properly again. Sometimes I have to reset the IIS. Its happening since I upgraded my .Net framework from 1.1 to 3.5 ...

Marshalling an array of shorts: "Mismatch has occurred"

I have the following C++ struct: typedef struct FormulaSyntax{ WORD StructSize; short formulaSyntax [2]; } FormulaSyntax; I have a DLL method which takes an instance of this struct. Here's what I've tried on the C# side: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)] public struct For...

Visual Studio 2008 - Project without DLL

Hi, I need to add a reference to a project to do some reflection. But it seems that this project doesn't have a .DLL file (even after building it). Can this happen? ...

Class library compiled .DLL .NET

Im trying to compile a simple class library project,its from Source Safe. However,when i "build" project,then right click on project's BIN --> DLL --> Choose Properties,the Date modified doenst change,and i dont know if the DLL was recompiled with the new version. Any ideas? ...

How do I use an unregistered dll from c#?

I have a custom dll (not registered) that I need to access via c#. How do I do this without registering the DLL? Edit: It is a C++ dll. ...

Is it possible to use a DLL created using C# in an unmanaged VC++ application?

I have a DLL that I wrote in C# and I want to use it both with C# applications and applications written in unmanaged VC++. Is this possible? ...

App.config path not correctly interpreted by ASP.NET Application

Hello everyone ! I'm working on a very old project (2000) in VB6 which was "modernized" and upgraded to VB.NET 3.5. I've centralized every old INI configuration file into one MainApp.config, which is referenced by the app.config of every component. There's an VB ASP.NET website in the solution, which uses DLL components, which are look...

Qt performance when running executable outside of Qt Creator is awful!

I just tried running a program that I've been developing with Qt outside of Qt. I double clicked on the program in /release, resolve all the missing DLLs, and find that my app has awful slow performance compared to when it is launched from within Qt Creator. What might be the reason for this?! ...

Using dlls compiled in Visual Studio 2010 with target .NET Franework 4.0 in Visual Studio 2008

I know it's a bit close to Can I use .NET 4.0 beta in Visual Studio 2008? But my question is a bit different. I have a project that now uses .NET 4.0 (target .NET Framework 4.0) in Visual Studio 2010. Is it possible to use the project compiled dlls in Visual Studio 2008? How? I don't want to use .NET4.0 directly in Visual Studio 2008, ...

One big executable or many small DLL's?

Over the years my application has grown from 1MB to 25MB and I expect it to grow further to 40, 50 MB. I don't use DLL's, but put everything in this one big executable. Having one big executable has certain advantages: Installing my application at the customer is really: copy and run. Upgrades can be easily zipped and sent to the cus...

C++ .NET DLL vs C# Managed Code ? (File Encrypting AES-128+XTS)

I need to create a Windows Mobile Application (WinMo 6.x - C#) which is used to encrypt/decrypt files. However it is my duty to write the encryption algorithm which is AES-128 along with XTS as the mode of operation. RijndaelManaged just doesn't cut it :( Very much slower than DES and 3DES CryptoServiceProviders :O I know it all depend...

Inconsistent Behavior From Declared DLL Function

Why might my GetRawData declared function return a correct value when called from my VB.NET application, but return zero when called from my ASP.NET page? The code is exactly the same except for class type difference (Form / Page) and calling event handler (Form1_Load, Page_Load). Note: In the actual code, #DLL# and #RAWDATAFILE# are b...