HDTenEightyP/NetNews huggingface dataset:
From: ngorelic@speclab.cr.usgs.gov.cr.usgs.gov (Noel S. Gorelick)
Subject: Re: BWCC.DLL QUESTIONS...
Reply-To: ngorelic@speclab.cr.usgs.gov
Organization: MercWorks, Denver
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 17 Nov 92 02:44:59 GMT

Paul Marshall Hounslow (ssuhouns@csug.cs.reading.ac.uk) wrote:
> In article 21714@kakwa.ucs.ualberta.ca, jimmy@namao.ucs.ualberta.ca () writes:
> >
> >Borland's BWCC.DLL contains glyphs (bitmaps) of icons that appear in
> >message boxes in Borland's own products - a red hand, "?", "!" and "i".
> >Yet I can't find any documented way of using them.  I've designed
> >a custom message box class that uses the grey "bordlg" style, and these
> >icons would look better than the Windows standard ones (which I'm also
> >not sure of how to access).
> >
> >Please email to jimmy@namao.ucs.ualberta.ca
> If you wish to use these bitmaps on your own buttons in a dialog box:
> 
> The bitmaps are in sets of six, to allow for VGA/EGA, pressing the button, 
> and selecting.  So for IDOK, the buttons are 1001, 2001, 3001, 4001, 5001, 
> 6001. To use the bitmaps on the buttons for IDOK, use the button from the 
> BWCC tools in workshop.  On setting the ID to IDOK (or 1), you should see 
> the bitmap on the button.  To define your own buton bitmaps, you need to 
> provide one each of the 1xxx, 2xxx, ...  6xxx where xxx is your ID for that 
> button.  Of course, you must also ensure that your program starts the 
> BWCC.DLL as well.  I don't know if you need to have the dialog as a bordlg 
> type though.

[Email sent to the author directly, but everyone else might be interested too.]

From your article, it sounds like you want to use a message box with those
neat icons in it.  So use the message box stuff that borland gives you
directly:  BWCCMessageBox().

Full documentation on ALL of the BWCC stuff is on the borland distribution
disk.  In something like \borlandc\doc\bwcc.doc, or something like that...
I think it even tells you where to look in the README release notes...

In addition, the full source code to the DLL is on the disks as well in the
example directories, I believe.

--
"You want it should sing too?"   | /*  Yeah we got dogs and Valvoline
  ngorelic@speclab.cr.usgs.gov   |     Its a pretty damn good time.    */
"Life is pain. Anyone that tells you different is trying to sell you something"
Newsgroups: comp.os.ms-windows.programmer.misc
From: rlswent@leland.Stanford.EDU (Richard Swent)
Subject: How do you scroll (part of a) window??
Organization: DSG, Stanford University, CA 94305, USA
Date: Wed, 18 Nov 92 20:47:42 GMT

I can't figure out how to implement scrolling in a sensible
manner. I want to have a window that has some header information
and some buttons at the top, then a long list below that can
be scrolled via a scroll bar. The part of the window that scrolls
can be a child window if that is easier. 

I've looked at the scrolling functions (ScrollWindow, ScrollDC) and
can't make them work right. If I use ScrollWindow it scrolls the
bitmap but as soon as my Paint procedure is called, it paints stuff
just the way it had been. I tried ScrollDC and it didn't do anything
at all. The problem is really my Paint procedure which doesn't know
anything about the scrolling. What is the "right" way to do this?

Thanks in advance,
Rich

Newsgroups: comp.os.ms-windows.programmer.misc
From: "steve willer" <steve.willer@canrem.com>
Subject: hp deskjet 550c drivr
Reply-To: "steve willer" <steve.willer@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 17 Nov 92 08:27:46 EST

ML>I wonder if I am the only one experiencing problems with the drivers for the
  >HP Deskjet 550 C under windows 3.1. The version of the driver is 3.0.

If you're talking about the 500C, I think I've seen a driver around the
local BBS's for Win 3.1. It noted also that the ver 3.0 driver was buggy.
Personally, I had no problems (I have a 500), but...

If you can't find the file, contact me by e-mail (preferably at
willer@ecf.utoronto.ca) and I'll UL it to some ftp site.
---
  SLMR 2.1a  Nobody knows the Tribbles I've seen
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Windows 3.1 Programming Books 
Organization: Vonnegut Tent Rentals, Inc.
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 17 Nov 92 19:40:44 GMT

