HDTenEightyP/NetNews huggingface dataset:
From: Peter.Hug@bbs.actrix.gen.nz
Subject: Echoing lines of text to printer device
Organization: Actrix Information Exchange
Date: Tue, 29 Dec 1992 04:10:32 GMT

One of the features of my alarm-monitoring MS-Windows app I am currently
developing is to process messages from hardware devices connected to COMM
ports and output them concurrently to a window and a printer (the printed
output is a hardcopy of the sequence of events, called "Event-Log"). While
dumping messages to a window is a breeze, the same cannot be said about the
printer.

The only way I managed to rout an event immediately to the printer
(complying with MS-Windows printing procedures) was by using StartDoc(),
Escape(...PASSTHROUGH...) and EndDoc(). A single event is sent with
PASSTHROUGH and formated with CR\LF control characters. The application
knows how many lines fit on the printer and the last event that fits on
a page is terminated with a FF control character.

While this approach works, it has some nasty side effects:

- If I use another application to print documents, this document does
  not start on a new page (my app isn't aware of this and doesn't
  send a FormFeed to the printer). Furthermore, my app does no longer
  propper page advances since it has invalid information about the page
  position.

- Also, numerous events can occur simultaneously. Since each event causes
  a seperate document be sent to the printer, the print manager complains
  as soon as more than 100 documents (events) are queued. If I buffer events
  mayself (eg. if many events arive and I send as many events as possible
  within a single document to the spooler), the log prints only once the
  EndDoc() function is called. However, since the user can see all ariving
  events appearing in the event window but nothing appears on the printer,
  she/he gets the impression that something is wrong.

Does anyone know how this can be accomplished propperly? Or do I have to
Newsgroups: comp.os.ms-windows.programmer.misc
From: bcmatusz@vela.acs.oakland.edu (Brian Matusz)
Subject: Re: problems with CTL3D.DLL
Organization: Oakland University, Rochester MI.
Date: Thu, 31 Dec 1992 02:34:06 GMT

In article <1992Dec31.021603.21231@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:

[portions deleted]

