Adding a C++ Inline File to a Visual C++.Net Project
-
Hi All This is a very basic question but in Visual C++.Net, how do I add a C++ Inline File like XLCALL32.LIB? I am trying to build an XLL from a DLL following the instructions in MSDN article Q178474. That article at point 6 says "Click Settings on the Project Menu. Click the Link tab and add XLCALL32.LIB to the Object/Library." The only way I can add it is to go to File and then "Add existing item" and then change the file type to *.* and select the inline file XLCALL32.LIB from the directory. This does not seem to work properly to link the file to the rest of the project. It may ne that something else is the cause and I am adding the inline file correctly. Any thoughts would be much appreciated. Regards Jeremy
-
Hi All This is a very basic question but in Visual C++.Net, how do I add a C++ Inline File like XLCALL32.LIB? I am trying to build an XLL from a DLL following the instructions in MSDN article Q178474. That article at point 6 says "Click Settings on the Project Menu. Click the Link tab and add XLCALL32.LIB to the Object/Library." The only way I can add it is to go to File and then "Add existing item" and then change the file type to *.* and select the inline file XLCALL32.LIB from the directory. This does not seem to work properly to link the file to the rest of the project. It may ne that something else is the cause and I am adding the inline file correctly. Any thoughts would be much appreciated. Regards Jeremy
XLCALL32.lib is an object library, not an 'inline file'. An object library is a collection of object modules, compiled previously. From the Project menu, select Properties. In the dialog, select Linker and then Input. Add XLCALL32.lib to the Additional dependencies field.
Software Zen:
delete this;