Jump to content

Cara membuat DLL sendiri: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

10 April 2025

  • curprev 06:3906:39, 10 April 2025 SanzSkuy talk contribs 1,543 bytes +1,543 Created page with "<syntaxhighlight lang=cpp line> // mylib.cpp #include <windows.h> #define EOF (-1) #ifdef __cplusplus extern "C" { #endif __declspec(dllexport) int tambah(int a, int b) { return a + b; } __declspec(dllexport) int factorial(int a){ int result = 1; for(int i = 1; i <=a; i++){ result *= i; } return result; } #ifdef __cplusplus } #endif </syntaxhighlight> compile <syntaxhighlight lang=powershell> # Akan menghasilkan file myl..."