Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I create a DLL in C using Visual Studio?

How can I create a DLL in C using Visual Studio, for a program written in C?

Would really appreciate if anyone could post any direct or forum-page-link for the same.

like image 552
Achilles Avatar asked Sep 12 '12 12:09

Achilles


People also ask

Does C have DLL?

Yes, you can load a shared object (or dynamically linked library) using C code no matter what language was used to create it, as long as all run-time requirements are met. is DLL language dependent?

What is DLL in C language?

In Windows, a dynamic-link library (DLL) is a kind of executable file that acts as a shared library of functions and resources. Dynamic linking is an operating system capability. It enables an executable to call functions or use resources stored in a separate file.

What is DLL in Visual Studio?

A DLL (dynamic-link library) is a library that contains code and data that can be used by more than one app. You can use Visual Studio to create, build, configure, and debug DLLs.

How DLL files are created?

In Visual C++ 6.0, you can create a DLL by selecting either the Win32 Dynamic-Link Library project type or the MFC AppWizard (dll) project type. The following code is an example of a DLL that was created in Visual C++ by using the Win32 Dynamic-Link Library project type.

Which language is used to make DLL files?

DLL files use languages like C or C++, although you'll see C++ more often. You can write your own DLLs to run some code you need if you're willing to learn how to do it.


2 Answers

Here are some sources that will get you started : CodeGuru,MSDN. Enjoy.

like image 84
Scis Avatar answered Oct 12 '22 20:10

Scis


I hope you will find this information of the Microsoft website interesting.

It explains how to create and use a dll. The most important thing is to create a New project and then select a Win32 Console Application. Afterwards, in the Application Settings page, under Application type, you have to select DLL.

like image 37
Jose L Avatar answered Oct 12 '22 20:10

Jose L