Skip to content
/ DLL Public

A header-only library to easily load DLLs for Windows.

Notifications You must be signed in to change notification settings

yy981-jp/DLL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

日本語

呼び出し方

DLL<返り値, 引数1, 引数2, ...> 関数名(HMODULE変数, DLL内での関数名);

※引数は0個以上であればいくらあっても問題ありません

使用例

HMODULE dll = LoadLibrary("example.dll");
DLL<uint32_t, const std::string&> calculateCRC32(dll, "calculateCRC32");

std::cout << "CRC32: " << calculateCRC32("example.txt") << "\n";

cleanDLL(dll);

English

How to call.

DLL<return value, argument 1, argument 2, ... > function name (HMODULE variable, function name in DLL);.

*It does not matter how many arguments there are, as long as they are zero or more!

Example usage

HMODULE dll = LoadLibrary("example.dll");
DLL<uint32_t, const std::string&> calculateCRC32(dll, "calculateCRC32");

std::cout << "CRC32: " << calculateCRC32("example.txt") << "\n";

cleanDLL(dll);

About

A header-only library to easily load DLLs for Windows.

Topics

Resources

Stars

Watchers

Forks

Languages