Article View: comp.os.os2.programmer
Article #3550Developers - Read this!
From: Robert Mahoney
Date: Fri, 22 Jan 1993 05:00
Date: Fri, 22 Jan 1993 05:00
59 lines
3144 bytes
3144 bytes
SL>So, what I propose is this: an electronic magazine for all levels of
SL>developers, with topic levels ranging from 'How do I create a window?' to
'I
SL>need help writing a driver for my video card.'
SL>I was thinking about doing monthly releases in straight ascii format,
SL>distributed to CI$, hobbes, and uuencoded on comp.binaries.os2. It would
Not to discourage you, this was tried in the Fidonet about 1 year ago.
One issue was created (in .inf form, source and binaries included), and
no others ever saw the light of day, just a lack of response from the people
writing the articles.
Actually I think a better thing would be a programmer FAQ. The existing
one
is more like a GNU/EMX FAQ. A programmer FAQ that also answers with pointers
to existing code (like "for more info ftp hook.zip from hobbes").
I know I see alot of repeat questions:
How do I port my DOS keyboard TSR to OS/2? (Use monitors or hooks)
Printf is broken!! (no it's not, turn off buffering)
When I pass a structure to WinCreateWindow, sometimes it doesn't
work! (Put the size of the structure as the first word)
WinFontDlg crashes my system! (use a larger stack)
How do I use type filtering in the open dlg? (it's broken in GA, fixed in
SP)
When minimizing, my dialog box is overwriting my icon (Hide the offending
control).
How big should my stacksize be? (For a PM program, >16K)
How do I stop a container from flashing every time I add a record?
(Disable/Enable
the container window)
How do I get the info from WinGetErrorInfo?
How do I keep a sizeable window from getting smaller than a certain size?
How do I put a bitmap or icon on a button?
How do I program the Com port? (DosOpen,DosRead,DosWrite and the IOTCL
calls)
How do I create a conditional menu?
How do I pass user data in WinCreateStdWindow? (Use 2 WinCreateWindow)
How do I use mini-icons in containers (You don't, it's broken)
Can I use WinSetPresParms to set the font in a MLE? (No, use MLM_SETFONT)
Can we use VIO in v2.0? Where are the docs for it? Yes, and check hobbes.
Can I have a multi-column listbox? (Yes, but use a container in details
view)
Can I redirect stdin and stdout in a app I start from my app? (Use
DosDupHandle)
Can I distribute the C-Set/2 runtime DLL? (No, you have to create your own)
How do I open a file that is already in use? (Use OPEN_SHARE_DENYNONE)
How do I add a menu to a dialog box? (WinLoadMenu and then WM_UPDATEFRAME)
How do I subclass a control?
Why should I use _beginthread instead of DosCreateThread? (To use the RTL)
If anyone is interested I have the full answers and sample code for most of
these
questions.
Bob
___
X MR/2 1.36 #10 X Windows NT: It can talk the talk but can it walk the walk?
Technical Details
Message-ID:
<727765284.AA00000@blkcat.UUCP>Path:
arc1-ca.pugleaf.net!sparky!uunet!blkcat!UucpShow Full Headers
Complete Article Headers
From: Robert.Mahoney@f347.n109.z1.fidonet.org (Robert Mahoney) Sender: Uucp@blkcat.UUCP Path: arc1-ca.pugleaf.net!sparky!uunet!blkcat!Uucp Newsgroups: comp.os.os2.programmer Subject: Developers - Read this! Message-ID: <727765284.AA00000@blkcat.UUCP> Date: Fri, 22 Jan 1993 00:00:06 -0500 Lines: 60