HDTenEightyP/NetNews huggingface dataset:
From: reaper@wixer.cactus.org (Keath Milligan)
Subject: Question: Dev. Driver/TSR Interrupts Behind Windows
Organization: Real/Time Communications
Date: Mon, 27 Jul 92 16:17:41 GMT

I have a question for one of you 32-bit assembly gurus.  When I install a
device driver from CONFIG.SYS or load a TSR from AUTOEXEC.BAT that services
interrupts (such as a serial driver or fax-driver) and then run Windows 3.x,
what happens when an interrupt comes in?

I'm a little unclear as to what goes on when I load a device-driver or TSR
that runs in real mode and run Windows.  Are the interrupts pre-emptively
serviced?  Or does windows time-slice a virtual machine session for DOS (this
doesn't sound likely).

-- 
oooooo ooo o o  o            Keath Milligan            o  o  ooooo oooo oooooo
oooo oo ooo  o   o   Prometheus Light and Sound, Inc.   o   o  o ooooooooooooo
oooooooo o oo  o         Real/Time Communications        o    o o ooo oooooooo
oooooo oooo ooo  o  internet: reaper@wixer.cactus.org  o   o  o ooo oo ooooooo
From: klug@Software.Mitel.COM (Peter Klug)
Newsgroups: comp.windows.ms.programmer
Subject: Problem altering menu text
Date: 22 Jul 92 20:53:02 GMT
Distribution: na
Organization: Mitel Corporation; Kanata, Ontario, Canada


I have an application in which I'd like to toggle the text for an item
in the menu bar.  It isn't a popup menu, simply a menu item.  Anyway,
from Volume 1 of the SDK Reference I've wound up with the following:

ModifyMenu(hmenu, MF_STRING, MF_BYCOMMAND, menuId, lpNewMenuStr)

I've read over the API for ModifyMenu several times and this seems
correct.  When I use it, it returns nil and there's no change to the
menu bar (I do call DrawMenuBar afterwards).  I've also tried it for a
menu item inside a popup menu with the same result.

If I call GetMenuString passing in the "menuId" I used in ModifyMenu,
it returns the text which is shown in the menu at that point (I tried
several IDs inside a popup menu and on the menu bar).  So apparently
I'm using the correct menuId.  Is there something wrong with my
syntax?  Is there some way I can find out why ModifyMenu is returning
nil?  Thanks.


--
*        Peter Klug         *  Peter_Klug@Software.Mitel.COM
*     Mitel Corporation     *  
*  Kanata, Ontario, Canada  *  Nostalgia ain't what it used to be.
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: jeroenp@rulfc1.LeidenUniv.nl (Jeroen W. Pluimers)
Subject: JANUSW.ZIP uploaded
Organization: Dept. FMC, Gorlaeus Labs, Leiden University, The Netherlands
Date: Mon, 27 Jul 92 10:06:49 GMT


I just uploaded the file JANUSW.ZIP at oak.oakland.edu
garbo.uwasa.fi and ftp.cica.indiana.edu.

From the docs:
=-=
This is the second public release of two related objects
  tDialogWindow and tJanusDialogWindow
and a test program called DlgTest.
=-=

In short, it consists of two units for Turbo Pascal for Windows
that allows you to have DIALOGS as MDI chils windows and to choose
at run-time to have Borland Dialog behavior or normal dialog behavi or.

(The demos for instance shows a normal dialog as a Borland one and
vice versa).

Source code is included and more ideas are welcome. Some ideas are:
- allowing the Borland/Normal dialog feature for TDialogs
- doing the same on a windows (or .DLL or .EXE) wide class


--
    o _   _  _   _   _             voice: +31-2522-20908 (19:00-24:00 UTC)
   / (_' |  (_) (_' | |            snail: P.S.O.
__/                                       attn. Jeroen W. Pluimers
                                          P.O. Box 266
jeroenp@rulfc1.LeidenUniv.nl              2170 AG Sassenheim
jeroen_pluimers@f521.n281.z2.fidonet.org  The Netherlands
From: kb@jet.uk (Kenneth Blackler)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Questions, round two...
Date: 24 Jul 92 15:52:20 GMT
Organization: Joint European Torus

In <9207221520.AA05939@ucbvax.Berkeley.EDU> ngorelic@MUSETTE.CR.USGS.GOV (Noel S. Gorelick) writes:

>Since I got such great response from the first set of questions,
>I'll try my luck with round number two:

>How does one cause a static window to respond to input?  I have a
>fairly complex arrangement of static windows that I want to be able
>to click on and get a response from...  Straight subclassing doesn't
>work.  The subclass procedure never even gets called for the mouse
>events.

>(Somewhere in the Petzold book, he says that statics trap the
>NCHITTEST message to disable mouse events.  Where and how do I
>re-enable them?)

>(Email, please, our news server just bit the dust)

>Noel (ngorelic@musette.cr.usgs.gov)

A quick way is to create each static control using CreateWindowEx
which by default means your window DOESN'T have the
WS_EX_NOPARENTNOTIFY style.
Your dialog box therefore will receive WM_PARENTNOTIFY messages
and you can process these to tell you which control is pressed
in (only those created this way and added to the dialog box
will generate the message). It will even tell you the (x,y)
position 8-)
Ken B.
-- 
 ______________________________________   ____________   _____________
|Ken Blackler kb@jet.uk (+44)235 464743| | __________ | |   -Fusion-   |
|JET Joint Undertaking, Abingdon       | |   | |_ |   | |Energy for the|
|Oxfordshire, England. OX14 3EA        | | \_/ |_ |   | | (far) future |
- Disclaimer: Please note that the above is a personal view and should not 
  be construed as an official comment from the JET project.
From: bchen@diva.Berkeley.EDU (Benjamin Chen)
Newsgroups: comp.windows.ms.programmer
Subject: Why Only One Instance of Large Model (FAQ?)
Date: 24 Jul 1992 00:35:35 GMT
Organization: University of California, Berkeley
Distribution: usa
NNTP-Posting-Host: diva.berkeley.edu

This is probably a FAQ, but I don't know where the FAQ file can be found
I looked on ftp.cica.indiana.edu, but it only had an FAQ for users,
not programmers.

Anyway, I was wondering why you can run only one instance of a large model
windows application.  The only facts(?) I have at hand are:

1) large model apps execute with multiple code and data segments
2) data segments must be fixed UNLESS you are running in 386 enhanced mode.

