HDTenEightyP/NetNews huggingface dataset:
From: garl@csb1.nlm.nih.gov (Gary Letourneau)
Subject: creating composite bitmaps
Organization: National Library of Medicine
Date: Fri, 10 Apr 92 15:00:14 GMT

I have a simple question concerning the creation of
composite bitmaps. 

Consider the following situation:

Let us say I have two offscreen device contexts, picDC and
bufferDC, each with its own bitmap, picBitmap and
bufferBitmap.

         picDC      -   picBitmap
         bufferDC -   bufferBitmap


Furthermore, picBitmap contains a bitmap image upon
which I want to overlay the image of bufferBitmap in order to
build a composite image using BitBlt. 

The BitBlt needs to work as follows:

    - for every bit in bufferBitmap that is NOT a 0 (it is colored) 
       copy the bit color from bufferBitmap to picBitmap

    - for every bit in bufferBitmap that is a 0 (it is not colored) 
       leave the bit color in picBitmap alone

I am unable to come up with the correct rop code for this.
This is similar to SRCCOPY, except that only the colored
bits are copied.

Can someone point me to the appropriate rop code?
Unfortunately, QuickC for Windows does not have the
full rop code documentation.

                                                      Thanks,
                                                       Gary Letourneau
                                                        garl@lhc.nlm.nih.gov
                                                       
:
From: IO20081@MAINE.MAINE.EDU (robert eric beckwith)
Newsgroups: comp.windows.ms.programmer
Subject: 2 monitors w/BC++3.0 ?'s
Date: 14 Apr 92 20:55:59 GMT
Organization: University of Maine System

I have a model IBM mdl 80 and am going to get
either the xga or 8514/a card and the question is:
---------------------------------------------------------
Using BC++ can I use the on board video driver vga
to drive a debugging monitor and use the xga for
display of the program?? (I want to know if this will
work before purchasing the video card and another monitor)
or any suggestions???
----------------------------------------------------------
Also, I have just ordered win3.1 upgrade, and can see I am
looking forward to some problems making BC++ work.
what all am I going to need to change?? (does anyone know)
And when will an update be out to BC++ 3.0 ? (just got mine
this year, and am not looking forward to upgrade $$, but
I't looks like I'll need it)
-----------------------------------------------------------
thanks in advance.....robert
From: nuspljj@mentor.cc.purdue.edu (Joseph J. Nuspl Jr.)
Newsgroups: comp.windows.ms.programmer
Subject: Idle Wild
Date: 13 Apr 92 23:06:20 GMT
Organization: Purdue University

3.1 uses the _IdleWild_ screen saver.  Is there a development kit out
there somewhere for it like ScreenPeace and AfterDark?

Thanks.

Joseph J. Nuspl Jr.
nuspljj@mentor.cc.purdue.edu
Newsgroups: comp.windows.ms.programmer
From: aa596@cleveland.Freenet.Edu (Peter Haller)
Subject: Re: 2 monitors w/BC++3.0 ?'s
Reply-To: aa596@cleveland.Freenet.Edu (Peter Haller)
Organization: Case Western Reserve University, Cleveland, OH (USA)
Date: Wed, 15 Apr 92 05:03:49 GMT


In a previous article, IO20081@MAINE.MAINE.EDU (robert eric beckwith) says:


>---------------------------------------------------------
>Using BC++ can I use the on board video driver vga
>to drive a debugging monitor and use the xga for
>display of the program?? (I want to know if this will
>work before purchasing the video card and another monitor)
>or any suggestions???
>----------------------------------------------------------
If the built in VGA uses 0xC0000-0xC7FFF in the first 640K
you can't. (It most likely does.) The normal second monitor
is a monichrome (MDA). This is because a mono graphics card
uses memory from 0xB0000-0xBFFFF (I think). When your VGA card
boots it recognizes that there is a secondardy display and
since the adresses don't conflict, everything is fine. If
you try to use a card that needs the same area of memory
as the built in VGA, you have a probelm. Only one display
can be used - period - that uses this address range. (I'm
not up on XGA or a 'real' 8514/a adaptor. Maybe these can
be set to map elsewhere or your on board VGA can, but this
is unlikely.)

PCH

-- 
Peter C. Haller				|	'If you do what you 
Imagination Processing Systems		|	have always done,
aa596@cleveland.Freenet.Edu 		|	expect what you have
"Are we having fun yet?"		|	always recieved.'
Date: Mon, 13 Apr 92 21:38:20 +0200
From: Thomas_Hornschuh@softstream.fido.de (Thomas Hornschuh)
Subject: Re: Function export problem when porting MSC code to BC 2.0
Newsgroups: comp.windows.ms.programmer
X-Comment-To: Jin_Tonic_Li@f1.n6000.z2.fidonet.org (Jin Tonic Li)
Organization: SoftStream Development, Dortmund, FRG 

JT> 
JT>      Attempt to export non-public symbol XXXXX
JT> 
JT> where XXXXX is the name of the dialog function.  The dialogs are called
JT> through MakeProcInstance(XXXXX, hInst) which are all listed under
JT> EXPORTS in .def file.

If your are using the C++ parser you must declare all exportable functions with 
extern "C" FAR PASCAL ...... because PASCAL alone will not switch off the C++ 
name mangling. 

But if you only export callbacks in an exe there are simpler methods:

1. use the keyword _export in together with FAR PASCAL. BC will export the 
function automaticly, you  need not list it in the EXPORT section of a DEF 
file.
2. If you do not compile a DLL, you can switch on "smart callbacks". Then you 
don't need exports or a call to MakrProcInstance for your callback functions.





Newsgroups: comp.windows.ms.programmer
From: jjacob@isis.cs.du.edu (Jude Jacob)
Subject: Re: GetTextExtentEx: Where the $%#@^% is it
X-Disclaimer: Nyx is a public access Unix system run by the University
	of Denver for the Denver community.  The University has neither
	control over nor responsibility for the opinions of users.
Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
Date: Thu, 16 Apr 92 05:03:44 GMT

In article <1992Apr14.184304.19859@hpmcaa.mcm.hp.com> marco@hpmcaa.mcm.hp.com (Marco Dalla-Gasperina) writes:
>So...
>(1) turned into a macro that doesn't exist in the beta SDK that we have.
>(2) omitted completely
>(3) renamed to something else.
>
>Can someone guide me please?  Are there any others I should no about?
>
>marco

This API was one that was rarely used and since it did not offer much more 
in functionality, it has been omitted.


Jude
From: tpradeep@cs.tamu.edu (Pradeep K Tapadiya)
Newsgroups: comp.windows.ms.programmer
Subject: Why do we have SDK 3.1?
Date: 9 Apr 92 14:22:03 GMT
Organization: Computer Science Department, Texas A&M University

Howdy netters,

We have been using MSC 6.xx and SDK 3.0 for our software development.

To my understanding, MSC 7.0 has all the functionality of SDK 3.0.
Now that I have ordered MSC 7.0, I am wondering if SDK 3.0 is useful
anymore? Also, whats the purpose of SDK 3.1 and who need to have it?

Thank you for you help. If need be, I'll summerize the responses on
the net.

Pradeep
tpradeep@cs.tamu.edu
Newsgroups: comp.windows.ms.programmer
From: wiener@tramp.Colorado.EDU (WIENER ERIK D)
Subject: Spreadsheet tools?
Keywords: C++
Organization: University of Colorado, Boulder
Date: Fri, 10 Apr 1992 02:26:52 GMT

Does anyone know of any tools (DLLs, C++ libraries) which enable one to
include a spreadsheet in a Windows application?  Does anyone know where I
might look for such a tool?

Also, as a user of C++/Views with Zortech C++, I am interested in hearing
how C++/Views compares with other other frameworks.  Anyone have any comments
on this? 

Thanks,
Erik Wiener
From: aa596@cleveland.Freenet.Edu (Peter Haller)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Win31 MMSYSTEM.DLL (Multimedia functions)
Date: 11 Apr 92 22:10:00 GMT
Article-I.D.: usenet.1992Apr11.221000.19163
Reply-To: aa596@cleveland.Freenet.Edu (Peter Haller)
Organization: Case Western Reserve University, Cleveland, OH (USA)


