+ 34

What for are the __declspec and __cdecl operators needed ???

3rd May 2018, 8:46 AM
King Sam
King Sam - avatar
15 Réponses
+ 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 😉💚
8th May 2018, 3:08 PM
Baraa AB
Baraa AB - avatar
+ 5
For declaring COM interfaces and classes, in C++
4th May 2018, 4:18 PM
Anthony Readus
Anthony Readus - avatar
+ 5
Juan Salvador Owono https://m.youtube.com/channel/UCdulIs-x_xrRd1ezwJZR9ww it's in Spanish, but he is an excellent teacher.
5th May 2018, 8:50 AM
Yubi Doo
Yubi Doo - avatar
+ 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.
8th May 2018, 7:51 PM
Samuel Fillie
Samuel Fillie - avatar
+ 1
for declaration of classes
4th May 2018, 5:45 PM
Dummy
+ 1
It is used for declaration of classes.
5th May 2018, 1:11 AM
Adolf 🗝🗝🗝
+ 1
That's not the right discussion to chat and introduce yourselves... It's getting me mad with the notifications of replies...
6th May 2018, 4:45 AM
Mordechai S.
Mordechai S. - avatar
+ 1
is this 16bit complier compatible with all versions of Visual C++
9th May 2018, 11:01 AM
Anthony Readus
Anthony Readus - avatar
0
hi
6th May 2018, 4:18 AM
Fit Veer
Fit Veer - avatar
0
Yubi Doo thanks. good to improve spanish for me ^^
6th May 2018, 10:27 AM
Jagodova
Jagodova - avatar
0
hi all friend s
8th May 2018, 3:56 PM
Ravi Rajan Sonvane
Ravi Rajan Sonvane - avatar
- 4
Please i would like to learn more about c++ ; java ; php ; html ; xml. Any advice? Any useful material? Help please
4th May 2018, 5:49 PM
Juan Salvador Owono
Juan Salvador Owono - avatar
- 4
Juan I guess your shifting to Android development
5th May 2018, 5:36 AM
Kingston Sitban
Kingston Sitban - avatar
- 4
who is 13 years old
5th May 2018, 1:57 PM
עומר בן ברון
עומר בן ברון - avatar