HDTenEightyP/NetNews huggingface dataset:
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
Subject: Re: How to distinguish between Click and Double-Click?
Date: 18 Dec 92 18:43:58 GMT
Followup-To: comp.windows.ms.programmer
Organization: PE-Nelson

In article <1992Dec18.012228.3908@hplabsz.hpl.hp.com>, yefchak@hplabsz.hpl.hp.com (George Yefchak) writes:
|> Are the second opinions on that?  I think I've seen software
|> which does seem to be able to distinguish between single
|> and double clicks as described above.  (Actually, I've
|> wanted to know how to do that too...)  In particular,
|> on the Mac you have only one button, so this ability seems
|> pretty important there.

The problem is that you will always get a WM_LBUTTONDOWN/WM_LBUTTONUP
combination before getting the WM_LBUTTONDBLCLK message -- likewise for
controls like a listbox you will always get the LBN_SELCHANGE before
you get the LBN_DBLCLK notification.

The only way I can think to really distinguish between single and double
clicks would be to set a timer when you get the first click and if you
_don't_ get a double click notification within some period of time then
you assume it must have been a single click and only then take the
appropriate action for a single click.

Just thinking about trying to make this work properly for all cases and 
users makes me feel slightly nauseated though.  A double click should
only perform an action that is an extension of whatever a single click
does, anything else would be confusing and cause endless annoyance.  I'm
not a Mac user, but I'll bet that even there it is a very rare case where
a double click does something completely unrelated to a single click.

I think the suggestion that modifier keys (CTRL, ALT, SHIFT) be used to
distinguish between different actions on a click is the best way to go
unless you want to introduce "mouse modes" in your application where the
current mode determines the action of a click.


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
From: gperez@uxh.cso.uiuc.edu (Gabriel Perez)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: pathworks under windows
Keywords: pathworks ,decnet
Date: 15 Dec 92 10:01:18 GMT
Reply-To: tessaris@ictp.trieste.it
Organization: University of Illinois at Urbana


hi,

 I have some questions about ms windows and decnet. I must
receive  data from a process under decnet.
The decnet emulator is "Pathworks for DOS" and my program
look at the process as a file.
First the file name hasn't the DOS format, may I use window's
OpenFile() function?
If the process lies idle and my program is reading what happens?
(after a delay I get back a EOF or all windows process stalled
or ...)
Under windows, after every reading it's better closes the file and
opening and seeking it for next reading, it's a problem for
PATHWORKS?

Thanks,

Sergio.

------------------------------------------------------------
Tessaris Sergio                  |  e-mail:
MicroProcessor Laboratory, ICTP  |  tessaris@ictp.trieste.it
Trieste, Italy                   |
------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: kress@kentrox.uucp (Bill Kress)
Subject: HELP:  Slowing down windows comms.
Keywords: emacs
Organization: ADC Kentrox - Portland, Oregon
Date: Thu, 17 Dec 1992 18:37:40 GMT

I'm working with some hardware devices that aren't fast enough to read data
at full bore 9600 baud.  is there a way to tell windows to pace the characters
without sending only 18 characters a second?

This is the second post, the first got absolutely no reply.

The documentation says that DCB.TxDelay is not currently used, is this true?
Xref: sparky comp.os.ms-windows.programmer.misc:4320 comp.os.ms-windows.programmer.tools:1746
From: nevries@accucx.cc.ruu.nl (Nico E de Vries)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
Subject: Wanted smart C library to hide Windows complexity.
Date: 17 Dec 92 20:58:40 GMT
Followup-To: poster
Organization: Academic Computer Centre Utrecht

I have the following "problem":

We currently use a combination of Microfocus COBOL and ObjectView for a
large project. ObjectView is used as a smart interface to the Windows
SDK. It basically is a C interface (COBOL can call C programs). The
interface solves all problems of screen refreshes etc.

ObjectView delivers a screen painter which generates a special p-code
objectfile . This file is used by the runtime. One can communicate with
the UIF by simple functions allowing putting values in fields, list
boxes etc and getting the user actions. E.g. pressing a button triggers
a specific (definable) C function.

