#pragma component(browser, on) : browser info must initially be specified on the command line
The component pragma is useful only if you’ve specified that browse information be generated during compilation. From the Build menu, choose Settings; then select the C/C++ tab of the Project Settings dialog box and select the Generate Browse Info check box. If you’re compiling from the command line, specify the /FR option.