嗔秤戻幣�哉膵�云利匈嬉蝕湊蛸賜�塋床四衲���萩晦編報炎嘔囚^泡仟 ̄云利匈��
侮秘燃竃MFC及2井(PDF鯉塀)-及121何蛍
酔楯荷恬: 梓囚徒貧圭�鮗� ○ 賜 ★ 辛酔堀貧和鍬匈 梓囚徒貧議 Enter 囚辛指欺云慕朕村匈 梓囚徒貧圭�鮗� ● 辛指欺云匈競何! 泌惚云慕短嗤堋響頼���誅卒亮茂�俊彭堋響��辛聞喘貧圭 "辺茄欺厘議箝誓匂" 孔嬬 才 "紗秘慕禰" 孔嬬��
CALCDRIV Automation client。
CATALOG Illustration of direct calls to ODBC functions in general�察�and the ODBC
functions SQLTables and SQLColumns in particular。
CATALOG2 Illustration of direct calls to ODBC functions in general using Windows
mon Controls。
CHATSRVR Discussion server application for CHATTER。
CHATTER Client application that uses Windows Sockets。
CHKBOOK Record´based ��nonserialized�� document。
CIRC Tutorial sample that teaches you how to create a simple ActiveX control
called Circle。
CMNCTRLS Demonstrates how to create and change the styles of 7 of the Windows
mon Controls。
COLLECT MFC C���� template´based collection classes�察�and standard prebuilt collection
classes。
CONTAINER Tutorial example illustrating ActiveX Visual Editing container features in
Visual C���� Tutorials。
COUNTER Using an ISAPI DLL to send image data ��rather than HTML data�� back to a
Web browser。
CTRLBARS Custom toolbar and status bar�察�dialog bar�察�and floating palette。
916
´´´´´´´´´´´´´´´´´´´´´´Page 979´´´´´´´´´´´´´´´´´´´´´´´
現��C Visual C���� 5。0 ��箭殻塀咤А�
殻塀兆�Q �f苧
CTRLTEST Owner´draw list box and menu�察�custom control�察�bitmap button�察�spin control。
CUBE OpenGL application using MFC device contexts along with OpenGL's
resource contexts。
DAOCTL DAO database class functionality and ActiveX controls let you examine a
database。
DAOENROL Based on ENROLL�察�but migrated to the DAO database classes。 Also serves as
Step 4 of the DaoEnrol tutorial。
DAOTABLE Creates a Microsoft Access database �─�MDB file�� and its tables�察�fields�察�
queries�察�and indexes using MFC DAO database classes。
DAOVIEW DAO database classes and Windows mon Controls let you view the
schema of a database。
DBFETCH Demonstrates the use of bulk row fetching in the ODBC database classes。
DIBLOOK Device´independent bitmap and color palette。
DLGCBR32 Adding a toolbar and a status bar to a dialog´based application。
DLGTEMPL Shows how to create dialog templates dynamically。
DLLHUSK Sharing the DLL version of the Foundation class library with an application
and custom DLL。
DLLTRACE Statically linking the MFC library to a custom DLL。
DOCKTOOL Dragging and floating toolbars that are ;dockable;。
DRAWCLI Full´featured object´oriented drawing application that is also an ActiveX
Visual Editing container。
DRAWPIC Getting a Windows handle to a bitmap or icon from an LPPICTUREDISP。
DYNABIND Dynamic binding of database columns to a recordset。
DYNAMENU Dynamically modifying list of items in menus�察�handling mands not
known at pile time�察�and updating the status bar mand prompt for such
mands。
ENROLL Tutorial example illustrating database features in Visual C���� Tutorials。
917
´´´´´´´´´´´´´´´´´´´´´´Page 980´´´´´´´´´´´´´´´´´´´´´´´
及励鐙 現��
殻塀兆�Q �f苧
EXTBIND Shows how to bind data´aware controls across a dialog box boundary。
FIRE Dialog´based application that demonstrates five Windows mon Controls。
FTPTREE Displays the contents of an FTP site in a tree control。
GUIDGEN A dialog´based MFC application used to generate globally unique identifiers�察�
or GUIDs�察�which identify OLE classes�察�objects�察�and interfaces。
HELLO Simple application with frame window but no document or view。
HELLOAPP Minimal ;Hello World; application。
HIERSVR ActiveX Visual Editing server application with drag and drop。
HTTPSVR Uses MFC Windows Socket classes to implement an Internet HTTP server。
IMAGE Demonstrates an ActiveX control that is capable of downloading data
asynchronously。
INPROC An in´process Automation server that can be loaded as a DLL in the client's
address space。
IPDRIVE A simple Automation client application that drives the INPROC sample
application。
MAKEHM mand line utility for associating resources with Help contexts。
MDI MDI application that does not use documents and views。
MDIBIND Demonstrates data binding in CWnd´derived windows�察�but only at run time。
MDIDOCVW New version of the MDI sample that uses the document/view architecture。
MFCCALC An Automation server that implements a simple calculator。
MFCUCASE Demonstrates MFC support for Internet Server filter DLLs。
MODELESS Demonstrates the use of an MFC CDialog object as a modeless dialog。
MTGDI Multithread illustration�察�where GDI resources are converted to MFC objects
and back。
MTMDI Multithread illustration�察�where user´interface events are processed in a
separate user´interface thread。
918
´´´´´´´´´´´´´´´´´´´´´´Page 981´´´´´´´´´´´´´´´´´´´´´´´
現��C Visual C���� 5。0 ��箭殻塀咤А�
殻塀兆�Q �f苧
MTRECALC Multithread illustration�察�where recalculations are done in a worker thread。
MULTIPAD Simple MDI text editor using the CEditView class。
MUTEXES Demonstrates the use of the Cmutex class for multithreading。
NPP Editor demonstrating toolbars�察�status bars�察�and other controls。
OCLIENT ActiveX Visual Editing container application�察�with drag and drop。
ODBCINFO Shows how to determine various ODBC driver capabilities at run time。
OLEVIEW Implementing an OLE object browser through custom OLE interfaces。
PROPDLG Property sheets ��dialogs��。
ROWLIST Illustrates full row selection in a list´view mon control。
SAVER Screen saver written with MFC。
SCRIBBLE Main tutorial example in Visual C���� Tutorials。
SMILEY Modifying properties�察�calling methods�察�and handling events from the SMILE
control in the SMILEY container。
SNAPVW Shows how to use property pages in a MDI child frame window。
SPEAKN Multimedia sound using user´defined resources。
STDREG Tool for populating the Student Registration database ��used by the Enroll
database tutorial�� in any format supported by an ODBC driver。 Illustrates
SQL table creation。
SUPERPAD ActiveX Visual Editing server that edits text using CEditView。
TEAR MFC console application that uses the WININET。DLL。
TEMPLDEF mand line tool that expands source files similar to C���� templates。
TESTHELP An ActiveX control that has its own help file and tooltips。
TRACER Tool that sets the Foundation class application trace flags kept in AFX。INI。
TRACKER Illustration of the various CRectTracker styles and options。
919
´´´´´´´´´´´´´´´´´´´´´´Page 982´´´´´´´´´´´´´´´´´´´´´´´
及励鐙 現��
殻塀兆�Q �f苧
VCTERM Simple terminal emulation program illustrating the use of the
MSM32。OCX ActiveX control。
VIEWEX Multiple views�察�scroll view�察�splitter windows。
WORDPAD Uses MFC's support for rich edit controls to create a basic word processor。
WWWQUOTE Retrieves information from a database and provides it to the user via an HTTP
connection to the server。
920
´´´´´´´´´´´´´´´´´´´´´´Page 983´´´´´´´´´´´´´´´´´´´´´´´
現��D 參MFC 嶷秀DBWIN
現��D
參MFC 嶷秀 DBWIN
��в弌 �DBWIN ��TRACE 蟹焚�N��叔�鬘�Visual C���� 議 TRACE 忖堪��竃駅��壓屁栽�h廠議茅�e��
完心欺。�@湊�^芸阻。厘��峪音�^�誑敝���滷�����螺螺��裏���s勣厘��晋恊 155 紗�r�h。
作拭�棔�
/ 1997。01 �l燕豢Run��PC �s�I
厘徭失械浪�g壓殻塀紗�� printf ���^賀殻塀議送殻賜���亀��犯檗��������裡�音駅�@�啌�
�e匂岻��議寄�躬錙�
printf AfxMessageBox TRACE
、 �c
printf C text mode Windows
頁 �Z冱議���丙�塀��徽峪嬬壓猟忖庁塀�─ 。��茂弌� �D侘初
中餓辛曳�M議頁 AfxMessageBox ��辛參�p�p����壓�υ�歳双咫竃低議忖堪。隼遇
AfxMessageBox OK
嗤��髪�c�宰���嬉�牾綿週槻俤M��掲誼聞喘宀梓‐ /梓�o音辛。壅
宀��泌惚 AfxMessageBox �υ�歳��中盃�彖穆�殻塀議��完��中��稀�υ�歳�Y崩��狼�y
WM PAINT OnDraw
_ View
���Τ綿述�完�l竃圻云音駅勣議 ��豢頁 ���e議 ��瓜柵出。泌
惚低議 AfxMessageBox 屎頁慧壓 OnDraw 痕塀���@�歳墹��h辛嗤誼覇阻。
TRACE ��в俤@�N髪�c��万議��竃鹿欺��蒙協��完��万音��嬉�狡��y��殻塀議囘
921
´´´´´´´´´´´´´´´´´´´´´´Page 984´´´´´´´´´´´´´´´´´´´´´´´
及励鐙 現��
OK
�d��音��壓低畠舞��廣房深殻塀�����r��勣低蛍舞�躇粥勝 垂o。厚嶷勣議頁��万音��
孤�_欺殻塀議��完��中。
Visual C���� 1。5 �r旗��TRACE 議忖堪��竃頁僕欺��兆�蕁 �DBWIN 議��完。低辛參
TRACE Visual C����
���茂亞綿州���軸�r�^賀凪 ��竃。�S謹壼厮�l�F周音侑議並���此�
4。x 岻��в弌 �DBWIN ��伏試議化妝�咀緩�y阻����殻塀議伏凋嗤乂税�N音唇。
DBWIN TRACE Visual C���� TRACE
��в弌 。� 蟹焚�N��叔�鬘拭 ゝ帖 」峇���竃駅��壓屁栽�h廠
議茅�e��完心欺。TRACE 賞鹿峪壓茅�e庁塀議殻塀�a嘉嬬伏丼��遇 Visual C���� 捷
��勣箔殻塀駅��壓屁栽�h廠議茅�e匂���茂丕��蛤�議 TRACE 賞鹿嘉嗤丼。�@湊�^芸阻。
厘峪音�^�誑昊������螺�c符��滷��鬘�麿���s勣厘晋恊 155 紗�r�h�蹇2刺拇靡儷����@
�N秤�r�牀�音�M。
Paul DiLascia
Microsoft Systems Journal MSJ TRACE
�─ 。�議�鋲�猟嫗�����a阻 議�@�c弌弌�z唆�此�
及鐙猟嫗竃�F壓 MSJ 1995。10 議 C/C���� ���擅�及鐙猟嫗竃�F壓 MSJ 1996。01 議
C/C���� ���據��鋲�脅竃徭 Paul DiLascia 岻返���@了枠伏壓 C���� / MFC �輦佇�兆��广嗤
Windows���� ��。
Paul DiLascia �l苧阻�N圭隈����低議 TRACE 賞鹿��竃欺����完��麿委万凋兆�蕁�
Tracewin ��完�����@����完祥�顱 �Visual C���� 1。5 議 DBWIN �咤�辛參辺鹿�轅坩坊週帖�
TRACE 忖堪��辛參委�犯歿絣���賜贋�n��賜恂凪麿販採猟忖�ン�議�タ蹇D禝蝶綿瞬察�
勣頁茅�e庁塀祥佩。崛豢茅�e匂��委万�G�_��崛富壓�@���r震。
厘��壓�@鐙猟嫗�∧� Paul DiLascia 議���觝要�隈���K哈喘何芸殻塀�a。頼屁殻塀�a辛
MSJ ftp site ftp。microsoft。 MSDN Microsoft Developer's
參棐 ゝ帖 。─ 。�窒�M�d��匆辛參棐 。─�
Network ��高禦頭�@誼。
緩隈源嗤派房��辛參�S源厘��議 MFC 室�g����。侭嗤�s勦脅�搆琴�宀 Paul DiLascia 。
922
´´´´´´´´´´´´´´´´´´´´´´Page 985´´´´´´´´´´´´´´´´´´´´´´´
現��D 參MFC 嶷秀DBWIN
厘椿��厘峪頁�魎鷦厖橡���K初�B�@�鋲�猟嫗、�@��、�@��挫垢醤���K拝��楚�S源不腕
��捉議�鋲�圻猟。��猟嫗聞喘及�Q�軛菠� Tracewin 議殻塀�O��尖廷�r��椎��仝厘々
旗燕議頁 Paul DiLascia 遇音頁作拭�棔�
倍拉寨�
勣委 TRACE 議��竃忖堪���鬘�誼枠苧易 TRACE 賞鹿欺久頁奕�N指並。TRACE 並��
Win32 API OutputDebugString hooking Win32 API
柵出阻 痕塀 。挫��辛嬬低���覽述夥�貌
議恬隈��委 OutputDebugString 痕塀�У縦禝陳���痕塀�蹌�壅嚠函嚠箔。�@�N圭隈壓
Windows NT Windows NT copy´on´write 圍А�
音嬬��丼��咀�蕁 ゝ帖 〃幎��C崙�─。�聞誼厘
OutputDebugString OutputDebugString
稀俐個阻 ��厘祥�輦仭坊��搆琴埃叉帖 仝臼勝�
厘辛參互互�d�d�M秤聞喘�@険云����隼音�X����徽凪麿殻塀柵出議�s挽隼頁椎隆�
酔楯荷恬: 梓囚徒貧圭�鮗� ○ 賜 ★ 辛酔堀貧和鍬匈 梓囚徒貧議 Enter 囚辛指欺云慕朕村匈 梓囚徒貧圭�鮗� ● 辛指欺云匈競何!
梁椣戻幣�� 梁心弌傍議揖扮窟燕得胎��傍竃徭失議心隈才凪万弌誌育断蛍�輌臆惨軼僑〃�燕慕得珊辛參資誼持蛍才将刮襲潜��範寔亟圻幹慕得 瓜寡追葎娼得辛參資誼寄楚署衛、持蛍才将刮襲潜填��