The major problem of ObjectView is cost. They charge for run-rimes and
we are talking about 20-40,000 systems here.

What I want to know is if there are other smart UIF systems delivering a
simple way to access the Windows UIF. The system has to be linkable in a
C environment and must support the medium and large memory models.
Preferable the entier program should be in DLL's.

Anyone any suggestions?

Nico E. de Vries  (nevries@cc.ruu.nl) |------------------*   AA   III  PPP
_ This text is supplied AS IS, no warranties of any kind |  A  A   I   P  P
| apply. No rights can be derived from this text. This   |  AAAA   I   PPP
| text is likely to contain spelling and grammar errors. |  A  A   I   P
*---------------------------( Donate to GreenPeace! )----*  A  A  III  P

To get (many) ==> LOSSLESS DATA COMPRESSION SOURCES <== get lds_10.zip at 
garbo.uwasa.fi /pc/programming. Make files for Borland C are included.
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Borland and Memory
Date: 15 Dec 92 17:37:17 GMT
Distribution: usa
Organization: PE-Nelson

In article <1992Dec15.144205.16197@mksol.dseg.ti.com>, duitz@mksol.dseg.ti.com (mitchel n duitz) writes:
|> I seem to have a point in my code, where I am stuck.
|> 
|> I do a lot of new and delete inside my code, and first,
|> I do see a memory leak somewhere, but I can;t pin it down.
|> 
|> The problem I have is that the program just spins.  This
|> can happen in two different places - either when I declare ofstream ofs(name),
|> or when I'm in a loop allocating a 2 dimensional array - similar to the
|> following
|> 
|> float **kalamazoo
|> 
|> kalamazoo = new float *[150];
|> for(i=0;i<150;i++)
|>    kalamzoo[i]=new float[30];
|> 
|> It seems to just hang inside this loop.
|> PLEASE HELP - ANY AND ALL HELP APPRECIATED.
|> mitch

