LoadLibrary("[...].dll") failed - The specified procedure could not be found.
COM DLL 파일이 Vista 이후의 PC에서는 regsvr32.exe로 잘 등록하는데, 유독 XP/2003 PC에서만 다음과 같은 오류가 발생합니다.
LoadLibrary("Test.dll") failed - The specified procedure could not be found.
이유는 간단합니다. 바로 Vista 이후부터만 제공하는 Win32 API를 사용했기 때문으로, 제 경우에는 무심코 사용한 GetTickCount64가 그 원인이었습니다.
GetTickCount64 function
; https://learn.microsoft.com/en-us/windows/win32/api/sysinfoapi/nf-sysinfoapi-gettickcount64
Minimum supported client - Windows Vista [desktop apps | Windows Store apps]
Minimum supported server - Windows Server 2008 [desktop apps | Windows Store apps]
"The specified procedure could not be found." 오류가 발생한다면, 최근에 추가한 코드에서 운영체제의 특성을 타는 API가 있는지 조사해 보세요. ^^
[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]