HDTenEightyP/NetNews huggingface dataset:
From: Jeff Dean <jeff@igc.org>
Newsgroups: comp.os.ms-windows.programmer.misc
Date: 24 Jul 92 19:59 PDT
Subject: Re: Freeing Resources (Windows Kill -9)
Nf-ID: #R:1434miINN4d5@agate.berkeley.edu:-153888110:cdp:1668700008:000:336
Nf-From: cdp.UUCP!jeff    Jul 24 19:59:00 1992


Oops, I goofed.  The name of the program is "terminator", and I just
uploaded a copy (trmnat.zip) to cica.  Sorry about that.  Note that
you may need to recompile the program to get it to work (I think that
the program may have been originally written using an early copy of
toolhelp which has since changed).

	Jeff Dean
	jeff@igc.org

Newsgroups: comp.os.ms-windows.programmer.misc
From: bonneau@hyper.hyper.com (Paul Bonneau)
Subject: Re: Fonts and Buttons. 
Keywords: Button, Alignment.
Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,)
Organization: HyperCube Inc.
Date: Wed, 22 Jul 1992 17:16:45 GMT

In article <Zag0NB2w164w@olson.acme.gen.nz> stefan@olson.acme.gen.nz (Stefan Olson) writes:
>hrook@descartes.waterloo.edu (Harvey Rook) writes:
>
>> Question 2: Is their an easy way to get a bitmap to appear on a button?
>> I realize I could just make my button an owner draw button and display things
>> manually, but I'd like to know if there is some obscure paramater with
>> some strange function that allows me to do this easily.
>
>Please mail me the answer to this if you get one!
>
There *is* an easy way to do this.  See the Windows Q&A in
the September issue of Windows/DOS Developer's Journal.  Only
problem is, I don't think I can post it here until after the
issue appears.  Send me mail if you can't wait.

cheers - Paul.
Newsgroups: comp.os.ms-windows.programmer.misc
From: mikey@sword.eng.hou.compaq.com (Mike Yonker)
Subject: DDE with ProgMan --- AutoArrange??
Organization: Compaq Computer Corp.
Date: Mon, 27 Jul 1992 16:08:15 GMT

I was wondering if anyone out there knows of a way to get Progman to turn on AutoArrange.  I have tried to check the menu item and update the progman.ini file, but progman works off of an internal flag so it makes no difference until you restart Windows.  Is there some DDE topic that I am unaware of to tell ProgMan to do this?  I want to be able to, at run-time, insure that AutoArrange is on.

MikeY.
From: thanos@reef.cis.ufl.edu (Thanos Karras)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Setting Text Selection OFF in Edit Controls. HOW??
Date: 24 Jul 92 13:13:12 GMT
Organization: Univ. of Florida CIS Dept.

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: beaurega@ireq.hydro.qc.ca (Denis Beauregard)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Capturing DOS output?
Date: 30 Jul 92 18:56:14 GMT
Organization: Institut de recherche d'Hydro-Quebec, Varennes, Canada

In article <1992Jul24.052054.24347@monu6.cc.monash.edu.au> steve@monu6.cc.monash.edu.au (Steve Balogh (+61 3 565 4747)) writes:
>In article <rcgmm3l.jfh@netcom.com> jfh@netcom.com (Jack Hamilton) writes:
>>I'd like to run a DOS application from inside a Windows application, and
>>have the output from the DOS program appear in a window controlled by my
>>Windows program.
>>
>>I looked at WinExec, but there's nothing obvious in the documentation.  Is
>>there some other way to do it?
>>
>>By the way, I'd like the window to scroll as the DOS program creates more
>>output (which will be to stdout), so redirecting the output to a file and
>>then displaying the file won't do what I want. 
>>
>>While I'm asking for the impossible, can I capture stderr separately? 
>>
>
>I am doing a similar thing in a program I am writing. The method I use is to
>redirect the stdout of the dos program to a temporary file (preferably on a
>RAM disk) and then open the file on a 1 second WM_TIMER message. Read the file
>until it hits EOF, save the current location within the file, and then close it.
>The next time I open the file, I then seek to the saved location and then read
>till EOF again. I keep repeating this procedure until the displying window is
>closed by the user. The method appears to act like the Unix "tail -f" command.
>
>I don't think this is the best way to achieve this task, but it is the best that
>I have come up with so far. Any better methods would be appreciated. Let me
>know if you find one. :-)
>
>Steve
>
>----_--_-_-_--_-__-_------_-__---_-___-_----_-____-_-_--__-_--_--___-_-_-_--__-_
>Steve Balogh  VK3YMY   (Maths G.14)   | steve@monu6.cc.monash.edu.au
>Monash University, Clayton Campus     |      37 54'38.8"S  145 07'47.1"E ...ICBM
>Wellington Road, Clayton.  	      |      +61 3 565 4747 Voice (Office)
>Melbourne, AUSTRALIA. 3168	      |      +61 3 565 4746 Fax

