The MFC Professional

Tips From Microsoft's KB


Note that The MFC Professional now also offers supplementary KB pages dealing with specific categories:


Now here is the list of general MSKB articles we've collated for you:


Q162159   SAMPLE:TREESCRL Scrolls in a Tree Control During Drag-and-Drop 
Q161886   SAMPLE: Property Sheet as the View Window of a CFrameWnd 
Q161873   How To Mark MFC Controls Safe for Scripting/Initialization 
Q160906   How To Use MFC 4.2 ODBC Classes in an ISAPI DLL 
Q159895   Readme.txt for the ActiveX SDK (InetSDK\Samples) 

Q159891   Readme.txt for the ActiveX SDK 
Q159621   Difference Between OLE Controls and ActiveX Controls 
Q159478   SAMPLE: January 1997 Microsoft Systems Journal Code 
Q158840   SAMPLE: December 1996 Microsoft Systems Journal Code 
Q158622   BUG: Cursor Library Fails to Close Buffer 

Q158618   INF: SQLState 22002 Error When Fetching Results 
Q158582   How To Configure a Non-DCOM Server and Client to Use DCOM 
Q158508   COM Security Frequently Asked Questions 
Q158451   How To Call Automation Methods with Variable Argument Lists 
Q158264   FAQ on Developing with the ActiveX SDK 

Q158262   SAMPLE: Custom AppWizard for the DAO SDK/dbDao Classes 
Q157970   PRB: Event Firing Changes in MFC May Break Some Containers 
Q157959   How To Package MFC Controls for Use Over the Internet 
Q157919   INF: Building an ODS Application with MFC 
Q157720   VSS 5.0 Readme: Sec. 1, Software Installation Information 

Q157719   VSS 5.0 Readme: Sec. 4 & 5, for Users of VSS 4.0/VSS Home Page 
Q157718   VSS 5.0 Readme: Sec. 3, New Features in Visual SourceSafe 
Q157717   VSS 5.0 Readme: Sec. 2, General Notes and Tips 
Q157437   FIREEV.EXE Fires Events from a Second Thread 
Q156934   PATCH: Visual C++ 4.2b Patch 

Q156693   IEZOOM.EXE Changes the Font Size of the Web Browser Control 
Q156673   HELSVC.EXE Implements an OLE Server in a Service 
Q156478   SAMPLE: November 1996 Microsoft Systems Journal Code 
Q156298   FIX: Error on Disconnecting from ODBC Desktop Drivers 

Q156138   How To Use MFC ODBC/DAO, DAO SDK in NT Service or with Threads 
Q156078   SAMPLE: RegMaid Utility to Help Clean Up the Registry 
Q155973   SAMPLE: Create an ActiveX Control with a Dialog Resource 
Q155918   How To Scroll a CFormView to See the Controls 
Q155895   How To Find an Item in a Tree Control Via its Label 
Q155762   SAMPLE: How To Use MFC App with DirectSound APIs 

Q155690   SAMPLE: REGAUT.EXE Registers an Automation Object as Active 
Q155257   SAMPLE: Dialog Templates in Memory 
Q155141   How To Add a Toolbar in an MDI Child Window 
Q154744   PRB: Modifying CWinApp Members Causes Error in DBGHEAP.C 
Q154643   INF: Desktop Drivers Not Meant For Access or DAO 

Q154419   Standard C++ Library Frequently Asked Questions 
Q154295   BUG: TDS Errors in a Multithreaded ODBC Application 
Q154289   How To Identify the Symptoms of File Corruption Problems
Q154172   How To Pass Binary Data Between an ActiveX Control and VB
Q154116   Tutorial: How To Debug OLE Applications

Q154039   How To Pass Optional Arguments to MFC ActiveX Controls
Q152696   How to Use the MFC Database Classes in Console Applications
Q152695   How to Catch and Decipher DAO SDK-Based Exceptions
Q152688   How to Change the Name of a Microsoft Access Field w/MFC DAO

Q152387   SAMPLE: DAOPROP.EXE: DaoProp Uses MFC Properties Collection
Q152376   How To Disable Push Buttons on a DialogBar in MFC
Q152316   SAMPLE:CONDOC.EXE:Extract Container/Document Info with MFC DAO
Q152294   How To Access Binary Data Using dbDao
Q152252   How To Get 32-bit Scroll Position During Scroll Messages

