📄 classview_system_interfaces.shtml.htm
字号:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Author" CONTENT="Zafir Anjum">
<TITLE>Displaying System Interfaces in ClassView</TITLE>
</HEAD>
<body background="../fancyhome/back.gif" tppabs="http://www.codeguru.com/fancyhome/back.gif" bgcolor="#FFFFFF" link="#B50029" vlink="#8E2323" alink="#FF0000">
<table WIDTH="100%">
<tr WIDTH="100%">
<td><A HREF="http://209.66.99.126/cgi/ads.cgi?advert=myad2"><IMG SRC="../../209.66.99.126/advertise2.gif" tppabs="http://209.66.99.126/advertise2.gif" ALT="" BORDER=2></A><td>
</tr>
</table>
<CENTER>
<H3>
<FONT COLOR="#AOAO99">Displaying System Interfaces in ClassView</FONT></H3></CENTER>
<CENTER>
<H3>
<HR></H3></CENTER>
<P>This article was contributed by <A HREF="mailto:extraview@netmatters.co.uk">James Hebben</A></P>
<P>The VC++ ClassView pane of the project window displays a view of your
project classes. If your project is an ATL project, then ClassView will also
display your interfaces that a class supports when the class node is opened in
ClassView. ClassView scans your class header file for <B>COM_INTERFACE_ENTRY
</B>macros to determine what interfaces a class supports. By default, only
interfaces that appear in your IDL file are displayed in the ClassView. </P>
<P>You can extend this feature to include any system interfaces that you
implement in your class, such as <B>IStorage</B>, <B>IStream</B> etc. This can
be acieved in two simple steps:</P>
<OL>
<LI>Ensure that your class declaration includes <B>COM_INTERFACE_ENTRY </B>macros
for the system interfaces you implement (it should do already)</LI>
<LI>Open the system IDL file (in the main Include directory of your VC++
installation) that contains the interface you want ClassView to recognise and
include it in your project</LI></OL>
<P>All system interfaces that are defined all IDL files that are included in
your project will appear in the ClassView window.</P>
<P><B>NOTE:</B> By default, adding an IDL file to your project excludes it from
the project build so this method does not affect the build of your project in
any way</P>
<P>
<HR>
<TABLE BORDER=0 WIDTH="100%" >
<TR>
<TD WIDTH="33%"><FONT SIZE=-1><A HREF="../index.htm" tppabs="http://www.codeguru.com/">Goto HomePage</A></FONT></TD>
<TD WIDTH="33%">
<CENTER><FONT SIZE=-2>© 1997 Zafir Anjum</FONT> </CENTER>
</TD>
<TD WIDTH="34%">
<DIV ALIGN=right><FONT SIZE=-1>Contact me: <A HREF="mailto:zafir@home.com">zafir@home.com</A> </FONT></DIV>
</TD>
</TR>
</TABLE>
<CENTER><FONT SIZE=-2>6063</FONT></CENTER>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -