I have created a dll using IronPython.
How can I use the dll in Visual Studio C# ? I have tried to add the dll using AddReference but I couldn't see its contents.
Related
Why does a very simple C# winform application generate both an .exe and a .dll? I'm using Visual Studio 2022, version 17.3.0.
I expected just an .exe.
I am using Visual Studio 2015 (Update 3) in Windows 10. I have one c++ project which is written with platform toolset v120. Now I want to use the codes of this project in my C# application. So I decide to create a C++/CLI Project (Class Library) and write a wrapper for the mentioned codes to be able to use them in my C# application. The problem is that when I change the platform toolset of my C++/CLI project to v120, the compiler give me this error:
LNK1104 cannot open file 'MSVCMRTD.lib'
But it works with the default platform toolset (v140). Please be informed that I don't have written any code in my C++/CLI project. I think one of the solutions is to install the whole Visual Studio 2013 besides 2015 version which is not a good solution. (I am not going to even try it). Any solution except installing Visual Studio 2013 would be welcome.
I found the solution and bring it here for further uses. I searched the library in my computer and add it to the "Linker -> General -> Additional Library Directories" in my project's properties.
I'v Visual studio 2013 Professional with update-4.
I have a DLL library, written in Visual C++ and compiled in Visual studio 2012.
I wrote a wrapper (DLLImport attribute) to call native c++ dll function through my C# methods. I have also installed Visual C++ redistributable 2012 for visual studio 2013. I have also placed C++ DLL file in current working directory (debug directory)... I also used dependency walker, but could't get any idea from dependency walker, because dependency walker has same error and message from those .exe and .dll modules which are properly working and this native c++ dll. So I can't get help from dependency walker.
but even all doing above, I'm unable to load C++ dll file through my code ...
I receive this error
"unable to load dll, the specified module couldn't be found. (Exception from HRESULT: 0x8007007E)
Please help me. Thanks
I'm a C# programmer who hasn't used C++ since the pre-.Net days.
I have a C# .Net DLL that I use with other C# programs. In the calling program in Visual Studio I simply do an "Add Resource..." and a Using" statement in the code that calls into it and voilĂ ! there it is.
Now I have a customer who wants to access our DLL in a Visual Studio 2010 C++ (CLI) program. So I want to make a practice C++ program that uses our DLL. What's the equivalent of Add Reference in a C++/CLI project and what do I put in the program to expose the namespace for my DLL? Where does the DLL have to physically be? In the Solution Explorer in Visual Studio for the C++ project I don't see the same things as I do in a C# project.
Right click on the project in Visual Studio, and select "References". You should have a dialog with a few references already attached ("System" and a few others perhaps). Click "Add New Reference" and browse to the assembly (or project if it's in the same solution) that you want to use.
Have you read the knowledgebase on calling native (.net) code from c++? It is about Visual Studio 2005, but the process should be the same.
How to call a managed DLL from native Visual C++ code in Visual Studio.NET or in Visual Studio
And there is a related (identical) question on here as well:
using c# dll in project c++
Edit since I missed the bit where it's about a managed C++ project:
How to add references to a managed Visual C++ project
.NET references
.NET references point to shared assemblies. For example, the assembly System.Windows.Forms.dll is a standard assembly for accessing the Windows Forms classes. In order to use this assembly in a Managed C++ application, you simply have to reference it with a #using preprocessor directive, as shown here:
#using <System.Windows.Forms.dll>
I want to apply dll to my aspx (with code behind), I didn't create a project, just opening the aspx and cs file using visual studio 2012
http://www.microsoft.com/en-us/download/details.aspx?id=8422
Microsoft Developer Support OLE File Property Reader (the dsofile.dll)
I'm trying to read the file properties by using this dll.
What is the easiest and fastest way to import this dll without using add reference in visual studio?
i put the dsofile.dll under the bin folder, and use "using DSOfile", but the dll not been found.
It says here:
The Dsofile.dll sample file is an in-process ActiveX component for
programmers that use Microsoft Visual Basic .NET or the Microsoft .NET
Framework.
These articles will tell you what to do:
Calling COM Components from .NET Clients
C# 4.0, the Dynamic Keyword and COM