Q152116   SAMPLE:DAO_OCX.EXE: ActiveX Control Uses DAO to Query Database
Q152070   How To Retrieve Dialog Info from Word Using an MFC App
Q152021   PRB: Deleting Records Containing NULLs Using DAO 
Q151856   SAMPLE: CMEMDC.EXE Memory Bitmap for Scrolling in CScrollV
Q151662   How To Disable Tabs in CPropertySheet

Q151585   How To Use _crtBreakAlloc to Debug a Memory Allocation
Q151426   How to Create a DAO Setup that Installs Jet IISAM Files 
Q151032   SAMPLE: GENSPLIT: Putting a Generic CWnd in a Splitter Pane
Q150575   How to Set Up a TCP/IP Peer-to-Peer Network Connection
Q150552   How To Avoid the ODBC Login Dialog when Using MFC

Q150288   How to Enable Selection Button in Print Dialog Box
Q150204   How to Retrieve the Actual Parent Window of an OLE Control
Q149594   How to Call DAO Directly from MFC to Change a User's Password
Q149558   New Way to Create an .MDB File for Microsoft Access Databases
Q149407   How to Display a Bitmap in a CStatusBar Pane

Q149392   How to Use the DAO SDK dbDao Classes with Visual C++ 4.x
Q149343   How to Implement Context-Sensitive Help for Dialog Controls
Q149257   How to Replace a View in a Splitter Window
Q149087   How To Use CDaoRecordset::Seek 
Q148917   How to Use the DAO Dynaset with Microsoft SQL Server 6.0

Q148860   How to Show Container's Toolbar During Inplace Activation
Q148832   How to Export Functions from a 16-bit DLL
Q148791   How to Provide Your Own DllMain in an MFC Regular DLL
Q148738   SAMPLE: MFCDRAG Implements Drag&Drop Between CListCtrl & CTree
Q148734   How to Debug WEP(), _WEP(), and ExitInstance() in 16-bit DLLs

Q148617   How to Speed Up Load Time of OLE Controls
Q148505   How to Force Files to Be Flushed to Disk
Q148388   How to Change Default Control Focus on CPropertyPage
Q148304   SUMMARY: Frequently Encountered MFC 3.x to 4.0 Porting Issues 
Q148242   How To Handle OCM_CTLCOLORxxx Reflected Messages

Q148222   How to Update Property Values in a Property Page
Q147952   SAMPLE: Two-Way Communication Using IDispatch in MFC
Q147842   How to Detect a Mouse Click on Any Column of List View Control
Q147740   How to Handle Events for OLE Controls in a CWnd
Q147393   How to Profile an OLE Server or an OLE Control

Q147149   How to Localize Application Resources with Foundation Classes 
Q146916   How to Create a Modeless CPropertySheet With Standard Buttons
Q146437   SAMPLE: Horizontal Scrolling List Box in an MFC Class
Q146120   How to Use an OLE Control as an Automation Server
Q146010   How to Set the Picture Property of an OLE Control

Q145994   How to Calculate Dialog Units When Not Using the System Font
Q145936   How to Insert Existing Projects as Sub-Projects
Q145857   How to Use Multiple Menus in MFC App That Uses GetDefaultMenu
Q145616   How to Enable Edit Menu Commands for Edit Controls
Q143432   How to Gain Access to an OLE Control from Its Property Page

Q143299   SAMPLE: CFormView-Based Server Shows Metafile When not Active
Q143291   How to Resize CPropertyPages at Run Time
Q143255   How to Make a Resizable Dialog Bar
Q143210   How to Add the Finish Button to a Wizard Property Sheet
Q143072   How to Determine Default Libraries for an .OBJ Object File

Q142481   SAMPLE: FCSVAL32 Control-by-Control Validation in MFC
Q142384   How to Create Accelerators for CPropertyPages
Q142377   SAMPLE: MMFILE - Class for Memory-Mapped Files
Q142318   How to Remove OLE Controls & Gallery Components from a Project
Q142317   How to Create a Minimized/Maximized MDI Child Window

Q142202   How to Create a Progress Bar on the Status Bar
Q142170   SAMPLE: PRPFONT - How to Set CPropertySheet Fonts
Q141921   How to Support Two File Extensions per MFC Document Type
Q141904   How to Use SQL Aggregrate Functions with the MFC DAO Classes
Q141888   SAMPLE: Blocks32: Demonstrates CRectTracker Class

