You can link the .lib
file by passing it on the linker command line, #pragma
is not required.
Of course, actually, using something inside, it requires knowledge of conditional conventions, function signatures, layout of user-defined types, etc. All this is usually provided by the header file, but can also be found in the documentation.
In any case, the header files are not generated by the compiler (it is good that MIDL and CORBA use machine header files, but all the information in the header is still manually entered into .idl files). And if your technology does not use a type library, the necessary information is not stored in the DLL.
source share