>Problems with CTL3D.DLL
>-----------------------  
>  1. before *anything* in your app runs (i.e. even before you check for
>     'first instance', something in CTL3D.LIB (linked in) tries to find
>     CTL3D.DLL.  It appears to look in at least 3 directories:
>	- ...\windows
>	- ...\windows\system
>	- the application's home directory (GetModuleFileName)
>     (I tried placing it in each of the 3 directories to see
>      what it was looking for and where).
>
>     If it can't find CTL3D.DLL, it chokes and displays:
>	+----------------------+
>	|     File Error       |
>	| Can't find CTL3D.DLL |
>	+----------------------+
>     and then terminates the application before it even gets a
>     chance to run.

True ... but this is characteristic of Windows, not Ctl3d.  Unfortunately,
there is no better way to do it (without much more effort).  I'm not
up on the techniques, or if it can be done, but I assume it can ...
Instead of linking with the LIB, looking for the DLL, and then making
the links on the fly.  (I could be way off here...)

>     This is distinctly unfriendly! At the very least, it should
>     keep it's mouth shut and quietly disable itself and keep
>     going, but without 3d effects.  If it must check for CTL3D.DLL
>     it should only do it in Ctl3dRegister(), so only if *I* choose
>     to register it, will it croak if it can't find it.

Because it's a Windows thigns and not a ctl3d thing, that's not really
a good thing to do.  Agreed, it's a good thing to do in the case of
Ctl3d, but that's not where the problem is.

>     I had intended to set a BOOL ctl3d flag myself, if I could
>     find CTL3D.DLL (in either of the 3 directories I described
>     above), and then call the ctl3d... functions only
>     if ctl3d==TRUE, but it croaks before I even have a chance
>     to do anything.

[Rest deleted]

Hope it helps!
Brad Wilson (via a friend's account)
-- 

---
bcmatusz@vela.acs.oakland.edu
"Use DEVICE=EXXON to screw up your environment."
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Microsoft ctl3d library 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Wed, 23 Dec 1992 22:11:01 +0000

In article <jtaylor.12.725136642@dseg.ti.com> jtaylor@dseg.ti.com writes:

>In article <103071@netnews.upenn.edu> kris@circ.upenn.edu (Kris Gupta) writes:
>
>        Can these by used by Borland C++ programmers? Are they compatible, 
>or only an extension of exsisting Microsoft tools?
>
>        Thanks,
>
>        JTAYLOR@LOBBY.TI.COM
>

Sure - I don't see why not.  It's not at all like BWCC.DLL - where you have
to use the library as a dialog class.  CTL3D works by installing a
CBT_HOOK into the system, which automatically subclasses all your controls.
Add 3 function calls into your code, and you're away.

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
From: terbergd@cuug.ab.ca (Denis Terberg 283-8245)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Borland C++ OWL; want hybrid of MDI child and Dialog box
Date: 26 Dec 92 21:37:15 GMT
Distribution: comp.os.ms-windows.programmer.misc
Organization: Calgary UNIX User's Group

I want to create an MDI child window with some (but not all)
of the properties of a Dialog Box.

The desired features are:
* create from a resource
  (ie: use CreateDialog() )
* events pre-processed by a Dialog Box Procedure,
  instead of a window procedure
  (ie: use DefDlgProc)
* can be tiled/minimized/etc inside MDI Frame
  (ie: make it a child of the MDI Frame)

However, I do NOT want the window to have any of the following
properties:
* modal
  (ie: set TDialog::IsModal = FALSE)
* can be dragged out of MDI Frame window
  (how do you prevent this??)
* remains in front of all other windows
  (how do you prevent this??)

The best I've been able to do is make an MDI Child window which
creates a dialog window in it's client area.  This looks exactly
like what I want, and has all the desired functionality, but
I can't help thinking that the same should be possible with only
one window, instead of two.

Any suggestions?

-- 
**************************************************
* Denis W. Ter Berg  (403) 243-5459              *
* terbergd@cuug.ab.ca                            *
**************************************************
Newsgroups: comp.os.ms-windows.programmer.misc
From: boba@miki.pictel.com (Bob Alexander)
Subject: Re: HP's Dashboard
Organization: PictureTel Corporation
Date: Mon, 21 Dec 1992 17:10:37 GMT

>i have installed DASHBOARD by HP on my gateway 2000 (80486 @ 33 MHz).  i
>have decided to use dashboard as my shell instead of program manager.  however
>i have found that dashboard is extremely buggy.  

I have Dashboard on an AST and a no-name clone and it works great.  No signs
of bugs for me.

     Bob Alexander                                     boba@pictel.com
     -----------------------------------------------------------------
     Organizations don't have opinions; people do.  The above opinions
     do not reflect those of the directors, stockholders, managers, or
     other employees of PictureTel.


Newsgroups: comp.os.ms-windows.programmer.misc
From: nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps)
Subject: how to animate icon of minimised window ?
News-Software: VAX/VMS VNEWS 1.41    
Organization: National University of Singapore Dept. of Computer Sc.
Date: Thu, 24 Dec 1992 22:04:00 GMT

	I would like to animate the icon of a minimised window. I guess
	this can be done by continually changing the hIcon of the
	window class. So what I did is to set a timer, and upon the
	reception of WM_TIMER, I check if the window is iconic. If it
	is, I use SetClassWord to change the hicon.

	problem : the dang thing doesn't seem to be working.
	can someone give me an idea on how to go about implementing it ?
	am I on the wrong track ? I've check the API, and there doesn't seem
	to be a function for this purpose.

	Thanx in advance.
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Microsoft ctl3d library
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 23 Dec 1992 22:25:20 GMT

In article <jtaylor.12.725136642@dseg.ti.com> jtaylor@dseg.ti.com (Jeff Taylor) writes:
>In article <103071@netnews.upenn.edu> kris@circ.upenn.edu (Kris Gupta) writes:
>>From: kris@circ.upenn.edu (Kris Gupta)
>>Subject: Microsoft ctl3d library
>>Date: 23 Dec 92 17:07:33 GMT
>>FYI:
>>
>>The Microsoft 3d controls library (ctl3d) is located in the Microsoft 
>>msdnlib forum on Compuserve or is also ftp'able at:
>>
>>ftp.uu.net:
>>	1. Library and sample code: 
>>		/vendor/microsoft/developer-network/techsamp/3-31.zip
>>
>>	2. Technical notes in the form of a help file:
>>		/vendor/microsoft/developer-network/wintech/10-4.zip
>>
[...sig deleted...]
>
>	Can these by used by Borland C++ programmers? Are they compatible, 
>or only an extension of exsisting Microsoft tools?

	I use Borland C++ 3.1, plain C (but not OWL) and they work fine.
	(Windows 3.1).  They were real easy to implement.

	I do have one small problem
	with truncation of a string in a MessageBox.  The string has
	embedded \n to make a 10-15 line display, but it truncates at
	about 10 lines (perhaps 512 characters?).  It works fine without
	ctl3d.  I'm not sure how colour changes affect the string, though.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
From: Kyle Marsh <kylemar@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: problems with CTL3D.DLL                                                        
Date: 31 Dec 92 18:36:31 GMT
X-MSMail-Message-ID:  F8DFD36E
X-MSMail-Conversation-ID:  F8DFD36E
X-MSMail-WiseRemark:  YO
To: netnews

>  1. before *anything* in your app runs (i.e. even before you check for
>     'first instance', something in CTL3D.LIB (linked in) tries to find
>     CTL3D.DLL.  It appears to look in at least 3 directories:

As explained this is Windows not CTL3D that is trying to find 
CTL3D.DLL. Makes sense because CTL3D.DLL would not have to look for 
itself ( I run therefore I am ). You can do a LoadLibrary and then 
GetProcAddress to avoid this happening.

>  2. CTL3D.DLL will only allow MessageBox to display 256 characters,
>     however the box is sized large enough for the entire message.
>     The following example works fine without CTL3D.DLL, but
>     with CTL3D.DLL, it truncates at 256 characters (just before
>     "line 17") and yet it makes the box tall enough for all 20
>     lines.

This is the second time I have heard about this and both were this 
morning. I will check this out.

>If someone at MS reads this, can they please pass it on to the
>folks who are responsible for this product.
Done. I am responsible for the distribution of CTL3D.DLL

Kyle, MS Developer Network
Newsgroups: comp.os.ms-windows.programmer.misc
From: mark@ocsmd.ocs.com (Mark Wilson)
Subject: Re: How to load bitmaps from file
Organization: Online Computer Systems, Inc.
X-Newsreader: Tin 1.1 PL5
Date: Tue, 22 Dec 1992 18:37:11 GMT

Me too!  (I.e., no answers but same questions...)

--
-------------------------------------------------------------------------------
Mark Wilson, Online Computer Systems.  1-800-922-9204 or 1-301-601-2215
(Try email address mark@wilson.ocs.com....)
This file .disclaims everything signed with my .signature, I .mean it!
-------------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: duvalld@liberty.uc.wlu.edu (Danek Duvall)
Subject: Re: i'm stupid and can't create an RTF file!
Date: Thu, 24 Dec 1992 18:17:45 GMT
Distribution: local,world
Organization: Washington & Lee University
X-Newsreader: Tin 1.1 PL5

I noticed the RTF format is very similar to that of TeX. However, TeX is
soooo much easier to program. If only, if only, if only.......

Danek
-- 
Danek Duvall: Washington and Lee U.
Internet: duvalld@liberty.uc.wlu.edu
***
Newsgroups: comp.os.ms-windows.programmer.misc
From: chander@access.digex.com (Chander Raja)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Memory allocation problems using Bc++3.1
Date: 23 Dec 1992 06:20:24 GMT
Organization: Express Access Online Communications, Greenbelt, MD USA
Distribution: world
NNTP-Posting-Host: access.digex.com

I am new to Windows programming and OWL. Till a few days ago, I
had no problems compiling my program under the small memory model.
But as I kept adding more code, the linker would give me 
unfriendly " Segment _TEXT exceeds 64K"s . So I switched to the
large memory model. But now, the program crashes a lot, mostly
in the constructor of a class before executing even a single line of it.
I have traced it to malloc.

Is there a problem with Borland's memory management routines under
OWL? I know that they have overloaded the operators new and delete
globally. Has someone tried to overload new and delete using the
global heap? If so please post it.

Thanks in advance.
-Chander
chander@access.digex.com
From: pluto@cs.ucsd.edu (Mark Plutowksi)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Borland C++ 3.1 vs Visual Basic 2.0
Date: 23 Dec 92 19:57:07 GMT

DRPORTER@SUVM.SYR.EDU (Brad Porter) writes:

>The only thing I can respond to in this article is the question pertaining to
>learning curve on Visual Basic.  When it comes to designing the interface
>and creating the dialog box - one full day would get anyone remotely familiar
>with programming up to speed.  I've written in C for DOS and Visual Basic is
>hundreds of times easier with user interface.  I can't offer any advice on
>ease of importing C++ code, or doing database work, but as for ease of design




Does it generate C-like source, and can this be easily modified?
Can it be used with different compilers, like Zortech or Borland?

Thanks,


= Mark
  UCSD CSE
  La Jolla  CA
Organization: University of Illinois at Chicago
Date: Sun, 3 Jan 1993 09:25:36 CST
From: Marc Sasiadek <U24226@uicvm.uic.edu>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Adding OWL's FILEDIAL.DLG to an RES file

Hi!

I'm trying to add FILEDIAL.DLG to my RES file. Everytime I do it, I get an
error message saying that either WIN30 or WIN31 has to be defined. How do
I define it and in what file do I put the definition in?
Thanks in advance.
*****************************************
*  Marc Sasiadek(u24226@uicvm.uic.edu)  *
*  University of Illinois at Chicago    *
*         College of Pharmacy           *
*****************************************
Newsgroups: comp.os.ms-windows.programmer.misc
From: nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps)
Subject: Re: Borland C++ v3.1 TDW Debugger
News-Software: VAX/VMS VNEWS 1.41    
Organization: National University of Singapore Dept. of Computer Sc.
Date: Thu, 24 Dec 1992 21:47:00 GMT

In article <1992Dec20.020015.1@jaguar.uofs.edu>, das11@jaguar.uofs.edu writes...
> 
>   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.

	you'll have to be more specific. what do you mean by "can't get
	it to work" ? Does it start up but fail to load your apps ?
	Or does it load your exe but fails to load your source ?
	or does it fail to execute at all ? or does it fail to find the
	TDWIN.DLL ? Any error messages ? are you running Win31 or 30 ?

	and yeah, the TDW docs could have been better...
> 
>   thank you.
>   david sobeski
>   das11@jaguar.ucs.uofs.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From:  avsht@sph.spb.su (Alexander Shturm)
Subject: Oh WEP, WEP, strange WEP...
Reply-To: avsht@sph.spb.su
Organization: Center SuperPhysica
Date: Mon, 21 Dec 1992 20:52:13 GMT

Hi netters!

This is piece of SDK 3.1's manual:

-> In some low-memory conditions, WEP can be called before the library
-> initialization function is called and before the library's DGROUP
-> data-segment group has been created. A WEP function that relies on the
-> library initialization function should verify that the initialization
-> function has been called.

1. What conditions do they mean?
2. What is "library initialization function" in this context?
   Is it LibMain?
3. Who may explain me WHEN & WHY WEP could be run BEFORE LibMain ???!!!

Thanks for any help.

Regards,
/Alex

-- 
Alexander Shturm  ||  St.-Petersburg  ||  Internet: avsht@sph.spb.su
================  ||   Russia (xSU)   ||  FidoNet:  2:5030/8.18, /43.18
Tel.: +7-(812)-233-9148 (home)   +7-(812)-310-4631 (office)
From: lance@lancea.actrix.gen.nz (Lance Andrewes)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Seeking WMF file format
Distribution: world
Date: Wed, 23 Dec 92 06:48:00 GMT
Organization: none
Keywords: WMF METAFILE

I am urgently looking for a clear explanation of the format of
Windows Metafiles (the files normally have the suffix .WMF).

I've searched CompuServe, and have the Microsoft Programmer's
Reference for Win3.0.  Neither of these has quite what I want.
Ideally it should lay out exactly the structure of a WMF file,
ie what goes in the header, what bytes define pens and lines,
how to draw a box/polygon etc.  Most references I've found
show you how to write a metafile _using Windows API calls_.
That's _not_ what I want.

The explanation is needed by someone who is writing a program
to convert his graphics format into WMF.  The program will be
written under VMS Fortran or C.

Any help much appreciated.  Thanks.

__
 _______  Email: lance@lancea.actrix.gen.nz
////      ZL2AJH    Wellington, New Zealand

From: tope@enea.se (Tommy Petersson)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Need more disk throughput under Win 3.1
Date: 22 Dec 92 09:09:07 GMT
Organization: Enea Data AB
X-Newsreader: Tin 1.1 PL3

bobz@truevision.com (Bob Zigon) writes:
: 
: Q : I have run some tests that show I can get about 2mb/sec out of
:        my hard disk controller on my EISA machine under DOS. I have
:        written a simple Windows 3.1 app that is showing that I can't
:        get anymore than 350kb/sec on the same machine. What can I
:        do to improve the through put under Windows. Please get 
:        creative. I would like to come as close to 2mb/sec as possible?
: 
: 
: Bob Zigon
: bobz@truevision.com

Do you have 32-bit disk access?

-- 
=============================================================================
 Tommy Petersson              tope@enea.se              Enea Data AB, Sweden
=============================================================================
From: kris@circ.upenn.edu (Kris Gupta)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Microsoft ctl3d library
Date: 23 Dec 92 17:07:33 GMT
Reply-To: kris@circ.upenn.edu
Organization: Cardiothoracic Imaging Research Center

FYI:

The Microsoft 3d controls library (ctl3d) is located in the Microsoft 
msdnlib forum on Compuserve or is also ftp'able at:

ftp.uu.net:
	1. Library and sample code: 
		/vendor/microsoft/developer-network/techsamp/3-31.zip

	2. Technical notes in the form of a help file:
		/vendor/microsoft/developer-network/wintech/10-4.zip

Hope this helps

Kris

---
Kris B. Gupta  - Cardiothoracic Imaging Research Center
Dept Radiology - Hospital of U of Pennsylvania
Internet: kris@gynko.circ.upenn.edu


Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: stevesi@microsoft.com (Steven Sinofsky)
Subject: Re: MFC and Borland IDE
Date: 30 Dec 92 23:11:17 GMT
Organization: Microsoft Corporation

In article <1992Dec29.164246.22111@netcom.com> garylang@netcom.com (Gary Lang) writes:
>"The end result was (quoting the stats from the magazine):
>
>                   OWL      MFC
>Lines of Code     3398      934
>EXE size(bytes) 56,848   46,536
>
>The OWL executable also requires 3 DLLs totalling 312,640 bytes.  MFC
>is a stand-alone EXE.
>-- 
>Steven Sinofsky"
>
>
>Yes, but the results would have been similar if it had ben OWL vs.
>straight SDK calls Steve, and that's the point. The metric that
>matters is: how object-oriented is the app. fw. and is it removed
>enough from the toolbox of the platform to get me out of the business
>of worrying about allocating DCs and so on. For MFC, the answer is no.
>
>If I want speed and size and that's it, I'll code in assembler.
>
>-g

Also quoting from the article:

"Most articles on Microsoft's MFC say it is a 'thin veneer' or
a 'wrapper' around the Windows native API.  This myth is not substantiated
by the facts.  Metrics such as line count, number of classes, and number
of methods indicate otherwise"

"Microsoft was able to implement our sample application using the
fewest lines of code.  In addition, Microsoft's implementation had the
smallest executable and required the least amount of runtime support
from DLLs."

Someone in this forum claimed that the MFC example used a dialog
box and that the OWL example did not.  In fact the OWL example
is also coded using this exact same technique.


-- 
Steven Sinofsky
stevesi@microsoft.com
Disclaimer: I don't speak for Microsoft, BillG does that.
From: warninm@xanth.CS.ORST.EDU (Michael Warning)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: "Cannot load menu" error
Date: 1 Jan 1993 06:38:58 GMT
Organization: CS Dept, Oregon State University
NNTP-Posting-Host: xanth.cs.orst.edu

Does anybody know what may cause CreateDialog() to give up a "Cannot load menu"
error?  The menu loads fine if I use LoadMenu() and SetMenu(), but I don't
think that I should have to...  That's the purpose of the MENU statement in
the dialog box definition.

The dialog box in question is a modified version of the file-open common dialog
that my app is using as a main window.

					-Mike
From: kevin@execu.execu.com (Kevin English)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: AUX Problem in Windows 3.1
Date: 28 Dec 92 23:09:36 GMT
Organization: Execucom Systems Corp

In article <1992Dec28.135948.23297@enea.se> tope@enea.se (Tommy Petersson) writes:
>ttoupin@zephyr.cair.du.edu (Tory Toupin) writes:
>
>This message usually pop's up when you're running the Windows Kernel in
>debug mode. If I do that, and try to access the scanner connected to a
>SCSI card, I get the same message.
>

Take a look at Section 3.2.2.1 of the "Getting Started" booklet that
came with your SDK (System Debugging Output).  The bottom line is that
if you are running the debugging kernel and you don't have have terminal
connected to COM1, then you should have the following in system.ini:

[Debug]
OutputTo=NUL
From: Jeff Dean <jeff@igc.apc.org>
Newsgroups: comp.os.ms-windows.programmer.misc
Date: 22 Dec 92 19:37 PST
Subject: Re: How get font information on a dialo
Nf-ID: #R:dagwag.724793817@meryl:1647767625:cdp:1668700020:000:145
Nf-From: cdp.UUCP!jeff    Dec 22 19:37:00 1992


Send WM_GETFONT to a control to find out its font (or, if you're using
windowsx.h, use the GetWindowFont() macro).

	Jeff Dean
	jeff@igc.apc.org
From: wxt5592@hertz.njit.edu (wei tang cis stnt)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Help: How to print w/ the same fonts as on screen
Date: 30 Dec 92 23:16:15 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.


    Question:  How do you print the text with the same fonts as what 

are displayed on screen?

    What if true type fonts are used?

    What if non true type fonts are used?

    (Assume the fonts on screen are not printer internal fonts)


    Thanks.
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.win32,comp.windows.ms.programmer