Any info or direction to the FAQ would be appreciated.

    BC


-- 
Benjamin Chen
Office:   550-A4 Cory Hall, 2-4332
UUCP:     !ucbvax!cad!bchen               
HEPNET:   LBL::"bchen@cad.Berkeley.EDU"
Newsgroups: comp.windows.ms.programmer
From: SSCHEMA@ibm.gwdg.de (Stefan Schemat)
Subject: Diplaying BMP files under Windows 3.x
Organization: GWDG, Goettingen
Date: Tue, 21 Jul 92 16:44:56 MSZ

Does anybody knows how to load and display a BMP file with 256
colors under Windows 3.x?
First we have tried to display that bitmap with the GDI-command
"BitBlt()" after including it in the program's ressources. It
appeared very fast, but only with a few colors.
Then we loaded and displayed it pixel by pixel with "SetPixel()".
This method shows all colors, but it is veeeeeery sloooooow.
Ciao Stefan
sschema@ibm.gwdg.de
Newsgroups: comp.windows.ms.programmer
From: u231075@twncu865.ncu.edu.tw
Subject: RE:Help on MS C/C++ 7.0
Organization: Computer Center, NCU, Taiwan, R.O.C.
Date: Fri, 31 Jul 1992 13:28:36 GMT

  I got the problems,too. My problem is a fatal error because
a "-30" option is used for RC in makefile. By use of "rc -?" I find
there's no "-30" option for rc and then I kill the "-30" option 
in makefile. It works. The sample helloapp.cpp works fine now.
Hope this helps.

  Kevin Cheng
  Dept. of Physics
  National Central University,Taiwan
