Compile,Link and Run
When you're ready to compile HELLOMSG, you can select Build Hellomsg.exe from the Build menu,or press F7,or select the Build icon from the Build toolbar.The appearance of this icon is shown in the Build menu.If the Build toolbar is not currently displaned,you can choose Customize from the Tools menu and select the Toolbars tab.Pick Build or Build MiniBar.
Alternatively you can select Execute Hellomsg.exe from the Build menu ,or press Ctrl+F5 or click the Execute program icon which looks like red exclamation point from the Build toolbar.You ''ll get a message box asking you if you want to build the program .
As normal ,during the compile stage ,the compiler generates an .OBJ (object) file from the C source code file.During the link stage the linker combines the .OBJ file with .LLB (library ) files to create the .EXE(executable) file .You can see a list of these library files by selecting Settings from the Project tab and clicking the Link tab .In particular ,you'll notice KERNEL32.LIB,USER.LIB,and GDI.LIB.These are "import libraries " for the three major Windows sub-systems.They contain dynamic -link library names and reference information that is bound into the .EXE file .Windows uses this information to resolve calls from the program to functions KERNEL32.DLL,USER.DLL,and GDI.DLL. dynamic0link libraries.
In the Visual C++ Developer Studio ,you can compile and link the program in different configurations .By defaiult ,these are called Debug and Release .The executable files are stored in subdirectories of these names .In the Debug configuration ,information is added to the .EXE file assists in deubgging the program and in tracing through the program source code.
When you're ready to compile HELLOMSG, you can select Build Hellomsg.exe from the Build menu,or press F7,or select the Build icon from the Build toolbar.The appearance of this icon is shown in the Build menu.If the Build toolbar is not currently displaned,you can choose Customize from the Tools menu and select the Toolbars tab.Pick Build or Build MiniBar.
Alternatively you can select Execute Hellomsg.exe from the Build menu ,or press Ctrl+F5 or click the Execute program icon which looks like red exclamation point from the Build toolbar.You ''ll get a message box asking you if you want to build the program .
As normal ,during the compile stage ,the compiler generates an .OBJ (object) file from the C source code file.During the link stage the linker combines the .OBJ file with .LLB (library ) files to create the .EXE(executable) file .You can see a list of these library files by selecting Settings from the Project tab and clicking the Link tab .In particular ,you'll notice KERNEL32.LIB,USER.LIB,and GDI.LIB.These are "import libraries " for the three major Windows sub-systems.They contain dynamic -link library names and reference information that is bound into the .EXE file .Windows uses this information to resolve calls from the program to functions KERNEL32.DLL,USER.DLL,and GDI.DLL. dynamic0link libraries.
In the Visual C++ Developer Studio ,you can compile and link the program in different configurations .By defaiult ,these are called Debug and Release .The executable files are stored in subdirectories of these names .In the Debug configuration ,information is added to the .EXE file assists in deubgging the program and in tracing through the program source code.
No comments:
Post a Comment