Senin, 22 Juli 2013

Xathrya Sabertooth

Xathrya Sabertooth

Xathrya Sabertooth


Building a Dynamic-Link Library using C++ MinGW

Posted: 21 Jul 2013 03:19 AM PDT

Dynamic-Link Library or DLL, is implementation of shared library concept in Microsoft Windows and OS/2 operating system. Usually it has file extension DLL. The file formats for DLL are the same as for executable file – that is Portable Executable (PE) for 32-bit and 64-bit Windows, and New Executable (NE) for 16-bit Windows.

In this article, we will discuss about how we can create a .dll file using C++ and compiler MinGW.

The Files

We will use three files: my_dll.h, my_dll.cpp, and client.cpp

The my_dll.h is a header file where we place declarations:

  // my_dll.h  #ifndef _MY_OWN_DLL_H__  #define _MY_OWN_DLL_H__</pre>  #ifdef __cplusplus  extern "C" {  

Tidak ada komentar:

Posting Komentar