Newsgroups: comp.windows.ms.programmer
From: eversole@acae037.cadence.com (Richard Eversole; x6239)
Subject: MSC 7.0 Problems with PWB (HELP!)
Reply-To: eversole@acae037.cadence.com (Richard Eversole; x6239)
Organization: Cadence Design Systems, Inc.
Date: Mon, 27 Jul 1992 11:44:22 GMT


-- 

Alright, maybe I should have gotten Borland C++, but I have been
an MSC user since 4.1 days. Now to the problem.

I finally installed 7.0 (what a disk hog).
I try and run PWB under windows.
Blam! My screen goes into what appears to be 40 column CGA type
resolution. I exit PWB. My windows session has funny lines 
throughout.

I exit windows. Get back in. Start a DOS session. Start PWB.
Amazing. Here it works. What gives ?

The PIF entries look very similar. (Screen stuff is same... don't
remember specifics right now)

MSC uses -1 entries for XMS... DOS pif has 0 0. Could this be it.
I'll have to experiment some more.

Can some one out in netland give me a clue. Or ....
GAG! Do I have to call Microsoft to get an answer. They have never
been very helpful with past problems. (Neither has Borland with
Turbo Pascal problems I've had)
  
  =====================================================================

    eversole@cadence.com
  
    Live long and prosper !

Newsgroups: comp.windows.ms.programmer
From: cwilson@void.ncsa.uiuc.edu (Chris Wilson)
Subject: Re: codeview on second monitor
Organization: Nat'l Center for Supercomputing Applications
Date: Sun, 26 Jul 1992 04:29:12 GMT

In article <62824@cup.portal.com> hassan@cup.portal.com (hassan monu alam) writes:
>{I'm trying to rund Codeview on a second monitor. The first is 
>a NEC 3DS with a Paradise card. The second is a monchrome monitor
>with the cheapest card I could find at Frys. When I run Codeview,
>it comes up with the debugging screen on the main monitor. The second
>monitor stays blank.
>
>Can people suggesg what I may be doing wrong?
>
>Thanks
>
>hassan

Are you specifying "cvw /2" on the command line?  This may be necessary, depending on which version of CodeView you are using.

-Chris Wilson
 cwilson@ncsa.uiuc.edu
From: thanos@reef.cis.ufl.edu (Thanos Karras)
Newsgroups: comp.windows.ms.programmer
Subject: Selection in Edit Controls
Date: 24 Jul 92 13:16:56 GMT
Organization: Univ. of Florida CIS Dept.

Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Setting Text Selection OFF in Edit Controls. HOW??
Summary: 
Expires: 
Followup-To: 
Distribution: 
Organization: Univ. of Florida CIS Dept.
Keywords: 

Hello fellow Windowers:

Two questions for you today:

1)
I have a modal dialog box that contains a multiline edit control and 
some buttons.
The problem I am facing is that when I tab to the edit control, the text
is selected. Is there any way to set the selection off in multiline 
edit controls?

2)
I have a modal dialog box that contains a static window and a scroll bar.
I want to scroll my own text. The arrow key messages only come to me when 
the key is released (WM_KEYUP). PAGE-UP and PAGE-DOWN return WM_KEYDOWN!
What is going on here? How can I get WM_KEYDOWN for the arrow keys?

Thanos Karras
thanos@reef.cis.ufl.edu
From: tannerr@CS.ORST.EDU (Ryan Tanner)
Newsgroups: comp.windows.ms.programmer
Subject: New toy!  Borland 3.1 $40 upgrade came today
Date: 21 Jul 92 23:21:53 GMT
Article-I.D.: CS.1992Jul21.232153.21585
Organization: Oregon State University, Computer Science Dept
Originator: tannerr@storm.CS.ORST.EDU

Well, I was expecting about a six week wait since the sales lady said
that the $40 upgrades were back ordered and it was 3-6 weeks till
expected delivery.  She said it might come earlier, and she was right!
Only about 5 working days later, here it is!  Took a long time to
install (44 megs worth with everything but some of the example files
installed), but now I have a new toy!  I'll spend hours just figuring
out how I want the color syntax bit set up.  Any ideas? 