In a previous article, todd@uhunix.uhcc.Hawaii.Edu (Todd Ogasawara) says:

>Could someone point me to a reference that describes the use of
>MMSYSTEM.DLL in Windows 3.1? The book Maximizing WIndows 3.1 has a small
>section describing some of the string commands to pass to the mciExecute
>function. However, it doesn't say anything about the dozens of other
>functions in the DLL that I found using Borland's IMPDEF.
>--
The complete MME API can be found in The Multimedia Programmer's Reference" 
from Microsoft Press. Or you cold buy the Multimedia SDK. (To use these
API calls you will need the mmsystem.h header file. As of now, this is
only available with the MME SDK. More bad news: The MME SDK is ONLY 
available on CD-ROM. Good news: Borland Said that they will support the
MME API under BC++ 3.0. (Is this included in the announced update to
3.1? Does MS C/C++ 7.0 include the MME API header?)

PCH
-- 
Peter C. Haller				|	'If you do what you 
Imagination Processing Systems		|	have always done,
aa596@cleveland.Freenet.Edu 		|	expect what you have
"Are we having fun yet?"		|	always recieved.'
From: leadfoot@bigbootay.sw.stratus.com (Mark Curtis)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Is 3.1 SDK Available???
Date: 9 Apr 92 19:48:41 GMT
Article-I.D.: transfer.2065

Microsoft C tech support told me today that C7.0 would include the
SDK, but the people who have the 3.0 SDK don't get a break on the
upgrade price.  We pay the same as people who didn't have the SDK,
but did have C6.  To make it worse upgraders don't get all the
manuals that come in the retail package.  Four or five manuals are
left out.  The upgrade is $139 and if you want the missing manuals
they are an extra $140.  I was told the manuals were in on-line form
for upgraders.  Retail package comes with both.

I don't have disk space for this kind of crap.  On-line help is nice
but it is a disk pig and I like real paper.  I want the damn manuals!
I guess I will have to wait and see what Egghead/Fry's/CompUSA want
for the full package.  Many times they are so close to the upgrade
prices it is worth starting all over.

Mark
From: ar559@cleveland.Freenet.Edu (Jan Buitenhuis)
Newsgroups: comp.windows.ms.programmer
Subject: Demo of 3D Graphics DLL for Window
Date: 10 Apr 92 17:58:58 GMT
Article-I.D.: usenet.1992Apr10.175858.20506
Organization: Case Western Reserve University, Cleveland, Ohio, (USA)


s oploaded.
Hello,

Responding to several questions regarding 3D Graphics DLLs for
Windows.

I have oploaded a demo of 3D RenderLib for Windows at 
garbo.uwasa.fi (129.79.20.22) available through anonymous ftp. 
Its in /win3/demo/3drender.zip 

3D RenderLib for Windows is a 3D graphics Dynamic-Link Library. 
Some of its features are:

unlimited displays (windows),
unlimited viewports (display regions),
unlimited directional, point, and spot light sources,
wireframe, non-shading, flat-shading, gouraud-shading, 
and phong-shading.
parallel and perspective projection,
front and back clipping-planes,
hierarchical object oriented data storage,
etc, etc, etc, etc....


Gr. Jan
From: bruce@ais.com
Newsgroups: comp.windows.ms.programmer
Subject: Re: Goodbye UAE?
Date: 16 Apr 92 22:30:31 GMT
Organization: Applied Information Systems, Chapel Hill, NC

In article <MMSHAH.92Apr14141355@im5.lcs.mit.edu>, mmshah@im.lcs.mit.edu (Milan Shah) writes:
>   Or can we? Just because the message is gone, doesn't mean that a new
>   UAE dialog isn't out there, waiting. 
> 
> I can't believe how badly misunderstood this 'No UAE' business has. Pray,
> tell me, as a programmer, how in hey do you expect *any* OS to detect 
> and correct an error in an application? What do you want Windows to do
> when you dereference a Null pointer?

 [More good examples and discussion of the UAE problem, but then he says:]

> The following program will die under every OS of the past, present, and
> future: whether you call it UAE, GPF, segmentation fault, bus error, or
> whatever. 
> 
> void main()
> {
> 	int *pnCrash;
> 
> 	pnCrash = 0;
> 	*pnCrash = 1;
> }

I can't resist the urge to make a pedantic comment (please forgive me) -
actually this program will very happily compile and run on the PDP-11
RSX system and a number of other systems.  On a lot of the PDP-11 systems
location 0 was the Directive Status Word, used to pass back status results
from system calls from the Executive to the user program.  This sequence
just sets the DSW to 1, a perfectly legal (if strange) operation for a
user program to do - in fact a 1 was the "successful completion" code for
most system calls.

But most protected-mode operating systems have deliberately unmapped
location 0 because it's so convenient for detecting the dereferencing
of a NULL pointer, so it's not a bad example, just that the quantifier
"every" is wrong (should be "most").

Apart from that minor slip (:-) your summary of this subject is quite
good.  For the most part it isn't Windows' fault that UAE's or whatever
exist, but it is (usually) Windows' fault when it allows the UAE in one
app to crash all the other apps on the system.

Bruce C. Wright
Newsgroups: comp.windows.ms.programmer
From: martin@patricia.verfahrenstechnik.uni-stuttgart.de (Martin Hepperle)
Subject: Re: .WAV file format
Organization: Institute A for Mechanics, University of Stuttgart, Germany
Date: Tue, 7 Apr 1992 08:47:46 GMT

One way to convert sampled sound data to WAVe format would be SoundTool
(can be found at 129.69.1.12 in /soft/incoming/pc
Martin.    (Author of SoundTool :-) )
From: richardp@tekig5.pen.tek.com (Richard R Prince)
Newsgroups: comp.windows.ms.programmer
Subject: COMMDLG.DLL
Keywords: QCWin use?
Date: 12 Apr 92 18:21:29 GMT
Distribution: usa


   REF:  commdlg.dll  with Windows' 3.1

   I have been following the discussion surrounding the use of this
   dll for the common 'feel' of fileopen dialog boxes, etc.  I, like
   some of the others, would like to know more about how to use the
   functions/procedures.  I had hoped that there would be a posting
   describing this dll in a little more detail, but now it looks like
   maybe not?  Anyone wish to pass along some information about this
   to me??  I will look in the FAQ the next time it's posted as well.
   Thanks in advance for any information.
From: jeff@col.hp.com (Jeff Hughes)
Date: Mon, 6 Apr 1992 18:13:11 GMT
Subject: Device Independence
Organization: HP Colorado Springs Division
Newsgroups: comp.windows.ms.programmer

Hello,

    I am looking for ways to write "device independent" Windows code. 
My main concern is that I have an application that should run on an
EGA display as well as VGA, and Super VGA. I am placing bitmaps inside
of my application window (now you see the problem), and would like 
these bitmaps to maintain the same aspect ratio, despite the display type.

    One solution I can come up with is for my main application to do 
a GetDevCaps before it creates the main window, then size the main
window so as to keep the aspect ratio of the WINDOW constant, regardless
of the display. Then, I simply StretchBLT the bitmap to a 'window relative
size'. I want to know if this is a 'normal' way to do this??? Is there
some other standard way to maintain the shape of bitmap as I change display
types????

    I am aware of the various mapping modes. These are of very limited 
utility (read that: none) when working with bitmaps. Please help!!
From: shoat@dcs.glasgow.ac.uk (Mr. David Shoat)
Newsgroups: comp.windows.ms.programmer
Subject: Undocumented windows calls for DPMI?
Date: 6 Apr 92 18:16:43 GMT
Organization: Computing Sci, Glasgow Univ, Scotland

Does anyone have any details of undocumented windows functions for DPMI? I'm
working on an application which needs to call real-mode functions from protected
mode windows. I'm currently trying to use assembler routines to call int 31h
as per the DPMI spec, but it doesn't work and it's doing my brain in :-)

