Click here to Skip to main content
15,501,968 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: macro function definition Pin
coco24318-Aug-22 3:43
Membercoco24318-Aug-22 3:43 
GeneralRe: macro function definition Pin
Mircea Neacsu18-Aug-22 3:53
mvaMircea Neacsu18-Aug-22 3:53 
GeneralRe: macro function definition Pin
coco24318-Aug-22 4:30
Membercoco24318-Aug-22 4:30 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 5:28
mveRichard MacCutchan18-Aug-22 5:28 
GeneralRe: macro function definition Pin
coco24318-Aug-22 5:46
Membercoco24318-Aug-22 5:46 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 5:50
mveRichard MacCutchan18-Aug-22 5:50 
GeneralRe: macro function definition Pin
coco24318-Aug-22 6:18
Membercoco24318-Aug-22 6:18 
GeneralLearning the Win API Pin
trønderen18-Aug-22 7:58
Membertrønderen18-Aug-22 7: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 9:38
Membercoco24318-Aug-22 9:38 
AnswerRe: macro function definition Pin
coco24318-Aug-22 3:21
Membercoco24318-Aug-22 3:21 
GeneralRe: macro function definition Pin
coco24318-Aug-22 3:37
Membercoco24318-Aug-22 3:37 
AnswerRe: macro function definition Pin
Richard MacCutchan18-Aug-22 4:38
mveRichard MacCutchan18-Aug-22 4:38 
GeneralRe: macro function definition Pin
coco24318-Aug-22 4:50
Membercoco24318-Aug-22 4:50 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 5:04
mveRichard MacCutchan18-Aug-22 5:04 
GeneralRe: macro function definition Pin
coco24318-Aug-22 5:28
Membercoco24318-Aug-22 5:28 
GeneralRe: macro function definition Pin
Richard MacCutchan18-Aug-22 5:40
mveRichard MacCutchan18-Aug-22 5:40 
QuestionReplace CString Format() Pin
2022 Dude16-Aug-22 8:40
Member2022 Dude16-Aug-22 8:40 
AnswerRe: Replace CString Format() Pin
Mircea Neacsu16-Aug-22 9:41
mvaMircea Neacsu16-Aug-22 9:41 
QuestionRemove white space - empty lines - in editor Pin
Member 1496877115-Aug-22 8:16
MemberMember 1496877115-Aug-22 8:16 
AnswerRe: Remove white space - empty lines - in editor Pin
Dave Kreskowiak15-Aug-22 8:23
mveDave Kreskowiak15-Aug-22 8:23 
GeneralRe: Remove white space - empty lines - in editor Pin
Member 1496877115-Aug-22 10:12
MemberMember 1496877115-Aug-22 10:12 
GeneralRe: Remove white space - empty lines - in editor Pin
Dave Kreskowiak15-Aug-22 10:26
mveDave Kreskowiak15-Aug-22 10:26 
GeneralRe: Remove white space - empty lines - in editor Pin
Richard MacCutchan15-Aug-22 22:30
mveRichard MacCutchan15-Aug-22 22:30 
GeneralRe: Remove white space - empty lines - in editor Pin
Dave Kreskowiak16-Aug-22 4:47
mveDave Kreskowiak16-Aug-22 4:47 
GeneralRe: Remove white space - empty lines - in editor Pin
Richard MacCutchan16-Aug-22 4:54
mveRichard MacCutchan16-Aug-22 4: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.