The Pharlap's free package was about what I expected, one disk and some
advertising (propaganda) about their super deluxe model ($500!), guess
I won't be ordering any!  Well, free is free right?  I'll have to see
what the disk based docs say about it, and figure out if it's worth
bothering with.  After all, Borland has overlays...  What do you think?

Here is a compleat list of what I received:

1) card board shipping box (smile)
2) Phar Lap's propaganda and 1 high density disk
3) 7 page install pamphlet
4) License agreement and assorted product propaganda about other Borland
   products
5) U.S. & Canada registration related stuff (in envelope)
6) International registration related stuff (another envelope)
7) Quick reference card (most usefull of the bunch?)
8) 3.1 User's Guide 228 pages
9) 18 high density 5.25 disks (I got the application frameworks too)
10) 1 plastic entertainment toy (bubble pack)

Well, on the more serious side, I'm gonna play with my new compiler for a
while and determine if it was worth it.  I'll have to check out the
upgraded ability to work with precompiled headers (no longer have to be
in teh same order) and see if that speeds things up.  Also have to figure
out how I'm going to arange to load dpmi before windows... I'm on a 286
don't ya know.

Ryan (tannerr@prism.cs.orst.edu)

-- 
Ryan Tanner (tannerr@prism.orst.edu)        Highlander III quote:
                                                   "There can be only FIVE!"

DISCLAIMER:  I don't even know the person!
From: hjelm+@cs.cmu.edu (Mark Hjelm)
Newsgroups: comp.windows.ms.programmer
Subject: DDE and Bitmaps
Date: 30 Jul 92 16:04:35 GMT
Article-I.D.: cs.1992Jul30.160435.3712
Organization: School of Computer Science, Carnegie Mellon


