문제

I have the library called Serial.dll that containts the file Serial.def that looks like this:

EXPORTS
    ValidateSerial
    GenerateSerial

I want to import the function GenerateSerial in my C++ Win32 application. I searched on the internet topics about using DLLs but I can't get the idea... Can anybody help me?

도움이 되었습니까?

해결책

The info you provided only tells two funciton names. You can obtain their address doing LoadLibrary and GetProcAddress. But to make any use of them you need to know the proper signature, and the rules for the arguments and return values.

Without documentation (or a .h file) you can't go very far.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top