One quite complex solution (he! one could write this for every others!)
would consist in writing a device driver with 2 device names like
DIN and DOUT (device IN and OUT).  You culd then open and write to DIN
and the other program could open and read from DOUT.  Very simple
to say, not so hard to program, but, would it work under Windows?
ANSI.SYS device driver redirect CON, so Windows detects it and cancel
the effect of ANSI driver.  Any other driver with non-standard name
should work too, no?

-- 
  \_\    Denis Beauregard  *  internet:beaurega@ireq.hydro.qc.ca
 /   \   Genealogiste officiel : Beauregard/Jarret/Jarest/Vincent
J   __>  Barthelemy Jarret (1471) -> Andre Jarret, sieur de Beauregard (1665)
\_.-===   -> Denis Beauregard (1992)                  Opinions ? Et pis non !
From: jeff@igc.org (Jeff Dean)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Freeing Resources (Windows Kill -9)
Date: 21 Jul 92 07:22:00 GMT
Article-I.D.: igc.1668700006
Nf-ID: #R:1434miINN4d5@agate.berkeley.edu:-153888110:cdp:1668700006:000:245
Nf-From: cdp.UUCP!jeff    Jul 21 00:22:00 1992


There is a shareware or public domain program called "TaskMan" that
can be used for freeing up DLLs.  This would be similar to the
Unix 'kill' command, but it does not help if you also want to
clean up other resources.

	Jeff Dean
	jeff@igc.org
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Development Opportunity!
From: ebhanson@StarConn.com (E. B. Hanson)
Date: 30 Jul 92 07:29:48 GMT
Organization: Starnet-Public Access UNIX--Los Altos, CA  415-949-3133

This posting is to introduce you to Felis Software. Felis Software
publishes a quarterly catalog of software applications, utilities, and
templates for Mac and PC-compatible computer users. Felis handles the
marketing, product ordering, duplication, and shipping. In addition,
Felis provides technical support for these products. They are currently
looking to expand their catalog.

The programs included in the Felis catalog are carefully selected from
submissions received from developers like yourself. The developer
receives a substantial royalty for every unit Felis sells.

If you are interested in submitting a product for publication or want
more information about this opportunity, reply to this posting. I have a
developer's kit I would be happy to forward to you. If you'd rather
contact me by surface mail, that can be done also.

Eric Hanson
191 Harder Road, #122
Hayward, CA 94544
(510) 582-4300


Newsgroups: comp.sys.mac.programmer,comp.apps.spreadsheets,comp.os.ms-windows.programmer.misc,comp.os.msdos.programmer,comp.os.os2.programmer,comp.windows.ms.programmer,comp.games.programmer
Subject: Development Opportunity!

This posting is to introduce you to Felis Software. Felis Software
publishes a quarterly catalog of software applications, utilities, and
templates for Mac and PC-compatible computer users. Felis handles the
marketing, product ordering, duplication, and shipping. In addition,
Felis provides technical support for these products. They are currently
looking to expand their catalog.

The programs included in the Felis catalog are carefully selected from
submissions received from developers like yourself. The developer
receives a substantial royalty for every unit Felis sells.

If you are interested in submitting a product for publication or want
more information about this opportunity, reply to this posting. I have a
developer's kit I would be happy to forward to you. If you'd rather
contact me by surface mail, that can be done also.

Eric Hanson
191 Harder Road, #122
Hayward, CA 94544
(510) 582-4300
Newsgroups: comp.os.ms-windows.programmer.misc
From: tinyguy@cs.mcgill.ca (Yeo-Hoon BAE)
Subject: Help on MDI interface programming
Organization: SOCS - Mcgill University, Montreal, Canada
Distribution: na
Date: Fri, 31 Jul 1992 01:55:09 GMT


