Вопрос

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