If anyone has any hints at all on how to get this to work it would be much
appreciated.

David Shoat
Department of Medical Cardiology
Glasgow Royal Infirmary.
Newsgroups: comp.windows.ms.programmer
From: doug@UC780.UMD.EDU (Deac Moo of the UGC)
Subject: TookBook programmers?
Reply-To: doug@UC780.UMD.EDU
Organization: The University of Maryland, University College
Date: Mon, 6 Apr 1992 17:10:08 GMT

Anyone out there do something interesting in TookBook? I'm getting a copy
tomorrow and am looking to do hypertexty stuff in it.

				Doug

                               ******
	Net postings: Demonstrating the lack of quality psychotherapy in
		      the world....
From: zocchi@ohsu3b2.ohsu.edu (Don Zocchi)
Newsgroups: comp.windows.ms.programmer
Subject: More Windows 3.1 troubles
Date: 7 Apr 92 18:25:40 GMT
Article-I.D.: ohsu.1992Apr7.182540.3323
Organization: Oregon Health Sciences University
Originator: zocchi@ohsu3b2.ohsu.EDU


I am also looking for help on using
Windows 3.1 with my Multimedia system.  I have a Creative Labs Multimedia
kit.  Windows 3.1 running the Windows Bookshelf only does about half of the
voice outputs.  Ex: If you are in the Concise Columbia..., The Rocket animation
plays ok, but the Heart animation doesn't.

