function2 Time #include "pch.h" #include #include #include #include using namespace std; using namespace System; void ShowCurrentTime_Seconds(); void ShowCurrentTime(); void ShowElapsedTime(); int main() { ShowCurrentTime_Seconds(); ShowCurrentTime(); ShowElapsedTime(); std::string str; std::getline(std::cin, str); return 0; } void ShowCurrentTime_Seconds() { cout 2023. 3. 30. Callback function Callback function EXE 함수를 DLL 에서 호출 DLL extern "C" __declspec(dllexport) void __stdcall DLL_SetErrorFunction(LPVOID fp); caller.h void(*fpErrorFunction)(int errorNum); void ErrorFunction(int errorNum); void SetErrorFunction(LPVOID fp); caller.cpp caller() { fpErrorFunction = NULL; } void caller::SetErrorFunction(LPVOID fp) { fpErrorFunction = (void(__cdecl*)(int))fp; } void caller::ErrorFunction.. 2022. 7. 18. 이전 1 다음