-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnotes.txt
More file actions
22 lines (21 loc) · 849 Bytes
/
notes.txt
File metadata and controls
22 lines (21 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*typedef UINT (CALLBACK* dllcallback)();
dllcallback piaddr;
UINT returnval;
const char* chud_func = "pi_chudnovsky";
piaddr = reinterpret_cast<dllcallback>(GetProcAddress(hLibPi, "pi_chudnovsky"));
if (!piaddr) {
std::wcout << L"piaddr = false" << std::endl;
std::wcerr << L"Failed to get function address of " << chud_func
<< L" Error: " << GetLastError() << std::endl;
if (!FreeLibrary(hLibPi)) {
std::wcerr << L"Failed to free library " << kPiCalcDll
<< L" Error: " << GetLastError() << std::endl;
} else {
std::wcerr << L"Successfully freed library " << kPiCalcDll << std::endl;
}
} else {
std::wcout << L"piaddr = true" << std::endl;
returnval = piaddr();
//pi = *piaddr;
// bool pi_func = piadr(pi);
}*/