Any advice as to how to get this back.
Could I have downgraded from Windows 3.0 to Windows 3.1.
Newsgroups: comp.windows.ms.programmer
From: aaa@APOLLO.HP.COM (Simon Fowler)
Subject: Re: Resource Workshop include dirs...
Organization: Hewlett-Packard Company, Chelmsford, MA
Distribution: usa
Date: Wed, 15 Apr 1992 15:48:20 GMT

In article <29EB48AD.4CD5@tct.com>, jeff@tct.com (Jeff Witzer) writes:
|> First, thanks to all of you that assisted me in my Windows/Communications
|> problems.  Since you seem so helpful, I thought it wise to again consult 
|> you for advice...
|> 
|>     In Borland's Resource Workshop, windows.h is continually unresolved.
|>     How can I define include directories for RW to search?  I found no
|>     help in the manual...
|>     
|> Thanks in advance,
|> Jeff 

I ran into this too. The only workaround that I found was to set the
environment variable (INCLUDE)? to point to the appropriate directories.
I'm not at the system, so I cannot get the full info at present. 
this is documented in the manual somewhere (one line or so!!).

simon
Newsgroups: comp.windows.ms.programmer
From: pvonk@scott.skidmore.edu (Pierre VonKaenel)
Subject: Re: Goodbye UAE?
Organization: Skidmore College, Saratoga Springs NY, 12866
Date: Wed, 15 Apr 1992 15:26:41 GMT

In article <MMSHAH.92Apr14141355@im5.lcs.mit.edu> mmshah@im.lcs.mit.edu (Milan Shah) writes:
>
>The big improvement in Windows is not that UAE's don't occur (they *must*,
>if there is an error in the user program), but that they are *detected*
>correctly and at the time the error occurs.
>
>Milan
>
>


What I can't understand is why I'm now getting all sorts of new "UAE"s
from programs I've been using successfully under Win3.0.  Xtalk for
Windows is one I regularly get.  

-- 
Pierre von Kaenel	| Skidmore College	     | pvonk@scott.skidmore.edu
Math & CS Dept.		| Saratoga Springs, NY 12866 | (518)584-5000 Ext 2391

"Baseball is 90% mental, the other half is physical" - Yogi
Newsgroups: comp.windows.ms.programmer
From: jaz@icd.ab.com (Jack A. Zucker)
Subject: FreeResource()
Organization: Allen-Bradley Company, Inc.
Date: Mon, 13 Apr 1992 19:15:27 GMT

A few questions:

1) This is listed as returning a Boolean yet the documentation says that
non-zero means the function failed.
2) Is this accurate ?

Also, after calling UnlockResource() with a successful return code,
I always get a non-zero return code from the FreeResource() call. I
notice that in most source code, the return code from FreeResource() is
not referenced. Am I doing something wrong ?

-Jaz

