Click here to Skip to main content
15,885,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: macro function definition Pin
coco24318-Aug-22 2:43
coco24318-Aug-22 2:43 
GeneralRe: macro function definition Pin
Mircea Neacsu18-Aug-22 2:53
Mircea Neacsu18-Aug-22 2:53 
GeneralRe: macro function definition Pin
coco24318-Aug-22 3:30
coco24318-Aug-22 3:30 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 4:28
mveRichard MacCutchan18-Aug-22 4:28 
GeneralRe: macro function definition Pin
coco24318-Aug-22 4:46
coco24318-Aug-22 4:46 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 4:50
mveRichard MacCutchan18-Aug-22 4:50 
GeneralRe: macro function definition Pin
coco24318-Aug-22 5:18
coco24318-Aug-22 5:18 
GeneralLearning the Win API Pin
trønderen18-Aug-22 6:58
trønderen18-Aug-22 6:58 
If you learn something for the intention of making yourself an income, then the Win32 API is not the right choice in the year 2025. On the other hand ...

I learned Windows programming before there was a WIN32 API, it was way back in the 16-bit days of the "WIN16 API" (it was never called that). My primary learning was not an API, but event driven programming: Taking your data structures from one consistent state to another consistent state in well defined, atomic steps. Always leaving your data so that it can be properly used by anyone else the next time something happens. No loose ends, no garbage on the floor. Looking upon each event cycle similar to a database transaction. A great philosophy for building robust software.

Often, programmers show me code: 'See, I am doing event driven programming too - here is the switch case on the input value!' But even driven is so much more than a switch statement. What I see is a lot of other logic that is not at all related to the state and event, lots of loose ends, lots of garbage variables affecting the state without being treated as state data. The Windows model put a strong pressure on you to do 'clean' event driven coding.

Today, working in C#, I still think in event/state terms, taking data structures through well defined, finite processing steps from on consistent state to another. I didn't learn that from any book published this millennium. I didn't learn it from younger coworkers. I didn't learn it from browsing programming forums on the Internet. I learned it from the Windows API.

I am really happy to have that background when programming in the year 2022, with the tools of year 2022. Learning the Windows API / event driven programming was certainly no waste of time. It has great value for me, even today.
GeneralRe: Learning the Win API Pin
coco24318-Aug-22 8:38
coco24318-Aug-22 8:38 
AnswerRe: macro function definition Pin
coco24318-Aug-22 2:21
coco24318-Aug-22 2:21 
GeneralRe: macro function definition Pin
coco24318-Aug-22 2:37
coco24318-Aug-22 2:37 
AnswerRe: macro function definition Pin
Richard MacCutchan18-Aug-22 3:38
mveRichard MacCutchan18-Aug-22 3:38 
GeneralRe: macro function definition Pin
coco24318-Aug-22 3:50
coco24318-Aug-22 3:50 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 4:04
mveRichard MacCutchan18-Aug-22 4:04 
GeneralRe: macro function definition Pin
coco24318-Aug-22 4:28
coco24318-Aug-22 4:28 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 4:40
mveRichard MacCutchan18-Aug-22 4:40 
QuestionReplace CString Format() Pin
2022 Dude16-Aug-22 7:40
2022 Dude16-Aug-22 7:40 
AnswerRe: Replace CString Format() Pin
Mircea Neacsu16-Aug-22 8:41
Mircea Neacsu16-Aug-22 8:41 
QuestionMessage Closed Pin
15-Aug-22 7:16
Member 1496877115-Aug-22 7:16 
AnswerRe: Remove white space - empty lines - in editor Pin
Dave Kreskowiak15-Aug-22 7:23
mveDave Kreskowiak15-Aug-22 7:23 
GeneralMessage Closed Pin
15-Aug-22 9:12
Member 1496877115-Aug-22 9:12 
GeneralRe: Remove white space - empty lines - in editor Pin
Dave Kreskowiak15-Aug-22 9:26
mveDave Kreskowiak15-Aug-22 9:26 
GeneralRe: Remove white space - empty lines - in editor Pin
Richard MacCutchan15-Aug-22 21:30
mveRichard MacCutchan15-Aug-22 21:30 
GeneralRe: Remove white space - empty lines - in editor Pin
Dave Kreskowiak16-Aug-22 3:47
mveDave Kreskowiak16-Aug-22 3:47 
GeneralRe: Remove white space - empty lines - in editor Pin
Richard MacCutchan16-Aug-22 3:54
mveRichard MacCutchan16-Aug-22 3:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.