declspec Questions

3

Solved

I saw the Qt source code like this: class Q_CORE_EXPORT QBasicAtomicInt { public: ... }; Which Q_CORE_EXPORT macro defines like below: define Q_DECL_IMPORT __declspec(dllimport) So what does ...
Formally asked 14/1, 2012 at 15:33

1

Solved

To build a C library with Visual Studio, the CMake command set(WINDOWS_EXPORT_ALL_SYMBOLS ON) saves me from adding __declspec(dllexport) or __declspec(dllimport) in front of function declaration...
Gratuitous asked 21/1, 2020 at 10:1

2

Solved

My project builds through few static libraries which should linked to main dll library gain one single dll as a result. Using __declspec(dllexport) attribute does not lead to appearance of specifi...
Ezekielezell asked 16/7, 2015 at 6:3

1

I needed to make some shared libraries in C++ and I used linux as my developer operating system. I know that I need to make symbols visible if I want to load them via dlsym/LoadLibrary. So in linux...
Francinefrancis asked 24/1, 2014 at 14:59

2

Solved

Yes, I have read this: http://msdn.microsoft.com/en-us/library/83ythb65.aspx But it's not clear to me. First of all, __declspec(align(#)) makes every object (in a structure) declared with it start ...
Serology asked 10/8, 2013 at 18:29

1

Solved

When calling C++ algorithms like copy_if, transform etc which take a unary or binary function as the last argument, can I pass a C library function like atoi or tolower. For e.g. below calls work ...
Eventful asked 18/3, 2014 at 0:21

2

Solved

I have a piece of code that uses Microsoft-specific extension to the C++: interface __declspec(uuid("F614FB00-6702-11d4-B0B7-0050BABFC904")) ICalculator : public IUnknown { //... }; What does ...
Mariano asked 2/6, 2011 at 20:23

2

Solved

I'm working on the multithreading implementation of a library. In one module of this library there are some global variables (very often used in the program execution). In order to make the access ...
Sustain asked 22/2, 2011 at 10:18
1

© 2022 - 2024 — McMap. All rights reserved.