If I have a handle to a bitmap, what is the correct way to put it into
a DDEDATA structure (actually, I'll be using DdeCreateDataHandle)?  Is
the bitmap handle just a handle to a global memory object that I can
lock and get the data out of?  What does the CF_BITMAP format look like
internally (in the DDEDATA structure in particular)?  

Thanks,
Mark Hjelm
hjelm@cs.cmu.edu
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: jegm@cody.esd.sgi.com (Jim Morris)
Subject: How to change font in dialog title?
Organization: Silicon Graphics, Inc.
Date: Wed, 29 Jul 92 18:47:14 GMT


I would like to create a small floating info box out of a standard
dialog. One of the things I am stumped on is how do I make those tiny
little dialog boxs. I think that if I can make the title font small
then the entire title line shrinks too. So the question is how to
change the font of the title. (I know how to change the font of the
stuff inside a dialog box, but that doesn't affect the title).

Thanks

Jim

--
Jim Morris, Email: jegm@esd.sgi.com  Voice: (415) 390-5136
From: 890560p@dragon.acadiau.ca (Trevor Porter)
Newsgroups: comp.windows.ms.programmer
Subject: Edit Control Help Needed
Date: 23 Jul 92 13:24:01 GMT
Organization: Acadia University


I'm looking for a way to obtain the index of the character next to the
cursor in an edit control.  Is there an easy way to do this ? 
None of the messages that you can send to an edit control return this.

Thanks.

-- 
_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_                               Trevor Porter    	890560p@dragon.acadiau.ca                               Acadia University                                                               Wolfville, NS, Canada                                                           -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
From: sarrett@felix.filenet.com (Wendy Sarrett)
Newsgroups: comp.windows.ms.programmer
Subject: screen saver control
Date: 30 Jul 92 23:19:07 GMT
Reply-To: sarrett@fritz.filenet.com (Wendy Sarrett)
Organization: FileNet Corp., Costa Mesa, CA

I am working with MS Test and due to the nature of this program the
screen saver will kick on while one of my test scripts is running
messing up the synchronization.  The easy, obvious fix is to turn off the
screen saver but I rather my users not have to remember to do that all the
time (we don't want the screen saver permanently off.)

Is there some windows call that will disable the screen saver that I can
call when my script begins and a corresponding call to reenable it when
the script is done running. Is there some other way to "fool" the screen
saver so it never comes on??? (without messing up the other stuff that
is running)


Please respond via e-mail as I don't read news regularly.
Thanks!!!
Wendy Sarrett
sarrett@fritz.filenet.com
From: kb@jet.uk (Kenneth Blackler)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Moving about a list box with 700 items
Date: 28 Jul 92 10:06:41 GMT
Organization: Joint European Torus

In <1992Jul17.160924.25963@utagraph.uta.edu> john@utafll.uta.edu (John Baima) writes:

>I have a listbox with about 700 items. It would be nice to move about
>the list by typing more than just the first character (the default).
>Any clues?

>Thanks for any help.

>John Baima
>Silver Mountain Software   1029 Tanglewood, Cedar Hill, TX 75104
>john@ling.uta.edu          Voice/Fax (214) 2932920

Try making it a combo-box with an edit control, trap changes 
in the edit control's text and do a search on it re. the help
system. If the user clicks on an actual selection, put that
text in the edit box
Ken B.
-- 
 ______________________________________   ____________   _____________
|Ken Blackler kb@jet.uk (+44)235 464743| | __________ | |   -Fusion-   |
|JET Joint Undertaking, Abingdon       | |   | |_ |   | |Energy for the|
|Oxfordshire, England. OX14 3EA        | | \_/ |_ |   | | (far) future |
- Disclaimer: Please note that the above is a personal view and should not 
  be construed as an official comment from the JET project.
Newsgroups: comp.windows.ms.programmer
From: bonneau@hyper.hyper.com (Paul Bonneau)
Subject: Re: recent MSJ issue w/ debugging tips
Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,)
Organization: HyperCube Inc.
Date: Wed, 29 Jul 1992 17:18:06 GMT

In article <1992Jul28.205814.8216@centerline.com> cparker@centerline.com writes:
>someone mentioned recently that there was an msj article
>with tips and code about writing a windows debugger. Does
>anyone know which issue, where I can get a copy, online
>or otherwise. Thanks in advance
>
The June 1992 issue (vol. 3, no. 6) of Windows/DOS
Developer's Journal has an article by Matt Pietrik entitled
"Writing a Windows Debugger".  The focus of that issue is
"debugging" and also includes the articles "Intercepting DLL
function calls", "Preventing, Detecting, and Fixing Windows
Memory Bugs", and a review of the Soft-ICE/W debugger, from
Nu-Mega Technologies.

cheers - Paul.
From: csran@warwick.ac.uk (Stuart Russell)
Newsgroups: comp.windows.ms.programmer
Subject: Example of Hook functions in windows proggy needed?
Date: 31 Jul 92 14:47:13 GMT
Organization: Computing Services, Warwick University, UK


Hi folks,

Does anyone have a snippet of code for using the Hook functions in a
windows programme written for Borland C++ v3 with OWL.

I am having a go at writing a screen saver (just for fun). If I move the mouse
then everything is fine and the screen saver does NOT pop up. But at the
moment it ignores key presses. A bit undesirable for a screen saver. The Hook
functions appear to let you look at all windows messages independent of there
destination task. This may be what I am looking for.

If you have any suggestions or code snippets please drop me a spot of mail.

Many thanks,
        Stu
From: rekle@loligo.cc.fsu.edu (Rick Ekle (CompSci))
Newsgroups: comp.windows.ms.programmer
Subject: Re: Serial Communications
Date: 22 Jul 92 06:56:23 GMT
Distribution: usa
Organization: Florida State University Computing Center

In article <1992Jul17.145012.19692@u.washington.edu> rexw@hardy.u.washington.edu writes:
>
>Help!  
>I'm trying to use the communication routines from DDJ but I only
>get input from COM1 when I try and open COM2.  I can tell because I get
>input only when I move the mouse and not the expected input that is on
>COM2.  I also tried the straight windows calls but no luck.  If anyone can
>give some advice I'd appreciate it.
>
Hmm, if yuou only get input when you move the mouse, that seems to tell me
that you are trying to read modem input from off the mouse...

What COM port is your mouse plugged into and which COM port for your modem?

--
/---------------------------------------------------------------------------\
| Rick Ekle | rekle@loligo.cc.fsu.edu | Birth, School, Work, Death.         |
\---------------------------------------------------------------------------/
From: rekle@loligo.cc.fsu.edu (Rick Ekle (CompSci))
Newsgroups: comp.windows.ms.programmer
Subject: Re: STRICT option for windows.h
Date: 23 Jul 92 21:41:23 GMT
Organization: Florida State University Computing Center

In article <1992Jul19.010604.6883@mnemosyne.cs.du.edu> ebergman@nyx.cs.du.edu (Eric Bergman-Terrell) writes:
>I've been trying to figure out the STRICT option with the windows.h 
>included with Borland C++ 3.1.  I haven't been able to find out anything
>about it in ANY documentation.
>
>So, any pointers to documentation about STRICT would be appreciated.
>

There's a file in the DOC director of Borland C++ 3.1 called win31.doc
(or something similar) and it explains all about STRICT mode.  I've used
STRICT mode and it does seem to catch a lot more errors, but it give
me a linker error if I try and compile a program with it.  I guess the
moral is to use it as a debugging tool and #undef it when you actually
build the working program.
--
/---------------------------------------------------------------------------\
| Rick Ekle | rekle@loligo.cc.fsu.edu | Birth, School, Work, Death.         |
\---------------------------------------------------------------------------/
Newsgroups: comp.windows.ms.programmer
From: blade@mit.edu (Edward Min Lee)
Subject: Turbo C++ for Windows && Debugger woes
Organization: Massachusetts Institute of Technology
Distribution: comp
Date: Wed, 22 Jul 1992 18:14:21 GMT


Hi folx.  I hope this hasn't come up before (I've only been able to
search 250 messages back).

My problem is this: whenever I startup the debugger (tdw.exe) for
windows, I get a message "windebug.dll missing."  I *copied* that file
to every directory on my hard drive, and still it fails to find it.
the permissions are set correctly, there are copies in the system, win
and tcw directories (to name a few).

Any ideas?

Newsgroups: comp.windows.ms.programmer
From: swhall@eng.auburn.edu (Steven Wayne Hall)
Subject: Re: Icon imagery -> .bmp
Reply-To: swhall@eng.auburn.edu
Organization: Auburn University Engineering
Date: Thu, 30 Jul 1992 22:04:41 GMT

Doing that is very simple with a program called Whitewater Resource Toolkit.  I used
to come with Borland C++ ( I use C7 now so I don't know if they still ship it).  It
allows you to go into the .EXE file and make changes to most of the programs resources.
I have used it on occasions to change bitmaps inside some of my games for Windows.


 ==================================================================
 | /* Steven W. Hall */  | A theory can be proved by experiment;  |
 | Computer Engineering  | but no path leads from experiment to   |
 | Auburn University, AL | the birth of a theory.		  |
 |  	       	         |					  |
 |swhall@.eng.auburn.edu | Albert Einstein (1879-1955)		  |
 ==================================================================			
Newsgroups: comp.windows.ms.programmer
From: andreid@jvd.msk.su (Andrei Davydov)
Subject: LZCOMPRESS wanted
Organization: JV Dialogue, Moscow
Date: Tue, 28 Jul 1992 13:39:14 GMT

Hey,

I'd like to implement file compression in my MS Windows application,
is there any DLL or just sources exist/available? The best thing I'm 
looking for - something like LZCOMPRESS which can work in pair with 
LZEXPAND.DLL. 

Thanks for any advises,
Andrei.
-- 
Andrei Davydov  <andreid@jvd.msk.su>  |  Voice: +7 095 328-1327
JV Dialogue, Moscow, Russia           |  Fax:   +7 095 329-4711  
Xref: sparky comp.windows.ms.programmer:7367 comp.lang.c++:11575 comp.os.ms-windows.programmer.misc:1022