Article View: comp.os.os2.programmer
Article #2224Re: How do you use the common file open dialog?
From: hamish
Date: Thu, 01 Oct 1992 23:20
Date: Thu, 01 Oct 1992 23:20
40 lines
2496 bytes
2496 bytes
In article <1992Oct1.172605.15912@bnr.ca>, stu9r22@bnr.ca (Ian Lowrie) writes: > As a fledgling OS/2 programmer, I've been trying to use the common file > open/close dialog box. Unfortunately, I can't get it to work. :( > > I use Watcom C/386 v9, with the OS/2 headers from GCC suitably modified. Watcom now distribute the headers for OS/2 2.0 with the patches available from their bulletin board. (3 disks 1.44M each, just over 2M compressed together). > The problem is, the box terminates the program in three cases: > 1) Double clicking a file name > 2) opening one, then the other of the type/drive comboboxes > 3) hitting OK doesn't return a proper filename > > I'm basing my code on the example in the Application Development RedBook. > > If someone could post an example of how to use this, I would really > appreciate it (or at least point me to an example that works). > > Please post, since the email address above is probably wrong... > Stephen Drye > > PS: Does Watcom's _beginthread automatically allocate the stack for the > thread like C/Set 2, or do I have to allocate the stack myself (different > problem). Heeeelp! It uses DosCreateThread, so will probably let that allocate the stack if you just specify a size for it. -- ============================================================================== | Hamish Marson <h.marson@waikato.ac.nz> OS/2 | | Programmer (n/5), School of Computing and Mathematical Sciences | | University of Waikato, | | Hamilton, New Zealand. | |Disclaimer: Anything said in this message is the personal opinion of the | | finger hitting the keyboard & doesn't represent my employers | | opinion in any way. (ie we probably don't agree) | ============================================================================== Q. If Nuclear Tests are so safe, why don't the French do them under Paris?
Technical Details
Message-ID:
<1992Oct2.112013.11186@waikato.ac.nz>Path:
arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!waikato.ac.nz!hamishReferences:
<1992Oct1.172605.15912@bnr.ca>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!waikato.ac.nz!hamish From: hamish@waikato.ac.nz Newsgroups: comp.os.os2.programmer Subject: Re: How do you use the common file open dialog? Message-ID: <1992Oct2.112013.11186@waikato.ac.nz> Date: 2 Oct 92 11:20:13 +1200 References: <1992Oct1.172605.15912@bnr.ca> Organization: University of Waikato, Hamilton, New Zealand Lines: 40