Q141871   How to Add Tooltips to OLE Controls
Q141863   SAMPLE: Drawing a Bitmap in a Foundation Class Dialog Box
Q141834   How to Change Icon or Bitmap of CListCtrl Item When Selected
Q141802   SAMPLE: Dynamic Column Binding with MFC ODBC Database Classes
Q141796   How to Identify the Jet Database Engine Components 

Q141758   How to Add Tooltips for Controls to an MFC Modal Dialog Box
Q141752   SAMPLE: Limiting 32-bit Applications to a Single Instance
Q141725   Stopping MFC/MDI from Creating New MDI Child Window On Startup
Q141724   SAMPLE: Context-Sensitive Help in a CDialog Object
Q141717   SAMPLE: DAOTable Uses DAO Classes to Create Database Objects

Q141675   How to Save and Restore State of Dockable Toolbars
Q141499   SAMPLE: VWRPLC32, Replacing a View in a CMDIChildWnd Window
Q141487   How to Change the Text in the Tabs of a CPropertySheet
Q141445   SAMPLE: DLGDB32 CDialog Sharing a CRecordset Object
Q141414   How to Enumerate OLE and VB Controls from an OLE Control

Q141334   SAMPLE: VSWAP32 Demos Multiple-View Switching in SDI (32-bit)
Q141333   SAMPLE: VSWAP32 Demos Multiple-View Switching in SDI (16-bit)
Q141277   How to Override an Interface in an MFC Application
Q141039   How to Hide the Apply Button in CPropertySheet
Q140850   How to Convert DLLTRACE to Use MFC in Shared Library

Q140616   SAMPLE: MFCDISP: Replacing MFC IDispatch implementation
Q140596   MFC 4.0 No Longer Pre-Registers Window Classes
Q140595   DOCERR: How to Display Tool Tips After Calling EnableToolTips
Q140592   How to Implement Per-Property Browsing for a Custom Property
Q140591   How to Display an MFC Automation Document Automatically

Q140587   How to Change Default Button on CPropertySheet
Q140586   How to Add Buttons to a Modeless CPropertySheet
Q140538   How to Do Away with the Print Dialog Box in MFC Printing
Q140158   How to Place Static Text Labels Over Columns in a List Box
Q139638   How to Overload New to Reduce Memory Fragmentation

Q139469   How to Use TrackPopupMenu() and Update UI Handlers
Q138866   How to Set Default Values for Stock Properties in OLE Controls
Q138692   How to Configure a Time-Out on a CSocket Operation
Q138666   How to Browse on Demand with Visual C++ Version 4.0
Q138505   How to Add Context-Sensitive Help Button to Windows 95 Dialogs

Q138326   How to Create a Browser Library for the Common Control Classes
Q138266   How to Implement Scaled Printing in an MFC/OLE Container
Q136549   Microsoft Foundation Class Library Development Guidelines
Q134421   How to Use CBitmapButton to Resize a Bitmap to Fit a Button
Q133716   How to Detect Mouse Clicks on Client Area of MDI Frame Windows

Q133256   How to Prevent Mainframe Window from Being ReSized
Q132909   How to Customize the Common Print Dialog 
Q132199   Article List for Windows SDK Samples 
Q132080   How to Change the Color of an MFC Child Control Class
Q131992   How to Create a Property Sheet That Has Scrolling Tabs in MFC 

Q121946   How to Create a Status Bar in Every MDI Child Window
Q119765   Example DDX Routine for Access Memo Fields
Q119064   Retrieving a List of All ODBC Data Sources
Q118611   SetMessageQueue Used in MFC WinMain 
Q118609   Creating an .MDB File for Microsoft Access Databases 

Q117316   SAMPLE: ODBCDATE Sample Illustrates Working with Database Dates
Q114961   SAMPLE: RFX_Date() function for TIMESTAMP_STRUCT
Q113895   VB3 Intro to Microsoft OLE Custom Control Architecture, Tools 
Q113251   SAMPLE: MULTICON Demonstrates Dynamic Icons
Q112385   SAMPLE: Text Output Using CScrollView Derivative

Q110507   Configuring ODBC Data Sources on the Fly 
Q109039   Frequently Asked Questions About Foundation Classes 
Q108433   Sample Illustrates Multithreaded Programming Techniques
Q106455   How to Acquire a List of All CDocument Objects
Q105497   Directory Picker Sample Using Modified CFileDialog 

Q102147   Class Library Functions to Handle Visual Basic Strings 
Q 87976   Creating a Foundation Classes Dialog Box with Custom Icon 




Back to The MFC Professional