Domanda

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?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top