Releases: jmckinney7/MathUtility
Releases · jmckinney7/MathUtility
Release list
MathUtility v1.0.0
Full Changelog: https://github.com/jmckinney7/MathUtility/commits/v1.0.0
MathUtility v1.0.0
This package contains the MathUtility library for C++.
Contents
| Directories | Information |
|---|---|
| bin/ | Compiled DLL (MathUtility.dll) |
| lib/ | Import Library (MathUtility.lib) |
| include/ | Header files (MathUtility.h) |
| debug/ | Debugging Symbols (.pdb, .exp) |
Installation
- Copy 'include/MathUtility.h' into your project's include path.
- Link against 'lib/MathUtility.lib' in your project settings.
- Place 'bin/MathUtility.dll' in the same folder as your .exe (for dynamic linking).
Usage Examples
Static Linking
#include "MathUtility.h"
#pragma comment(lib, "MathUtility.lib")
double result = add(2, 3); // 2 + 3 = 5Dynamic Linking
#include <Windows.h>
typedef double(*dUtil)(double, double);
typedef int(*iUtil)(int, int);
int main() {
HMODULE hmod = LoadLibrary("MathUtility.dll");
dUtil add = (dUtil)GetProcAddress(hmod, "add");
iUtil mod = (iUtil)GetProcAddress(hmod, "mod");
if(mod && add) {
double addResult = add(2, 3); // 2 + 3 = 5
int modResult = mod(10, 5) // 10 mod 5 = 0
}
FreeLibrary(hmod);
}License
This project is licensed under the MIT License.