Instructor-led training
Introduction to Windows Programming and MFC Training in New Lenox, Illinois
This course teaches advanced programming techniques using the Win32 API and MFC.
What you'll learn
Private Training for Teams
This course is offered as private, instructor-led training for organizations, onsite in New Lenox, Illinois or live online. Dates, delivery format, and course content are arranged around your team's requirements.
This course is not currently scheduled as a public class for individual enrollment.
Request Group TrainingPrerequisites
Course Outline
Win32 Architecture and Programming
Windows Operating Systems
Dynamic Link Libraries
Win32 API
Kernel Objects
Win32 Memory Manageme
Win32 Programming
Win32 Program Flow
SDK Windows Programs
Console Programs
Windows Versions
Error Information
MFC Without the Wizards
Dynamic Link Libraries
Dynamic vs. Static Libraries
DLLs to Manage Resources
Explicit and Implicit Linking
Linking to C Language DLLs from C++ Programs
MFC Regular and Extension DLLs
Introduction to Threads Using MFC
Win32 Processes and Threads
MFC Thread Encapsulation
User Interface and Worker Threads
MFC Thread Synchronization
Thread Safety
Processes in Win32
Creating and Terminating Processes
Process Data Structures
Process Kernel Objects
Synchronization
Interprocess Data Communication
Interprocess Communciation in Win32
Memory-Mapped Files
WM_COPYDATA
Mailslots
Named Pipes
COM Fundamentals
Interfaces
Classes and Objects
Globally Unique Identifiers
Servers
Registration
Instantiating an Object
Object Lifetime and Interface Negotiation
Initializing COM
COM Client Programming Model
Appendix A. Visual C++ COM Support
Using Type Libraries with Import Directive
Namespaces
Smart Pointers
Error Handling
_bstr_t
Form Views and Data Entry
CFormView Class
Converting a Dialog to a Form View
Creating a Form View with AppWizard and ClassWizard
Control Variables in Dialog Data Exchange
Data Entry User Interface Paradigm
Introduction to ODBC
ODBC Architecture
Connecting to a Data Source
Executing SQL Statements
Retrieving Result Data
MFC Database Classes
CDatabase and CRecordset Classes
Record Field Exchange
Scrolling in a Recordset
Recordset Status
Choosing a Data Source at Runtime
MFC Specification of SELECT Statement
Edits, Adds and Deletes
CRecordView Class
More About ODBC
Using ODBC at the API Level
Parameterized Queries
Joins
ActiveX Data Objects
Universal Data Access
ODBC and OLE DB
ADO Object Model
Database Programming Using ADO
Appendix A. Data Access Objects
Windows Common Controls
Win32 Common Controls
MFC Common Control Classes
Progress, Slider and Animation Controls
Bitmaps and Image Lists
Tree View Control
List View Controls
Windows System Registry
System Registry
Win32 Registry API
Saving User Preferences in Registry
Advanced Document/View Architecture
Document Templates
Multiple Document Classes
Multiple View Classes
Splitter Windows and Multiple Panes
Advanced Menus and Toolbars
Dynamic Menus
Context Menus
Dynamic Toolbars
Dialog Bars
Advanced GDI
Coordinate Transformations
Scrolling
Printing
Metafiles
What makes Win32 and MFC programming hard to master
MFC wizards hide a lot. The difficulty here is that the course removes that cover and asks you to reason about what sits underneath: processes, threads, kernel objects, DLL loading, COM reference counts and ODBC handles. The syllabus builds these layers in order.
- Win32 foundations. Kernel objects, Win32 memory management, program flow, SDK-style programs and error information. A common misconception is that MFC replaces the Win32 API. It wraps it, and many MFC bugs only make sense once you see the call underneath.
- DLLs. Explicit versus implicit linking, linking to C-language DLLs from C++ code, and MFC regular versus extension DLLs. Mixing these up causes load-time failures that are hard to diagnose.
- Threads and processes. User interface versus worker threads, MFC synchronization and thread safety. Then process creation, memory-mapped files, WM_COPYDATA, mailslots and named pipes. Choosing among these IPC mechanisms is a design decision, and a synchronization mistake may fail only under load.
- COM. Interfaces, GUIDs, registration, object lifetime and interface negotiation. The appendix on Visual C++ COM support (the import directive, smart pointers, _bstr_t) shows how the compiler hides reference counting, which is exactly why it matters to understand it first.
- Data access. ODBC at the API level comes before CDatabase, CRecordset, Record Field Exchange and CRecordView. After that come parameterized queries, joins, OLE DB and ADO. Learning the layers in that order explains what the MFC classes do on your behalf.
- User interface depth. Common controls (tree view, list view, image lists), multiple document and view classes, splitter windows, dynamic menus and toolbars, dialog bars, and GDI topics such as coordinate transformations, printing and metafiles.
The five days are dense, and later topics assume you are comfortable with the earlier ones.
Who this course suits and what to take around it
The course targets developers who already work in MFC and Visual C++ and need to understand the Win32 layer, typically because they build, maintain or migrate existing Windows desktop applications. The stated prerequisite is basic MFC and Visual C++ experience, and the description calls it advanced material for experienced MFC developers. Treat the course as a step up from the fundamentals, not a first look at Windows programming.
If you have not yet built MFC applications, MFC Windows Programming for C++ Programmers is the natural preparation, since this course assumes document/view and dialog basics. If your C++ itself is shaky, C++ Programming covers the language foundation first.
For teams that want to apply RAII and smart pointers around legacy MFC code, Modern C++ Programming using C++11/C++14 is a sensible follow-on. It addresses the ownership problems that arise when older code meets newer idioms.
Illustrative scenarios
The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.
- Extending a document-based application. A team might need a second document type with its own view, plus a splitter layout and context menus. That maps to document templates, multiple document and view classes, splitter windows and dynamic menus. Adding printing and metafile output draws on the GDI topics.
- Reworking a data-entry front end. A team might maintain a CRecordset-based form that needs parameterized queries and joins, and want to understand how ADO would replace it. That ties to CFormView, Record Field Exchange, ODBC at the API level, OLE DB and the ADO object model.
- Splitting work across threads and processes. An application might move long-running work to a worker thread and exchange data with a helper process through named pipes or memory-mapped files. A COM client written with the import directive and smart pointers could then talk to another component. Those choices involve thread synchronization, interprocess communication and COM client programming.
AI coding assistants with Win32 and MFC code
AI coding assistants are useful for explaining an unfamiliar Win32 call, summarizing what a message map or DLL export is doing, drafting boilerplate for common controls or registry access, and sketching tests. They are weaker where this course is hardest:
- Concurrency. Generated thread code often looks plausible but misses a lock, holds one too long, or touches the user interface from a worker thread.
- Resource and COM lifetime. Leaked handles, mismatched reference counts and BSTR ownership errors are easy to introduce and rarely show up in a quick run.
- Mixed idioms. Suggestions may blend modern C++ patterns or newer APIs into code built on older MFC conventions, or call functions your project's toolchain does not provide.
- Data access details. Parameter binding, Record Field Exchange mappings and recordset status handling are specific enough that generated code may compile and still behave wrongly.
To verify, review every generated change for ownership and synchronization, test under concurrent load, check handle and memory usage over long runs, and use static analysis or sanitizers where your toolchain supports them. Understanding the underlying Win32 and COM model, which this syllabus teaches, is what lets you judge whether the output is correct.
Frequently asked questions
What level is this course?
The description positions it for experienced MFC developers who want to go deeper into Win32 and advanced MFC techniques. It is not a first course in Windows programming.
What should I know beforehand?
A basic working knowledge of MFC programming and the Visual C++ development environment. Familiarity with C++ classes and the document/view model will help, and the MFC Windows Programming course is one way to prepare.
What does the course cover?
Win32 architecture and API fundamentals, DLLs, threads and processes, interprocess communication, COM fundamentals and Visual C++ COM client support, ODBC, MFC database classes and ADO, common controls, the system registry, advanced document/view, menus and toolbars, and GDI topics including printing and metafiles.
Can this be delivered privately for our team, onsite or online?
Yes. HSG provides private training for organizations, delivered at the client's location or live online.
Can the content be customized?
Private courses can be customized, including tailoring to the technology versions your organization uses. You can describe your needs through a training proposal request.Training locations
Introduction to Windows Programming and MFC training across the U.S. and beyond.
We provide private Introduction to Windows Programming and MFC training for organizations, onsite at your location or live online, throughout the United States and internationally.
View all Introduction to Windows Programming and MFC training locations
Train your team with HSG
Private, instructor-led training customized for your organization.
- Onsite or live online delivery
- Customized curriculum
- For a single employee or an entire team
- Flexible scheduling
- Experienced instructors
Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com
Ready to train your team?
Let's customize this training for your organization.
Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.