-- 

                       (Chasin' the Trane)

| Jack A Zucker                              {uunet}!jaz@icd.ab.com |
| Allen-Bradley Company, Inc.                    or  ICCGCC::ZUCKER |
| 747 Alpha Drive                                                   |
| Highland Hts., OH 44143 Phone(216) 646-4668   FAX: (216) 646-4484 | 

Newsgroups: comp.windows.ms.programmer
From: jaz@icd.ab.com (Jack A. Zucker)
Subject: Free resources
Organization: Allen-Bradley Company, Inc.
Date: Fri, 10 Apr 1992 15:01:00 GMT

Is there a program or sequence of functions to retrieve the amount
of free resources ? I want to make sure my program is releasing
resources correctly.

-Jaz

-- 

                       (Chasin' the Trane)

| Jack A Zucker                              {uunet}!jaz@icd.ab.com |
| Allen-Bradley Company, Inc.                    or  ICCGCC::ZUCKER |
| 747 Alpha Drive                                                   |
| Highland Hts., OH 44143 Phone(216) 646-4668   FAX: (216) 646-4484 |
From: neh@rci.dk (Niels Erik Holm)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Setting BackGround Color of a window
Date: 8 Apr 92 08:36:12 GMT
Organization: RC International, Copenhagen, Denmark

rpj@borland.com (Rich Johns) writes:

>Does anybody out there have a window class in which each instance
>of that class can have a different background color? I just can't believe
>such  a thing can be so hard. I mean, its easy to change the bg for the
>entire class, but how can it be done on an instance basis?

>I've tried SetBkColor(...) and I've tried WM_ERASEBKGND, niether of which
>work. There must be a way to do this. I just can't believe that something
>so obviously useful, is so obscure.

Hi!

I think the SetBkColor applies only to text displayed with TextOut (or
a similar function). I've used the WM_ERASEBKGND message in the following
way:

/*	Somewhere in the initialize section */

	hBrush = CreateSolidBrush( BackGroundColor ); /* RGB value */
	hOldBrush = SelectObject(hDC,hBrush);

/*	In window procedure */

	case WM_ERASEBKGND:
		{
		RECT ClipRct;
		GetClipBox((HDC)wParam,&ClipRct);
		FillRect((HDC)wParam,&ClipRct,hBrush);

		/* Return TRUE because we DID erase the background */

		return((LONG)TRUE);
		}
		break;

Fairly simple, I think.

Best regards

Niels Erik Holm
ICL DATA A/S (RC International)
Copenhagen, Denmark
neh@rci.dk
From: bkph@wheat-chex.ai.mit.edu (Berthold K.P. Horn)
Newsgroups: comp.windows.ms.programmer
Subject: followup on TrueType font weirdness
Date: 17 Apr 92 12:01:24 GMT


OK, so it IS possible to distinguish `text' TT fonts from `snowflake'
(decorative/symbol) TT fonts using EnumFonts. The distinguishing
chracteristic is that non-text fonts have CharSet = 2 (Symbol) and
PitchAndFamily = 2 (Variable Pitch and unknown Family).  
But I don't want to have to do an EnumFont everytime a document calls 
for a font change! 

Type 1 fonts behave much more logically in this respect.  If you ask for a
font by name you GET that font, whether it uses Windows ANSI encoding or
`native' encoding.  (Exception: if the font is not there, you get something
totally bizarre, calculated by the Windows font remapping algorithm ---
which uses the weeghee board algorithm - but that is another story).

With TrueType fonts instead, you have to KNOW in advance whether the font is
decorative/symbol, and set CharSet and PitchAndFamily in the CreateFont call
appropriately.  Otherwise the Windows font mapper gives you something else
AND lies about what its FaceName is, so you can't tell you have been shafted.

For example, if you ask for WingDing, but do not set CharSet=2 and
PicthandFamily=2, you get a text font instead (who knows what).
Yet the FaceName of the font is WingDing!

Conversely, if you ask for say Times New Roman, but DO set CharSet = 2 and
PitchAndfamily = 2 you get some decorative font (a blackletter font in my
case). Again when asked for the FaceName it claims it IS Times New Roman!

So:

(*) Is there a sure way to know that you did NOT get the font you asked for?
(Obviously testing the FaceName does not work).

(*) Is there a sure way to tell, given a fonts Window FaceName, 
whether it is plain vanialla text or `snowflake'?


Berthold K.P. Horn
Cambridge, Massachusetts, USA