Hello,


   I am cuurently experimenting with MDI interface by
making some adjustments to the 'blandmdi' sample that
came with the SDK package. What I would like to do is
to be able to open several child windows, all containing
different contents, and to allow them to re-paint
properly when necessary so preserve the contents of
each window. I've managed to add some lines/shapes to each 
window, but there seems no way to tell which of the
child window requires re-painting. The message WM_PAINT
sent to the client window doesn't necessarily allow
re-painting of the child window at the right instance...

I'd appreciate if anyone can help!

Thanks.

-TG


+-----------------------------------------------------------------------------+
| Yeo-Hoon Bae           My new Merc 500SL...    Undergrad. U3/4, soon U5 :(  |
| tinyguy@cs.mcgill.ca           __o             Computer science             |
| (514) 939-9560                -\<,             McGill University            |
| ............................(*)/(*)............Montreal, Quebec, Canada     |
+-----------------------------------------------------------------------------+
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: changing text of iconized program
Date: 27 Jul 92 14:28:51 GMT
Organization: Compaq Computer Corp.


I've got a program that spends quite a while in a loop decompressing
data so I added a message loop to it so that the user can minimize
it and go to do other things.  I would like to change the text so
that it reflects how far along the process is (i.e. % complete).
I tried using SetWindowText and it works fine if the program is
not iconized, but it doesn't otherwise.  Is there something else I
have to do?


--
McCreary@sword.eng.hou.compaq.com     Computers are like Old Testament gods;
Me? Speak for Compaq?  Yeah, right.   lots of rules and no mercy.
"By this time my lungs were aching for air..."               Joseph Campbell
From: pdenize@waikato.ac.nz
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Format of .ICO files
Date: 23 Jul 92 17:05:53 +1200
Organization: University of Waikato, Hamilton, New Zealand


Hello,

Does anybody out there have the file format for Window's .ICO files?

I have quite a few that I would like to convert to another format.

Any help would be greatly appreciated.


Paul Denize.

--------------------------------------------------------------------------
Paul Denize                                Internet: PDenize@Waikato.ac.nz
Department of Computer Science
University of Waikato                         phone: ++64 7 8562-889
Hamilton                                                          Ext 8743
NEW ZEALAND                                   fax  : ++64 7 8560-135
--------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Drawing in a scrolled TWindow
From: rocker@desire.wright.edu
Date: 24 Jul 92 07:51:57 EST
Organization: Wright State University 

geirt@Lise.Unit.NO (Geir Torheim) writes:
> The problem occurs when I want to draw in the scrolled
> window; The TScroller adjusts the origin of the viewport but
> GetDC returns a HDC with the origin set to (0,0)!. 
> 
> According to the Windows doc I can create a private DC and then use this for all
> drawing operations in this window. A private DC will (I think) contain the
> correct origin, and I can use functions like DPtoLP() to do the job.
> 
> However, private DC's are 'expensive in terms of system resources.' 
> 
> Anybody who knows HOW expensive they are ??
> Will the private DC also be drawn from this pool of 5 DCs ?
> Is it a good idea to use a private DC for this, or should I save the
> new origin 'manually'?. That's what I'm doing now. I do this in the
> Paint() function of the window. Dirty perhaps, but it works...
> 

	Just approach it from a level up, ie wmPaint instead of paint.  This
way you are still using only one DC, gotten by GetDc yourself.

rock hard
From: steveo@mel.dbce.csiro.au (Stephen Oakes)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Problems with Windows 3.0, but *not* 3.1
Date: 29 Jul 92 05:53:49 GMT
Organization: CSIRO, Div. Building Constr. and Eng'ing, Melb., Australia

Hi there,

We have a (severe) problem with a Windows application that we are
writing.  It seems to work properly in Windows 3.1, but not in 3.0.
(The symptoms are described below).  It is being written in Knowledge-Pro, 
although it also uses a number of DLLs written in C.  The people who wrote
Knowledge-Pro cannot help, so I suspect it is not a Knowledge-Pro bug,
but rather a 3.0 vs 3.1 incompatability.

After running the programme for a few minutes (in Windows 3.0), it
starts behaving strangely, with various windows not redrawing themselves,
and ultimately it locks up completely.  The mouse still moves, but that
is all.  Because of the fact that windows aren't redrawn, I suspect
that Windows is running short of device contexts, or something like that,
but I have no way of determining what or where.

Does anybody have any idea what the problem could be?  If so, please
respond because the matter is rather urgent.  Also, if anybody could
point me towards any sort of diagnostic tools that can run under 3.0,
I would appreciate it.  (Things like DBWIN and STRESS which come with
the 3.1 SDK, but don't run under 3.0).

Thanks already,

| Stephen Oakes      CSIRO Division of Building, Construction and Engineering |
|                    Post Office Box 56, Highett, Victoria, Australia   3190  |
| Internet: steveo@mel.dbce.csiro.au  Tel: +61 3 252 6000 Fax: +61 3 252 6249 |
|_____________________________________________________________________________|
From: lhuynh@clyde.ICS.UCI.EDU (Thomas Huynh)
Subject: How do I create a combo box to handle multiple selections
Newsgroups: comp.os.ms-windows.programmer.misc
Date: 27 Jul 92 17:23:42 GMT

Hi,

I am new to this bulletine board and windows, so please bear with me.
I am using Borland C++ 3.0 and OWL to create a combo box.  I want
to be able to create a combo box where I can make multiple selections.
This is easily done with a list box using the attributes
LBS_EXTENDEDSEL and LBS_MULTIPLESEL.  But a list box is not what I want.
Is it possible?  If so, how do it?

--
Thomas Huynh  Undergraduate
Information and Computer Science
University of California, Irvine
Newsgroups: comp.os.ms-windows.programmer.misc
From: radel@bach.udel.edu (Todd Radel)
Subject: ACK! Problem with GlobalDosAlloc() !!!!!
Organization: University of Delaware
Date: Tue, 28 Jul 1992 04:55:13 GMT

Earlier, I asked the net how to use the DPMI Function "Allocate Global
DOS Memory" to communicate between a Windows client in 386Enh mode and
a DOS box.  Someone suggested I use GlobalDosAlloc() instead.  I wrote
the following two snippets of code:  "DPMI Server" is the Windows
program, which allocates a 4K block of memory and writes the segment
of the block to a file (so the client can find the segment); "DPMI
Client" is the DOS program, which reads the segment from the file,
makes a pointer to it, and looks for the handshake flag (42!) so I
know the connection is OK.

But the DOS client gets stuck in an endless loop, looking for a
handshake which is never going to come:  it prints "Waiting for
handshake, ready=29555" over and over.  Clearly, it's not looking
at the same area of memory that the Windows program is.

Could some kind soul look this over and e-mail me corrections?  I'm
stuck in the middle of a project!!!

If it helps, "tagDMA" is defined as follows:

struct point
{
  unsigned char x, y;
};

struct tagDMA
{
  unsigned int ready;
  unsigned int npts;
  point data[2046];
};

Here's the code fragments:

 
----------------------------- DPMI Server -------------------------------------
void TMyApp::InitMainWindow()
{
  DWORD shmHandle;
  tagDMA far* DMAbuffer;
 
  MainWindow = new TMyWindow(NULL, Name);
  if ((shmHandle = GlobalDosAlloc (4096)) == 0)
    {
      MessageBox (MainWindow->HWindow, "Could not allocate global DOS memory.", "SLPhone", MB_ICONSTOP);
      exit(1);
    }
  DWORD shmSeg = (shmHandle & 0xFFFF0000L) >> 16;
  DWORD shmSel = (shmHandle & 0x0000FFFFL);
  DMAbuffer = (tagDMA far*) MK_FP (shmSel, 0x0000);
 
  // Send "ready to begin" code to client:
  DMAbuffer->ready = 42;
 
  / Write the pointer to a file so the client can find it:
  FILE *fptr = fopen ("c:\\address.dat", "wb");
  fwrite (&shmSeg, sizeof(DWORD), 1, fptr);
  // Also print some diagnostic info.:
  fprintf (fptr, "segment = %Fp, selector = %Fp\n", shmSeg, shmSel);
  fclose (fptr);
}
 
----------------------------- DPMI Client ------------------------------------
main()
{
  // Read the pointer from the filr:
  fptr = fopen ("c:\\address.dat", "rb");
  fread (&shmSeg, 4, 1, fptr);
  fgets (buf, 80, fptr);
  fclose (fptr);
 
  DMAbuffer = (tagDMA far*) MK_FP (shmSeg, 0x0000);
  printf ("Using DMA buffer at %Fp\n", DMAbuffer);
  printf ("Important note: %s\n", buf);
 
  // Wait for handshake:
  while (DMAbuffer->ready != 42)
    if (kbhit())
      exit(3);
    else
      printf ("Waiting for handshake, ready=%d ...\r", DMAbuffer->ready);
  DMAbuffer->ready = 0;
  printf ("Shutting down!     \r");
  printf ("\n\n\n");
  return 0;
}
 

-- 
Todd Radel                   | "I obscenity in the milk of all," Agustin said,
CIS/English undergrad        | "if it does not seem like a lunatic asylum in
University of Delaware       | here." -- Hemingway, _For Whom the Bell Tolls_
A.I. duPont Institute, 1600 Rockland Road, Wilmington, DE  19899
Newsgroups: comp.os.ms-windows.programmer.misc
From: 890560p@dragon.acadiau.ca (Trevor Porter)
Subject: Edit Control Help Needed
Organization: Acadia University
Date: Thu, 23 Jul 1992 13:23:03 GMT


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: s913578@yallara.cs.rmit.OZ.AU (Fantom)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Dialog Boxes in BC++ v2.0
Date: 27 Jul 92 01:53:13 GMT


 have been trying to get dialog boxes loaded for use in bcpp v2.0
 the example provided don't help at all, as they are for an earlier version of
 either windows or the compiler.

 what is the procedure for doing this?
 any hints?

 thanks in advance
   James (s913578@yallara.cs.rmit.OZ.AU)
Newsgroups: comp.os.ms-windows.programmer.misc
From: MAUREEN.PRINCE@OFFICE.WANG.COM ("Maureen A. Prince")
Subject: error in VB
Organization: Mail to News Gateway at Wang Labs
Date: 23 Jul 92 21:33:08 EST

When I try to open a project I get the following messages:
"Input past end of file: 'FORMNAME'   OK
"Error loading 'FORMNAME' a control could not be loaded due to load error"
When I select Continue the form is not loaded.  Is it lost forever?  How do I
correct the error and get it back?

Before this happened I was getting a "Visual Basic Out of memory" message
that would not let me close the project if I wanted to save changes to that
particular form, so I did not save the changes.  The changes were that I Paste
Linked a Winword document into a text box, resulting in a HOT LINK.  I then
decided I didn't want that and deleted the LinkItem and LinkTopic of the text
box and changed the LinkMode from HOT to NONE.  textbox.text appeared to be
empty.  Could this have caused the problem?
Newsgroups: comp.os.ms-windows.programmer.misc
From: gregde@microsoft.com (Greg Demichillie)
Subject: Re: Is it really this bad, or is it just me
Date: 29 Jul 92 15:51:12 GMT
Organization: Microsoft Corporation

In article <1992Jul28.134522.11108@usenet.ins.cwru.edu> turnbull@ces.cwru.edu (John Turnbull) writes:
>In article <1992Jul28.090409.1@cortex> mboucher@cortex.prospect.com (Mike Boucher) writes:
>>
>>I've been having some screwy scroll bar problems as well, and Microsoft's
>>Codeview does the same thing with multiple messages from one click.  
>
>	I think you'll find the problem is that windows never gets a mouse
>up event, so it thinks you're holding down the mouse on the scroll down. I.e.
>pressing the mouse button generates the linedown, and you then break, so 
>windows never see you releasing the mouse button.
>

This is exactly what happens.  The context switch into the debugger happens
after the mouse down and so the mouse up event is given to the debugger.

This happens with every Windows debugger I've seen (including Codeview,
TDW and Multiscope.)  The only work around I'm aware is to use
OutputDebugString to print lots of messages in your mouse tracking
code.  Using debuggers to step through mouse handling code just isn't
my idea of fun. 

DISCLAIMER:  I don't work on Codeview, but I've used it and other
debuggers quite a bit.

-Greg

-- 
Greg DeMichillie          
gregde@microsoft.com      -- All opinions are mine, not Microsoft's --