I was writing an explanation of code concerning these two lines.
I started to say that the 2nd line was SDK style coding, whereas the first list was DDT-style coding. But, that didn't seem quite right. In general, I think of SDK as using windows generated with CreateWindow rather than with Dialog New - windows vs dialogs.
What would you SDK folks call the difference between the two top lines? SDK vs DDT, or what? "Using Windows API functions vs PowerBASIC functions" would seem more appropriate, since the origin of the windows doesn't affect the way the two lines are written.
Once a window is created, say with SDK, there are still many PowerBASIC DDT commands which can be used, so I assume there can be "pure" SDK as well as hybrid "SDK+DDT" coding styles. And, perhaps there are limits in how the two can be used together - I haven't done a pure SDK yet know what those limits might be.
I just haven't seen any discussion on the terminology of the mixed usage, or of comparisons of two specific lines of code. I've seen that most SDK-DDT comparisons are not simple line-for-line substitutions, so the 1-for-1 comparison above may not be such a good example, but it's the one that got me thinking.
Generic comments would be appreciated. Wax philosophically as you wish.
Code:
Control Send hDlg, %ID_RichEdit, ... SendMessage hRichEdit, ...
What would you SDK folks call the difference between the two top lines? SDK vs DDT, or what? "Using Windows API functions vs PowerBASIC functions" would seem more appropriate, since the origin of the windows doesn't affect the way the two lines are written.
Once a window is created, say with SDK, there are still many PowerBASIC DDT commands which can be used, so I assume there can be "pure" SDK as well as hybrid "SDK+DDT" coding styles. And, perhaps there are limits in how the two can be used together - I haven't done a pure SDK yet know what those limits might be.
I just haven't seen any discussion on the terminology of the mixed usage, or of comparisons of two specific lines of code. I've seen that most SDK-DDT comparisons are not simple line-for-line substitutions, so the 1-for-1 comparison above may not be such a good example, but it's the one that got me thinking.
Generic comments would be appreciated. Wax philosophically as you wish.
Comment