Tom Grein (zap@navaho.eel.ufl.edu) wrote:
> I work for a company that is preparing to port a DOS product out to Win 3.1.  We are going to get the SDK docs.  However, are these docs good enough to get started with Win 3.1 programming.
>  
> I would like some other suggestions for Win 3.1 programming.  I have heard that Petzold's book is good.  
>  
> Any other suggestions for documentation and how to get started with the Win 3.1 programming would be GREATLY apprectiated.
>  
> Thomas Grein
> zap@sioux.eel.ufl.edu
> 
> 
Hold the presses!  There a more books of this kind appearing all the time.
The MS books will set you back about $250 if bought separately from the SDK
whereas for $39.95 SAMS and QUE both publish comprehensive reference texts for Windows 3.1
programmers.  Just yesterday I saw the SAMS book covering Borland C++ v.31
(with AF) and Windows programming.  Its a good one.  I wish it had been
available 6 months ago.

Choices: buy Borland C++ v3.1 with AF and use the docs with that. You get
a powerful Windows based development system.  Buy extra docs from Computer
City et al., getting the SAMS or QUE books.

Get MS C++ v7.0, which has a ton of books with it (say 3 cu. ft......), but
then you only have a DOS development environment, though you can develop
Windows programs with it (obviously).  Same comment above for buying extra
books, with the note that Computer City locally sells some of the MS stuff.

One top recommendation: beg borrow or steal "C++ Tutorial" from the MS set.
Truly an excellent beginner's guide to C++.  

--
||I dreamed I met a Yadallean          |(parody in progress, apologies to
||A most confusing man....             | Tim Rice & Andrew Lloyd Webber)
||------------------------------------------------------------------------
||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY  |
Newsgroups: comp.os.ms-windows.programmer.misc
From: derrick@sdc.com (Derrick Davis)
Subject: Re: Books on OLE?
Keywords: Petzold & Ver3.1
Organization: Systems Development Corporation
Date: Wed, 18 Nov 1992 20:47:52 GMT

In article <1992Nov13.195204.11484@nntpserver.chevron.com> daveb@usho91.hou281.chevron.com (D.F.Butcher) writes:
>In article <1992Nov11.102409.882@informix.com> christb@infmuc (Christian Barmala) writes:
>>I appreciate the book "Programming Windows 3.1" by Charles Petzold.
>>Regretably there was no chapter about OLE and none about Drag&Drop.
>
>I was about to order Petzold 3.1 by mail since I haven't been able to
>find it in a bookstore.  If it doesn't include OLE or D&D, and I already
>have the 3.0 version, is it worth the money?
>
>By the way, WHY DON'T publishers offer upgrade prices on books like
>these, like the software companies do?  Do we need a national boycott to
>avoid paying full price for one or two new chapters?

I never purchased the book after thumbing thru it for that very
reason.  It is a shame that it is a revision of ver3.0.

I was looking forward to C++ methods for Win31 ect...

Yes lets boycott!!!!
From: shw3118@tamsun.tamu.edu (Shao Hua Wang)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: about ARCHES.BMP?
Date: 23 Nov 1992 23:20:18 -0600
Organization: Texas A&M University, College Station, TX
Distribution: usa
NNTP-Posting-Host: tamsun.tamu.edu

ARCHES.BMP filesize is 400 bytes more than width*height/2+118
(ARCHES.BMP = 10358, width = 123, height = 160) could some experts
tell me why. The program I wrote to show BMP file (based on
WINDOWS 3.0 BITMAP FORMAT) failed on this one. The picture is skewed.

Thanks
Shao
--
Newsgroups: comp.os.ms-windows.programmer.misc
From: chuck@searchtech.com (Chuck Howard)
Subject: question on resource limitations
Organization: Search Technology, Inc.
Date: Thu, 12 Nov 1992 22:06:38 GMT


I've recently started working on a windows program that is resource 
intensive which is having problems.  Through the grapevine I've been
told that there is a 64K limit on the number of resources you can have
active in either a windows session or per application.  Currently, our
application dies after a certain number of windows are opened, and
some people think we have hit this magical 64K limit.

If you could, please point me to a FAQ site, or other documentation
concerning resource limitations.

Also, if this 64K is a true limit, are there in tools or functions that
you can call that express how close you are to this limit.

Thanx in advance

Chuck
-- 
Chuck Howard	                                chuck@srchtec.uucp (registered)
search technology, inc.				           chuck@searchtech.com
4725 peachtree corners cir., suite 200		   {uupsi,stiatl}!srchtec!chuck
norcross, georgia 30092				                 (404) 441-1457
From: steveo@mel.dbce.csiro.au (Stephen Oakes)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Inaccuracy in windows timer?
Date: 18 Nov 92 05:05:47 GMT
Organization: CSIRO, Div. Building Constr. and Eng'ing, Melb., Australia

