+ 34
What for are the __declspec and __cdecl operators needed ???
15 Answers
+ 32
__declspec
This is a Microsoft specific extension to the C++ language which allows you to attribute a type or function with storage class information.
__cdecl
__cdecl is the default calling convention for C and C++ programs. Because the stack is cleaned up by the caller, it can do vararg functions. The __cdecl calling convention creates larger executables than __stdcall, because it requires each function call to include stack cleanup code. The following list shows the implementation of this calling convention.
Hope you get the correct answer 😉💚
+ 27
+ 5
For declaring COM interfaces and classes, in C++
+ 5
Juan Salvador Owono
https://m.youtube.com/channel/UCdulIs-x_xrRd1ezwJZR9ww
it's in Spanish, but he is an excellent teacher.
+ 4
Microsoft introduced __export in the 16-bit compiler version of Visual C++ to allow the compiler to generate the export names automatically and place them in a .lib file. This .lib file can then be used just like a static .lib to link with a DLL.
In newer compiler versions, you can export data, functions, classes, or class member functions from a DLL using the __declspec(dllexport) keyword. __declspec(dllexport) adds the export directive to the object file so you do not need to use a .def file.
+ 1
for declaration of classes
+ 1
It is used for declaration of classes.
+ 1
That's not the right discussion to chat and introduce yourselves... It's getting me mad with the notifications of replies...
+ 1
is this 16bit complier compatible with all versions of Visual C++
0
hi
0
Yubi Doo thanks. good to improve spanish for me ^^
0
hi all friend s
- 4
Please i would like to learn more about c++ ; java ; php ; html ; xml. Any advice? Any useful material? Help please
- 4
Juan I guess your shifting to Android development
- 4
who is 13 years old