dll

Reference DLLs not loading in Visual Studio 2010

I'm working on a C# 4.0 project in VS2010 and needed to use some older DLLs containing controls that were created in C# 3.5 on VS2008. When I first add the DLLs to the references, I was able to see the namespace via intellisense and create an instance of one of the controls, but when I go to build, it gives me the following error: The ...

How can I use a .Net dll in vba on a users machine

I can access the dll in question on my dev machine and have created a .Net setup project. On a VM I install the setup.exe and it installs .Net. After installing I can see all of the public members when I use it in Excel vba but when I run it I get either "429 can't create object" or "Automation error". ...

How do I use functions from a DLL?

How do I use functions from a DLL? I'm a total newbie and I don't really understand how to use functions from a DLL file. I'm trying to use MS Visual Studio 2008 (C++). My understanding is that the DLL files will have corresponding header files and as long as I include the header files and call the functions normally in my code, it shou...

Why does update to a dll need recompilation and sometime not?

Why does update to a dll need recompilation and sometime not? ...

Can you have a web application project produce multiple DLLS?

I have a VS 2008 web application project that is getting large. My structure looks like: - WebRoot - Common/ - Foo/ - Bar/ - Baz/ so I end up with a single Webroot.dll that contains the code for common, foo, bar, and baz. Is it possible to set it so that I end up with common/ in webroot.dll, and code in foo ends up in foo.dl...

Resolving LNK4098: defaultlib 'MSVCRT' conflicts with ...

This warning: LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library is a fairly common warning in Visual Studio> I'd like to understand the exact reason for it and the right way (if at all) to handle it. This comes up in a debug build, compiled with \MDd. The project is linked to th...

C#.Net Calling a C++ DLL

Hi I got a DLL(without the sourcecode) which exports like this: ?ReceiveCoreDataPtr@@YAXPAX@Z ?xenoAddRigidBodyAngularImpulse@@YAXHMMM@Z ?xenoAddRigidBodyForce@@YAXHMMM@Z ?xenoAddRigidBodyForce@@YAXHMMMMMM@Z ?xenoAddRigidBodyLinearImpulse@@YAXHMMM@Z ?xenoAddRigidBodyPointImpulse@@YAXHMMMMMM@Z ?xenoAddRigidBodyTorque@@YAXHMMM@Z ?xenoCha...

Help creating a dll for a custom control

I'm going to ask a newbie question here. I need to use a control I found online in my code, but it was written in the wrong language. It is in C# and I am using VB.net for work. I have all of the code for the control which works beautifully in C#, but I had issues with it not working very well in VB. The source code and a demo projec...

Are there two kinds of .dll files in Windows?

I know that some dll files have to be registered with the regsvr32 command. I tried that on a dll files I got and got an error message saying that "the entry-point DLLRegisterServer was not found." I heard that to use theis dll file you have to use "ctypes." So what are you supposed to do with it? ...

How to debug a dll

I'm having problems with a dll that I downloaded from somewhere. How can I look inside the dll to debug it? ...

Need to know when application is closing

Is there a way to monitor when an application that is using the dll closes? The DLL and the application are both C#, neither are Windows Forms. I can check when the main application is closing, but I would like for the DLL to see "hey the program is closing and releasing me, I should do this real quick before I die". Any way to do it? ...

Purpose of swt-win32-3064.dll

Can anyone tell me the usage of swt-win32-3064.dll ...

Calling member function declared in another dll

I have created CMyClass,in which defined one method CallMe().when I build this project MyProject.dll is generated. Now in some another project, I want to call CallMe of CMyClass . can anybody tell me how to do it ? Thanks in advance.... ...

Why is my ASP.NET app slow the first time after building a class library?

Hi all I've got a web app solution containing a class library project. Whenever I rebuild the class library and then refresh the page, it takes ages the first time, and is then quick again subsequently. It's almost as if the newly rebuilt dll is having to 'bed in' to the app. Can anyone tell me what's really going on behind the scene...

Not all symbols of an DLL-exported class is exported (VS9)

I'm building a DLL from a group of static libraries and I'm having a problem where only parts of classes are exported. What I'm doing is declaring all symbols I want to export with a preprocessor definition like: #if defined(MYPROJ_BUILD_DLL) //Build as a DLL # define MY_API __declspec(dllexport) #elif defined(MYPROJ_USE_DLL) //Use a...

casting BSTR as char* in a dll; different results depnding on VB/C# caller.

I have a dll function that takes BSTR parameters. These are casted as char* before being used for other things. When the dll is called from VB code this works fine. However, when it is called from C# code, only the first character is pointed to. Both of these are excel addIns for Pre-2007 and 2007+ versions of Office, which call into a...

Where can I get the Microsoft.SqlServer.Mso.dll & Microsoft.SqlServer.ConnectionInfo?

I can't seem to find these anywhere, I want to do some SMO stuff. I am using VS 2010 Ultimate and SQL Express 2008; thank you. ...

Dll resources in resource editor: Where do they come from?

Hi, I have a small C++ dll which was written in Visual Studio (of course). In the solution code, I have a resource file that includes only version information. The strange dact is, that when I frag the compiled dll to Visual Studio, it opens a resource viewer with bitmaps, dialogs and a string table - where do all of them come from?? ...

How can I call a function from a dll ? (C/C++)

How could I call a function from a DLL ? I tried to declare a void pointer and to store in it the result of GetProcAddress... but didn't work. I also wanted to declare an unsigned long int ( I saw it somewhere on the internet ), but then I didn't know how to continue on. :D So, would anybody mind giving me a hand ? ...

Compiling C-dll for Python OR SWIG-module creation, how to continue ??

I reference this file "kbdext.c" and its headerfile listed on http://www.docdroppers.org/wiki/index.php?title=Writing_Keyloggers (the listings are at the bottom). I've been trying to compile this into a dll for use in Python or Visual Basic, but have not succeeded. I'm not familiar with C or GCC to sort out the problems or do the dll co...