In article <1992Nov18.113155.165165@dstos3.dsto.gov.au> jav@dstos3.dsto.gov.au writes:
>Windows timer inaccuracy!
>
>I have an application which needs to sample a value every 60 seconds.  I use
>the settimer function with an interval of 60000 to send a message to the
>appropriate window which invokes the relevant member function to do the
>sampling (I'm using Boralnd C++ 3.1 with OWL).  This all works fine except that
>the sampling time actually creeps by about 1 second every thirty minutes.  I
>store the time (obtained using standard C time.h functions from the PC clock)
>in a file with every sample and after thirty minutes or so, the sampling occurs
>one second later in the minute than originally.

Never ever *ever* *EVER* rely upon the Windows timer to give you accurate
timing.  There are several issues here.  One of them is that (according
to the docs) you are not even guaranteed that you will get every timer message,
because they are low priority messages, and if one stays in the message queue
long enough (until another one is placed there) Windows will remove the first
one.  Or you might just get a message a few seconds late if Windows is busy
with another app.

Also, although the docs say that the parameter passed to SetTimer
is in milliseconds, I wonder if they actually use 1/1024 instead?

To avoid the slippage you describe, I think there are three possibilities:
	1. Use SetTimer to send you a message far more frequently (say
	   every second) and then read the actual time to determine
	   whether you should do the sample.
	2. Similar to the above, except do it in a PeekMessage loop
	   instead of using a timer.  This may degrade Windows'
	   performance slightly.
	3. I think you can use the DDK to get more accurate timings,
	   but I don't know anything about this.  

--
| 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 |
|_____________________________________________________________________________|
Newsgroups: comp.os.ms-windows.programmer.misc
From: bell@nella4.cc.monash.edu.au (mr g.a. bell)
Subject: From TURBOVISION to MS-WINDOWS
Keywords: TurboVision,MS-WINDOWS,HELP
Organization: Monash University, Melb., Australia.
Date: Wed, 18 Nov 1992 06:37:14 GMT


I have an application using Borlands TurboVision class
libraries which I might convert to MS WINDOWS. 

What I would like to know is what is involved in the conversion?

Thanks in advance,

Gary.


-- 
``````````` bell@nellads.cc.monash.edu.au `````````````````````````````````````
| Gary Bell                                                                   |
| Department of Robotics and Digital Technology                               |
|Faculty of Computing, Caulfield Campus, Monash University, Australia         |
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Visual Basic Question: How to Kill "foreign" task
From: dmittleman@misvms.bpa.arizona.edu (Daniel Mittleman)
Date: 17 Nov 1992 09:39 MST  
Distribution: world,local
Organization: University of Arizona MIS Department
News-Software: VAX/VMS VNEWS 1.41    

In article <m#w10cc@rpi.edu>, ncc1701@acm.rpi.edu writes...
>Hi,
> 
>I'm trying to write a program that does the following:
> 
>Invokes an external program, not related to the one I'm writing
>(For example, we'll assume I'm trying to run sol.exe)
> 
>When certain conditions exist, it terminates that program.
> 
>The way I do it now is to AppActivate "Solitaire"
>then SendKeys "%{F4}" (Alt-F4) to kill it.
> 
>This works great if the program is still running, but
>if the user has exited solitaire before the conditions are
>met, some OTHER program gets terminated (sometimes
>PGM MGR itself!)
> 
>Is there some way to use the number VBasic returns
>when you Shell the program?
>(i.e. something=Shell("C:\win\sol.exe",1) ???
> 
>HELP!
> 
>(Please email-I don't do a lot of windows pgming, and
>don't have time to peruse this group a lot)  THANKS!
> 
    I have the same question, so if someone emails to him please also post
    your response.

===========================================================================
daniel david mittleman     -     danny@arizona.edu     -     (602) 621-2932
From: null@diku.dk (Niels Ull Jacobsen)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: MS Programmers FAQ
Date: 24 Nov 92 00:25:39 GMT
Organization: Department of Computer Science, U of Copenhagen

andys@picard.NoSubdomain.NoDomain (Andy Say) writes:

>  Did anyone else have a problem with the FAQ??  It is listed at being only
>two parts acording to the header, yet the second part has no matching
>uuencoded end statement...  Anyone know where I can pick this up from an
>FTP site??

I also had problems. Now, instead of everybody posting "me too"'s, could we
have answers to the more interesting: Did anyone actually get it right?


>-- 
>*****************************************************************************
>* Andy Say                          *  Place witty comment here.            *
>* Bell Communications Research      *                                       *
>*    andys@seas.bellcore.com        *                                       *
>*****************************************************************************
>* Bellcore doesn't pay me enough to speak for them.                         *
>*****************************************************************************
-- 
   Niels Ull Jacobsen, Dep. of C.S., U of Copenhagen (null@diku.dk)
   Adaz sighed.  "So how long will this journey take?" 
   "A month?" Sutekh shrugged.  "Depends on when the horses die." 
     -- from "Adaz & Sutekh" by Jeff Stehman
Newsgroups: comp.os.ms-windows.programmer.misc
From: jimw@empros.cxn.dec.com (Jim West)
Subject: Re: MS Programmers FAQ
Reply-To: j_west@zebpik.enet.dec.com
Organization: Random Mixed
Date: Mon, 23 Nov 1992 19:54:06 GMT


I too had a problem with this FAQ.

Sure would appreciate either a re-post or a pointer.

Much thanx,

-/ Jim /-
Newsgroups: comp.os.ms-windows.programmer.misc
From: stebnerd@wl.aecl.ca
Subject: VB: Reading a file using a TYPE-defined variable
Organization: AECL RESEARCH
Date: Sat, 21 Nov 1992 02:59:41 GMT

  I've got a formatted file and I would like to open it as random access and
use a TYPE defined variable to read in a complete record at a time.  My
problem is that the first field of each record is a string (constant length);
the rest are all single precision.
  It seems that VB likes to automatically carriage return and line feed right
after reading a string and then continues as per usual - until it reads another
string.  This screws things up ROYALLY (so to speak).  Is there anyway to
override this ridiculous built in CR & LF?
  The only way I've been able to get around this problem is by reading an
entire record at once using LINE INPUT#, parsing it into substrings (this is
easy because the file is formatted), and finally using VAL to assign the
substring values to the SINGLE variables.  This involves 3 brutally slow steps
when it *should* be easy to accomplish this with only 1!!  This just isn't
going to work efficiently for large files.
  Has anyone got any better suggestions? (oh please, oh please, oh please...)

  Thanks A LOT in advance!

-Daren Stebner
stebnerd@wl.aecl.ca
Newsgroups: comp.os.ms-windows.programmer.misc
From: ezachris@dakota.ucs.indiana.edu
Subject: OWL Dialog Bitmaps
Keywords: borland c++ owl dialog bitmap
Organization: Indiana University
Date: Mon, 16 Nov 1992 20:53:45 GMT


Howdy!

I'd like to display a .BMP in a dialog box derived from TBDialog or  
TDialog. I've used the Resource Workshop to design the dialog complete  
with a bitmap control. 

What's the easiset way to make a pretty picture appear when I open the  
dialog? 

Many thanks in advance!

Espen Zachrisen
Indiana University
ezachris@arapahoe.ucs.indiana.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: bytor@carson.u.washington.edu (Jill Patterson)
Subject: Re: OWL Dialog Bitmaps
Keywords: borland c++ owl dialog bitmap
Organization: University of Washington
Date: Wed, 18 Nov 1992 05:13:46 GMT

ezachris@dakota.ucs.indiana.edu writes:

>Howdy!

>I'd like to display a .BMP in a dialog box derived from TBDialog or  
>TDialog. I've used the Resource Workshop to design the dialog complete  
>with a bitmap control. 

>What's the easiset way to make a pretty picture appear when I open the  
>dialog? 
The Easiest way to do this is to create a bitmap resource,
After you have created it, Rename it using

Rename Resource

Give it a number for a name in the range of 1200-1899 I believe.  Then
in your dialog resource, give your bitmap control the ID number of your
bitmap resource - 1000.

For Example if you created a bitmap with the name of 1888, then you
would give your bitmap control and id of 888,  then simply choose
test dialog, and you should see you bitmap displayed in the Dlg box in
all its beauty!

bytor@carson.washington.edu

>Many thanks in advance!

>Espen Zachrisen
>Indiana University
>ezachris@arapahoe.ucs.indiana.edu
From: claude.hunter@nitelog.com (Claude Hunter) 
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: How do I make a True Type
Date: 15 Nov 92 13:51:00 GMT
Distribution: world
Organization: Nitelog BBS - Monterey, CA - 408-655-1096
Reply-To: claude.hunter@nitelog.com (Claude Hunter) 

SA>        What is the best way to create a new True Type Font.  Is there
SA>some software package out there that can be used for this purpose.  Is
SA>there a standard reference text describing the procedure?  Thanks.

One software package that is reasonable in price is FontMonger.  It
lists for $149.95 retail.

Claude
---
 . SLMR 2.0 . My reality check just bounced.
              
Newsgroups: comp.os.ms-windows.programmer.misc
From: jacobsen@cae.wisc.edu (Jacobsen Erik)
Subject: Using fonts in a TEdit window
Organization: U of Wisconsin-Madison College of Engineering
Date: 20 Nov 92 09:05:36 CST


Greetings.

	I am writing a Win3.1 application using BCC3.1 with Borlands OWL.  In order to display a larger amount of data on the screen, I need to be able to change the font in a TEdit window, and would like to know if anybody has any ideas as to how this may be accomplished.  I have extensively searched through the on-line help as well as several other manuals (including Undocumented Windows, a very handy book) with no success.  This seems like it should be a fairly simple thing to do, but so far I'm clueless.

I would appreciate any help you are able to offer.  Thank you.

Erik Jacobsen
jacobsen@phenxm.physics.wisc.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: rgarner@TRL.OZ.AU (ROSS GARNER)
Subject: Fontsize via clipboard
Organization: Telecom Research
Date: Mon, 23 Nov 1992 05:58:59 GMT

From my VB program I want to send the font size and font name with my text 
via the clipboard.
Using CF_TEXT as the clipboard format sends only the text.
How do I add the other parameters?

Ross Garner
From: ugo@oliver.sublink.org (Ugo Cei)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Support for adding command language to my application
Date: 17 Nov 92 20:24:26 GMT
Organization: Oliver System - Pavia ITALY

tate@gobbler.slc.mentorg.com (Mike Tate) writes:

>I am developing an application to which I would like to add a
>command language which advanced users can utilize to configure
>and control the application.  The command language should be
>accessable by both:

I would suggest that you get Tcl. From the comp.lang.tcl FAQ:

~Subject: -1- What is Tcl?  Tk?  Extended Tcl?  How does Tcl compare
		against language XXX?

	Tcl (version 6.4) stands for ``tool command language'' and is
pronounced ``tickle.'' It is actually two things: a language and a
library.  First, Tcl is a simple textual language, intended primarily
for issuing commands to interactive programs such as text editors,
debuggers, illustrators, and shells.  It has a simple syntax and is
also programmable, so Tcl users can write command procedures to provide
more powerful commands than those in the built-in set.

	Second, Tcl is a library package that can be embedded in
application programs.  The Tcl library consists of a parser for the Tcl
language, routines to implement the Tcl built-in commands, and
procedures that allow each application to extend Tcl with additional
commands specific to that application.  The application program
generates Tcl commands and passes them to the Tcl parser for
execution.  Commands may be generated by reading characters from an
input source, or by associating command strings with elements of the
application's user interface, such as menu entries, buttons, or
keystrokes.  When the Tcl library receives commands it parses them into
component fields and executes built-in commands directly.  For commands
implemented by the application, Tcl calls back to the application to
execute the commands.  In many cases commands will invoke recursive
invocations of the Tcl interpreter by passing in additional strings to
execute (procedures, looping commands, and conditional commands all
work in this way).
[...]

c. MS-DOS

	Two ports are available.  One unsupported port of Tcl and Extended 
Tcl 6.0, done by "Karl Lehenbauer" <Karl@NeoSoft.com>, is available on 
barkley.berkeley.edu.

	The other port of TCL V6.2 was done by 
"John Martin" <johnm@cajal.uoregon.edu> and is available via FTP from
cajal.uoregon.edu.

-- 
Ugo Cei --- Via Colombo 7 - 27100 Pavia - ITALY   |
         -- Sublink:  ugo@oliver.sublink.org      | "Real programs dump core"
Newsgroups: comp.os.ms-windows.programmer.misc
From: bumbles@leland.Stanford.EDU (Steven Alexander)
Subject: Bitmap Button in TWindow (OWL)
Organization: DSG, Stanford University, CA 94305, USA
Date: Wed, 18 Nov 92 21:30:48 GMT

Please reply to  sun!kla!anil    OR    kla!anil@sun.com

I am using Borland C++ 3.1 and OWL.

I know how to display a bitmapped button in a TDialog, using
Borland Custom Controls. 
        (i.e. making Bitmap_Id = Button_Id + 1000).

What I want, is to display a bitmapped button in a Twindow, 
not a TDialog. Do I, HAVE to make it Owner Draw, or is there
another simple way? 

Thanks,
-Anil.