Try using large model (if you're not already).  Based on some investigation
on a discussion over in comp.os.ms-windows.programmer.tools I've seen this
behavior when attempting to allocate (malloc) memory in medium model.

I've not confirmed it, but I believe Borland's malloc/free may have problems
when in Windows, but their farmalloc/farfree don't.  The C++ operator new
and delete use the appropriate malloc package for their implementation (or
they both share some underlying internal routines).

Note, also, that the above loop allocates over 18000 bytes of storage, if
this is coming from the local heap then you may simply not have enough room
there (depends on how much global and static data you have as well as the
size of the stack).


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
From: das11@jaguar.uofs.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Borland C++ v3.1 TDW Debugger
Date: 20 Dec 92 07:00:15 GMT
Organization: University of Scranton


   i have installed borland c++ version 3.1.  i use the following hardware:

	gateway 2000
	80486 @ 33 MHz
	EISA Bus
	8 MB RAM

   over the past year, i have microsoft c to create windows applications. 
   however, after running a thorough test of ms c/c++ v7, i found that it
   was too buggy to create industry quality software.  so, i have switch
   to the borland product.  i have a problem.  i can not get the TDW debugger
   to work.  unfortunately, the documentation on installation and tweaking
   for the debugger is quite poor.  does anybody know how to get this
   to work.

   thank you.
   david sobeski
   das11@jaguar.ucs.uofs.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: victoro@crash.cts.com (Victor O'Rear)
Subject: Help on Writing Hardware Device Drivers
Organization: CTS Network Services (crash, ctsnet), El Cajon, CA
Date: 16 Dec 92 03:52:27 GMT
Summary: How to access hardware properly
Keywords: WINDOWS SDK DRIVERS PLUG-IN CARDS

Help. A programmer co-worker is having trouble finding good references on
the proper way for windows programs to access hardware I/O ports.  Besides
buing the Microsoft SDK source documentation. Is there any good articles,
reports, papers or books on the subject of properly writing device drivers
that directly access hardware I/O ports/addresses?


Newsgroups: comp.os.ms-windows.programmer.misc
From: rryan@panix.com (Rob Ryan)
Subject: Re: where is my listbox horizontal scrollbar?
Date: Thu, 17 Dec 1992 15:25:55 GMT
Organization: Panix, NYC

In <MUFFY.92Dec16182741@remarque.berkeley.edu> muffy@remarque.berkeley.edu (Muffy Barkocy) writes:

>I have created an MDI child window which has a listbox as its child.
>When I resize the MDI child window, I resize the listbox to fit in it.
>The listbox is created with WS_HSCROLL and WS_VSCROLL.  The vertical
>scroll bar is fine, but the horizontal one refuses to appear.  I tried
>doing a "ShowScrollBar," and it flashes in briefly, but then goes away
>again, even if I have resized the window so small that the listbox items
>definitely do not fit.

I think that you probably have to do LB_SETHORIZONTALEXTENT too, to tell
Windows how wide the items are.  Unlike the vertical scroll bar, listboxes
don't keep track of where the scroll bar should be.

Incidentally, if you use MFC, there's a wonderful example of deriving your
own class from an existing class.  Thus, I derived a class CListHorz from
CListBox, redefined AddString, InsertString, DeleteString, and ResetContent
to calculate the extent and do the CListBox::SetHorizontalExtent() so the
horizontal scrollbar of listboxes are updated automatically.  If you can't
find the example, I can probably post the code.

-- 
 Rob Ryan
    rryan@panix.com
From: gdsmith@nl.oracle.com (Geoff Smith)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Borland Custom Controls
Keywords: BCC Keywords:
Date: 14 Dec 92 12:41:05 GMT
Organization: Oracle Europe

Hi,

After spending several hours puzzling over the use of Borlands Custom
Controls in a Windows Dialog, I remembered that someone else on the
net had also had problems with them. I then also remembered that I had
to load BWCC.DLL to get at the Custom Controls.

The bottom line is: where in the manuals is the use of BWCC.DLL
mentioned or even the Borland Custom Controls. I seem to have looked
everywhere, but can't find anything on the Borland Custom Controls.

Any help or hints would be very gratefully received. I've already had
too many tears over this one.

Also, am I allowed to distribute BWCC.DLL with any applicatoins I write?

Thanks in advance,

Geoff.
From: flc@mips.com (Fred Cox)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Force DLL to unload
Date: 19 Dec 92 01:32:03 GMT
Organization: Silicon Graphics, Inc.
Distribution: world
NNTP-Posting-Host: poseidon.mti.sgi.com

mccreary@sword.eng.hou.compaq.com (Ed McCreary) writes:

>In article <DEREKL.92Dec18100741@watson.harlqn.co.uk> derekl@harlqn.co.uk (Derek Law) writes:
>>Does anybody know how to FORCE Windows 3.1 to unload a DLL? I'm
>>developing a DLL, but every time I change it I have to quit and
>>restart Windows - otherwise Windows complains that the file is "still
>>in use" and so write protected.
>>

>How are you loading it?  Try this...

>HINSTANCE	hLib;

>hLib = LoadLibrary("MY.DLL");
>....program code....
>FreeLibrary(hLib);

That works for when your DLL works, but when you get a UAE, the thing
doesn't get FreeLibraried, and you're hosed.

As you can tell, I've been annoyed by the same problem.

The _really_ annoying thing, though was the first time I came upon
this problem was with Borland, and there was no error message on
linking.

It appeared to link and generate a new .dll, but it was actually doing
nothing!  None of my fixes worked, and it was only when I noticed that
the date on the .dll file wasn't changing that I realized what was
going on.

There, I've got that off my chest, I feel better.

Fred Cox
flc@mti.sgi.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: jeroenp@rulfc1.LeidenUniv.nl (Jeroen W. Pluimers)
Subject: Re: i'm stupid and can't create an RTF file!
Organization: Dept. FMC, Gorlaeus Labs, Leiden University, The Netherlands
Date: Sun, 20 Dec 92 10:06:58 GMT

In article <1992Dec19.205009.850@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:
>I'm trying to understand how to create help files for my application
>and I am getting overwhelmed by the complexity.  As far as I am
>concerned, the use of RTF files is the most awkward format to 
>read/write/maintain that they could have possibly used.

Look at WSHELP (A public domain .PAS -> .RTF converter) from Turbo Power.
If it's not on ftp.cica.indiana.edu, just mail me and I'll upload it.

WSHELP contains a fairly well description of RTF and a method of embedding
RTF commands in .PAS source files (actually it gives the possibility
of writing documentation and code at once).
--
jeroen                             voice: +31-2522-20908 (19:00-23:00 UTC)
                                   snail: P.O. Box 266
jeroenp@rulfc1.LeidenUniv.nl              2170 AG Sassenheim
jeroen_pluimers@f256.n281.z2.fidonet.org  The Netherlands
From: d6caps@dtek.chalmers.se (Per Bergland)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Data links to Excel?
Date: 19 Dec 92 17:12:28 GMT
Organization: Chalmers University of Technology

OLE is fine, but it isn't really what I want. 
Is it possible to use for instance Excel as a Chart Engine, feeding with
data out of my own picking, and updating for instance once a minute?
I wouldn't want to re-invent the wheel and make my own diagram engine, when
all spreadsheet applications have exactly what I want (or rather, my customers).
The easiest way would be to, somehow, create a text-based link to a spreadsheet
(tab-delimited text would be slow, but if it works, fine). If I could get ahold
of the internal data structures of for instance Excel, I could perhaps send
more customized data to be sent on to an Excel chart.
OLE only does objects, no interpretation of the object data is done (from what
I've seen).
Would the Mac system 7 subscribe and publish work, and if so, why can't Windows
do that?

Anyone?
Per
Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: two quick owl questions
Organization: Compaq Computer Corp.
Date: Tue, 15 Dec 1992 16:16:03 GMT


two, probably trivial owl questions that I can't seem to figure out.

Specifying which icon to use in the file manager.  I have an mdi app
I'm writing, but when I set it up in the file manager, it uses the
icon from the child window instead of from the frame. when minimized,
all windows have the proper icon.  Is there something I'm forgetting
to set?  Can you assign an icon to an application?

Using WM_SYSCOMMAND.  How do I process this so the other functions
still work?  I want to append a menu item to the system menu, but
there is no parent method to call.  when I add this new method, none
of the other functions work.  I know how to make it work with the
SDK, but not with an owl construct.

many thanks in advance,
eddie
--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
From: wbg@festival.ed.ac.uk (W Geake)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Accurate Timing In Visual Basic
Summary: Any way to get VB to time things?
Keywords: Visual Basic, Timing, serial
Date: 15 Dec 92 14:29:30 GMT
Internet:  wbg@ee.ed.ac.uk  or W.Geake@festival.ed.ac.uk

Practically unlimited fame for anyone who can help!
Newsgroups: comp.os.ms-windows.programmer.misc
From: tvp@gibdo.engr.washington.edu ()
Subject: Please tell me how to call LibMain from a DLL
Organization: clearer than blir
Date: Fri, 18 Dec 1992 12:11:14 GMT

Sorry for posting so many newbie questions lately, but I feel I'm
getting close to completing my first windows utility. (Can't call it
an app really... too small.) I need to know what to do when I first
enter the code for my DLL. Like if my DLL is really for defining just
one single function, what exactly do I need between the top of the
file and:

int MyWinFunc(...){...}

Right now, I have only one Windows specific include file (windows.h)
and a call to LibMain() that appears not to be working. Can someone
e-mail me one of their typical DLLs so I can see how it's supposed to
go?  Thanks in advance.

------------------------------------------------------------------------
Tad Perry      Internet:    tvp@gibdo.engr.washington.edu
               CompuServe:  70402,3020
               NIFTY-Serve: GBG01266
------------------------------------------------------------------------

Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Can't read from system device AUX ?!
Organization: Vonnegut Tent Rentals, Inc.
X-Newsreader: TIN [version 1.1 PL7]
Date: Tue, 15 Dec 92 16:27:21 GMT

Tony (gtonwu@Uz.nthu.edu.tw) wrote:
> Hi,  there !
> 
> 
>         I am new to the programing on Microsoft Windows !
>         Recently, I suffered an error message and got down. 
> 
>         The message is "Can't read from system device AUX" !!
> 
>         First, I want to ask about the "AUX" . I have heard it many
>         times but I don't know what it means ! Second,from what this 
>         message results and how to solve it !?
> 
I think it means that you are using the debug versions of the windows
kernel libraries.  If you have the official SDK you should have BAT files
called N2D and D2N that switch kernels for you.

AUX is short for Auxiliary.  It used to be a serial port for a debugging 
terminal.  It can be emulated by debuggers.

You can also run something called Winox that loads the AUX driver and keeps
Windows happy.  I don't remember any other details: this was a Windows 3.0 
thing which I haven't seen since I upgraded to 3.1.  Watch out for conflict
with 3.0 debug kernels if you upgrade to 3.1.  After 3 successful installs of
3.1 on other machines my development machine choked because of this.  I had
to perform a completely fresh installation rather than an upgrade.

--
||------------------------------------------------------------------------
||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY  |
Newsgroups: comp.os.ms-windows.programmer.misc
From: pjsmith@iastate.edu (Phil J Smith)
Subject: ListBox problem
Keywords: windows, programming
Organization: Iowa State University, Ames IA
Date: Wed, 16 Dec 1992 19:12:51 GMT

I am attempting to load a directory listing into a listbox with DlgDirList.
This works fine except that the listbox does not display it until I click in
it.  I have tried using "SendDlgMsg(id,LBN_SETFOCUS,0,0)" but nothing happens.
I am using Turbo C++ for Windows v3.1 and OWL.  Any ideas?



Thanks,

Phil Smith

Newsgroups: comp.os.ms-windows.programmer.misc
From: d88-jwa@dront.nada.kth.se (Jon Waette)
Subject: __aseghi, __aseglo undefined
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Wed, 16 Dec 1992 20:04:47 GMT

QuickHelp tells me to compile without Fastcall. Well,
I'm already doing that. Why do I get __aseghi, __aseglo
undefined errors? I compile with the MFC under C 7.00
Large model, and it finds all libraries.

Thanx in advance,

					/ h+

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --

   There's no sex act that can't be made better with Yell-O.
From: 2ftptimely@kuhub.cc.ukans.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Problems with Clipping Regions
Date: 16 Dec 92 15:27:31 CST
Organization: University of Kansas Academic Computing Services

I am having a hell of a time with
the Windows API call
SelectClipRgn(...)

I select a region and clipping works fine but 
when I try to unselect the region wDeleteObject(ClipRgn)
Then everything else that I paint to
that DC is still "clipped". What I want
is to restore the DC to how it was before I
gave it a new clipping region. This is the
DC given to me in the PAINT routine of 
Borland OWL in the TWindow class. Any
thoughts?

Thanks,
George Frazier frazier@hawk.cs.ukans.edu
From: mwien@husc9.harvard.edu (Michelle Wien)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: WINDOWS HELP FILE (.HLP) FORMAT
Date: 15 Dec 92 03:19:50 GMT
Article-I.D.: husc3.1992Dec14.221951.18493
Distribution: comp.os.ms-windows.programmer.misc
Organization: Harvard University Science Center


  Hi,
  
  I'm trying to understand the format of the Windows .HLP
file. Do any of you know if this format is documented ?
Or has anyone ever tried to extract the text (at least
some of it) from a .HLP file ?

  There are many formats, including the ones generated by
hc30 and hc31, with various degrees of compression. I'd
be happy if someone can tell me what information I should
look for (and where) at least in an uncompressed .HLP file
(created w/ hc30 or hc31 and COMPRESSION=NONE).

  Thank you.

  -scr  (stephan@ganesh.med.harvard.edu)

  Please respond directly via e-mail.
From: rocker@desire.wright.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: 'model' window?
Date: 15 Dec 92 17:27:37 EST
Organization:  Wright State University 

	I have a window, actually as descendant  of a fairly complex window,
which I open at various times in my MDI app.  Sometimes I leave them open,
othher times they are only open when a certain edit control in a dialogbox has
the focus.  My point, it has to be a window, not a dialog.

	However, at one point I need to open one of these window, but have it
act like a dialog, ie. lock out all other windows and menuu, aka 'model', but
not system model.

	I'm using TPW 1.0 (damm purchasing dept.) and OWL and any ideas are
welcomed.

rock hard