Recently I started to work with c++
. I heard about exported functions
but not sure what it means.
so my questions are about:
exported function
?normal function
and exported function
? if yes, what is it?dll
?
- what is exported function ?
When you program with modules (pieces of code) you need to call in some module a function which was defined in some other module. Exporting is relative to that process. In C/C++ if you want to declare a function to use it without defining it in a source file, you should use the keyword "extern". In the file where that function is defined you have nothing special to make, by defaults things at global scope are automatically exported.
- Is there any difference between normal function and exported function? if yes , what it is ?
Nothing special, except that the later are visible at link time.
- how it is related with dll ?
See, http://msdn.microsoft.com/en-us/library/a90k134d.aspx for DLL and function export for DLL. In such a case you must declare which function should be exported.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With