what does __declspec(dllimport) really mean?

前端 未结 4 964
温柔的废话
温柔的废话 2020-11-29 16:41

I saw the Qt source code like this:

class Q_CORE_EXPORT QBasicAtomicInt
{
public:
...
};

Which Q_CORE_EXPORT macro defines lik

4条回答
  •  攒了一身酷
    2020-11-29 17:21

    __declspec(dllimport) is a storage-class specifier that tells the compiler that a function or object or data type is defined in an external DLL.

    The function or object or data type is exported from a DLL with a corresponding __declspec(dllexport).

提交回复
热议问题