📄 认识 codewarrior.htm
字号:
</FONT><FONT size=2>在编译程序时用不着的目录。</FONT> </LI></UL>
<P><FONT size=2><B>编辑器设置</B></FONT>
<UL>
<LI><B><FONT size=2>编辑器设置</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(Editor Settings):</B>
</FONT><FONT size=2>几个用于定制编辑器显示、管理文本和窗口的设置项; </FONT>
<LI><B><FONT size=2>字体和制表符</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(Fonts and Tabs):</B>
</FONT><FONT size=2>设置编辑器中的文本大小、字体、制表符和其它显示设置; </FONT>
<LI><B><FONT size=2>文本颜色</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(Text Colors):</B>
</FONT><FONT size=2>用于指定特定语言元素</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(</FONT><FONT
size=2>比如程序的注释</FONT><FONT face="Arial, Helvetica, sans-serif"
size=2>)</FONT><FONT size=2>在编辑窗口中的显示的颜色。 </FONT></LI></UL>
<P><FONT size=2><B>调试器设置</B></FONT>
<UL>
<LI><B><FONT size=2>显示设置</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(Display Settings):</B>
</FONT><FONT size=2>几个用于定制调试器显示的设置项; </FONT>
<LI><B><FONT size=2>视窗化</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(Windowing):</B>
</FONT><FONT size=2>设定调试器如何管理它的窗口</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(</FONT><FONT
size=2>比如隐藏所有打开的编辑器窗口</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>)</FONT><FONT size=2>;
</FONT>
<LI><B><FONT size=2>全局设置</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(Global Settings):</B>
</FONT><FONT
size=2>几个用于定制调试器在全局层次如何工作的设置。比如当一个包含了程序调试信息的文件被打开时,是否启动这个程序;
</FONT>
<LI><B><FONT size=2>远程连接</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(Remote
Connections):</B> </FONT><FONT size=2>允许通过 </FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>TCP/IP </FONT><FONT
size=2>进行远程调试。这样,你就可以在地球的另一边调试你的软件了;</FONT>
<LI><B><FONT face="Arial, Helvetica, sans-serif" size=2>Java
</FONT><FONT size=2>设置</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>/Java </FONT><FONT
size=2>调试</FONT><FONT face="Arial, Helvetica, sans-serif"
size=2>(Java Settings/Java Debugging):</B> </FONT><FONT
size=2>允许你设置特定的 </FONT><FONT face="Arial, Helvetica, sans-serif"
size=2>Java </FONT><FONT size=2>编程语言选项。本课程不涉及这部分内容。
</FONT></LI></UL><FONT face="Arial, Helvetica, sans-serif" size=2>
<P><B><FONT size=+1>RAD </FONT></FONT><FONT
size=2>工具</FONT></B><FONT face="Arial, Helvetica, sans-serif"
size=2>
<UL>
<LI><B>Layout </FONT><FONT size=2>编辑器</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>:</B> </FONT><FONT
size=2>几个用于在 </FONT><FONT face="Arial, Helvetica, sans-serif"
size=2>CodeWarrior </FONT><FONT size=2>中定制快速应用程序开发工具的使用的设置。
</FONT></LI></UL>
<P><FONT face="Arial, Helvetica, sans-serif"
size=2> </FONT><FONT size=2>正如你所见到的,</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>CodeWarrior </FONT><FONT
size=2>有许多设置项和选项。设置完后点击“</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>Save</FONT><FONT
size=2>”按钮保存你所作的修改,点击“</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>Close</FONT><FONT
size=2>”按钮将忽略你所作的所有修改。在进入下一节课之前,多练习几次。最后请确认“默认的文本文件格式</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(Default Text File
Format)</FONT><FONT size=2>”</FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>(</FONT><FONT
size=2>在编辑器设置面板中</FONT><FONT face="Arial, Helvetica, sans-serif"
size=2>)</FONT><FONT size=2>保持为 </FONT><FONT
face="Arial, Helvetica, sans-serif" size=2>DOS </FONT><FONT
size=2>设置。</FONT></P>
<BLOCKQUOTE>
<P align=right><FONT size=2>(待续)</FONT></P></BLOCKQUOTE>
<HR>
<P>附原文:</P>
<P><FONT face="Arial, Helvetica, sans-serif" color=#666666
size=3><B>Lesson 1: Getting to Know CodeWarrior </B></FONT></P>
<P> </P>
<P><FONT face="Arial, Helvetica, sans-serif" color=#000000
size=3><B><B>What Will CodeWarrior Do for
Me?</B></B><BR></FONT><BR></P><FONT
face="Arial, Helvetica, sans-serif" size=2>
<P>It can be frustrating to use other people's applications when you
know you can make something better. But it can also be frustrating
when you have a zillion lines of code and can't find the one typo
that's making the whole application go kablooey -- not to mention
getting it all compiled and linked and so on.</P>
<P>This is why you are here. And this is why CodeWarrior was
created.</P>
<P>For now, we'll focus on writing programs in CodeWarrior using the
C or C++ programming languages. This course assumes that you're
pretty comfortable using at least one of these languages.
CodeWarrior also supports Java development, but that will be covered
in a separate class. This course concerns itself with Windows
platform development. Once you get really good at programming with
CodeWarrior, you can explore the other platforms for which tools
have been designed. Much of what will be discussed here can also be
applied to developing Mac applications.</P>
<P>CodeWarrior automatically checks your code for obvious errors,
helps you scan it for less obvious ones (via an integrated debugger
and editor), and then compiles and links the code so that your
computer can understand and execute your program. Every application
that you have used has been through the coding, compiling, editing,
linking, and debugging process, using tools like CodeWarrior. Now
you can do it too! But we still have to teach you how.</P>
<P>Using CodeWarrior, you can write just about any type of program
you can imagine. If you are a beginner, you may choose to write an
application (also known as an executable) as your first program. You
might choose to create something as basic as WordPad, Microsoft's
text editor, for example.</P>
<P>Applications are probably the simplest type of program to write,
though large commercial ones like Adobe Photoshop, Microsoft Word
and even CodeWarrior itself are quite complex. Other program types
include control panels, dynamic linked libraries (DLLs), and
plug-ins. Let's talk about these types for a minute.</P>
<P>Under Windows, control panels are those (usually small) programs
that are stored in your Control Panels directory and visible in the
Control Panel section on the Start menu. The control panel itself is
simply an interface to a system-wide feature, like setting the sound
volume or the mouse's motion speed, for example.</P>
<P>DLLs supply useful functions that are shared by the operating
system and applications. They typically don't have a user
interface</P>
<P>Plug-ins are similar to DLLs in that they provide small pieces of
code that are used by other software. However, a single program
typically uses this code. For example, Photoshop plug-ins allow
programmers to easily extend the capabilities of the Photoshop
application without having access to its source code. Likewise, many
Web browsers use plug-ins that add extra features to the application
or allow you to manipulate new content types on the Web. Many
programs, including CodeWarrior, make use of this plug-in
architecture.</P>
<P>There are plenty of other types of programs you can write once
you master CodeWarrior and the programming interfaces for your
operating system. In fact, once you complete this course, you can
take other courses in which you will learn more in-depth methods of
programming your computer. You've chosen an excellent place to begin
your journey, however. So sit back, relax, and absorb the lessons in
this course, and you'll be well on your way to becoming a
CodeWarrior!</P></FONT>
<P> </P>
<P><FONT face="Arial, Helvetica, sans-serif" color=#000000
size=3><B><B>An Introduction to the CodeWarrior
Application</B></B><BR></FONT><BR></P><FONT
face="Arial, Helvetica, sans-serif" size=2>
<P>CodeWarrior is a complex application. If you really want to
benefit from all of its features, you should take this time to get
to know its various components and the capabilities that will be
available to you. This first lesson will give you a basic overview
of how the CodeWarrior IDE is set up. (That acronym gets thrown
around a lot, and it's short for <B>Integrated Development
Environment.</B> ) We'll take a look at menus, windows, and other
aspects of the program. Follow along with the CodeWarrior IDE while
you read through these lessons. Start by launching the IDE
application. If you followed the defaults for the CodeWarrior
software installation, there will be an icon that represents a
shortcut to the program. Double-click on it to start the IDE. If the
shortcut icon is absent (these things happen), you can typically
find the program at C:\Program
Files\Metrowerks\CodeWarrior\Bin\IDE.exe.</P>
<P><B>Toolbar</B> </P>
<P>When you launch the CodeWarrior IDE, you'll notice a toolbar
attached to the menu at the top of your screen. This toolbar (Figure
1-1) contains buttons that are shortcuts to frequently used menu
items. You'll learn how to customize this toolbar -- and even the
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -