HDTenEightyP/NetNews huggingface dataset:
From: "Jeffrey P. Overcash" <p00090@mail.psi.net>
Subject: Automatic data segment exceeds 64K
Organization: Performance Systems Int'l
Date: Thu, 7 Jan 1993 17:18:37 GMT
X-Mailer: PSILink (3.11)

  The header say it all - well almost.  I'm useing Borland C++ and I am 
currently running into this linking error.  Unfortunately, I have a DLL 
that requires a large (32K) stacksize and already only use 1024 for 
heapsize therefore I need to move some of my near data to far.  I've 
tried several different way of doing this (or so I thought), but nothing 
seems to be affecting this problem.  The manual says to use the map file 
to determine the sizes of the componant segments to see which modules 
contribute what to the DGROUP.  I've done this but nowhere can I find 
out how to move a module into another segment.  Any and all help will be 
greatly appriciated.

Jeffrey P. Overcash          | And as I patrol in the valley of the shadow 
  (the Jester)               |   of the Tricolor - I must fear evil
snail mail:                  | For I am but mortal and mortals can only die  
  1700 Whipple Rd            | asking questions, pleading answers from the
  Mt Pleasent, SC 29464      |  nameless, faceless watchers that stalk the 
                             |  carpeted corridors of Whitehall  
e-mail: p00090@mail.psi.com  | Who order descration, mutilation, verbal 
I have no disclaimer all     |  masterbation in thier guarded bureaucratic
opinions are my own - And I'm|  wombs.
proud of them.               |          Fish.
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Printing. How to make 11 pt come out...
Date: 8 Jan 93 18:46:10 GMT
Organization: PE-Nelson

In article <1993Jan8.144922.3697@cis.ohio-state.edu>, guzman@python.cis.ohio-state.edu (jonatan guzman) writes:
|> ...looking like 11 pt regardless of the device onto which you are rendering the
|> text?? I have a program that uses TT fonts for output (due to their scalabi-
|> lity), but I am having to *manually* adjust the font size -when I CreateFont
|> for the DC- depending on the output device (screen, printer).
|> 
|> I am obviously missing something here. What??

Try using the MM_TWIPS mapping mode for your output.  This sets up the DC
so that a logical unit is equal to a twentieth of a point.  You then always
use a font size of 220 (11 * 20) to get an 11 point font regardless of the
device.

The default mapping mode is MM_TEXT where a logical unit is the same as
a device unit (pixel) and, as you've noticed, varies from device to device in
terms of physical size.

Since our application does more graphics then text output we pretty much
stick with MM_ANISOTROPIC mapping and have our own conversion routines to
convert printer points into logical units.  This is probably much the same
as you are doing with your manually adjusted font sizes.  There's nothing
wrong with doing it this way IMO.


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Graphics cut/copy/paste 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Fri, 8 Jan 1993 19:24:59 +0000

In article <1993Jan07.200849.9892@eng.umd.edu> equine@eng.umd.edu writes:

>
>I am looking for sample code that allows the user to grab a portion of
>the screen (not window) and copy it to the clipboard or possibly
>another application.  I know that there are commercial software
>packages that contain this functionality, but we would then need to 
>worry about licensing agreements, etc. when distributing our application. 
>
>If anyone knows the proper commands/functions to use, has written such
>a function, or knows of a reference book that contains this
>information, please let me know.
>
>Thanks in advance,
>Melinda
>

That's pretty simple.  Just:

1.  Get a DC for the screen using "GetDesktopWindow" followed by "GetDC".
2.  Let the user select the area of the screen by whatever means you
    want.
3.  Use "CreateCompatibleDC" to create a memory DC compatible with the
    screen DC.
4.  Use "CreateCompatibleBitmap" to create a bitmap of the correct
    with and height.
5.  Use "BitBlt" to copy the image from the screen to the bitmap.
6.  Destroy the memory DC.
7.  Put the bitmap handle in the clipboard.

Voila!

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: janssen@sun032.research.ptt.nl (Richard Janssen)
Subject: Re: help gwl_wndproc
Summary: Doing a "subclass" for standard controls.
Organization: PTT Research, Groningen, the Netherlands
Distribution: comp
Date: Mon, 4 Jan 1993 13:41:32 GMT


Here's the real tough cookie in subclassing:

Can you do the same for standard Windows controls??
And if so, please tell me?? 

It says in the Windows SDK docs that you cannot use
GWC_WNDPROC with SetWindowLong for standard controls.
However, usage of GWL_WNDPROC is not mentioned!!

Still, doing a GetWindowLong & SetWindowLong for a standard
control gives a General Protection Fault when calling the
'old' window procedure through CallWindowProc.

Does anybody have any clues for solving this problem??

Richard Janssen
R.H.P.Janssen@research.ptt.nl


Newsgroups: comp.os.ms-windows.programmer.misc
From: Antti Juustila <antti@rieska.oulu.fi>
Subject: Re: How do you get enviroment variables?
Organization: Dept. of Information Processing Science, University of Oulu
     Finland
X-Useragent: Nuntius v1.1
Date: Mon, 4 Jan 1993 10:02:22 GMT

In article <1993Jan3.194240.11140@exucom.com> Bob Willer, bobw@exucom.com
writes:
>How do you get the enviroment variables that are used by the system
>with the SET command ie. in the autoexec.bat file ?
>
>Bob Willer

I think it was getenv. Use putenv to change the environment variable. I
remember that there was some discussion somewhere, that the putenv does
not change the DOS environment, only the copy of it which WINDOWS uses.
I'm not sure about this, though.

Antti
?7



x
U
------------------------------------------------------------------------
Antti Juustila                            |  eMail: antti@rieska.oulu.fi
Dept. of Information Processing Science   |  Univ.fax:  +358-81-553 1890
University of Oulu                        |__Phone:_+358-81-553_1927____
Linnanmaa                                 |    This mail is printed on
SF-90570 Oulu, Finland, Europe____________|____100% recycled electrons__
u
Enter ~:
complex to include; merge terminated.
include; merge terminated.
B??'	/	C	?

8<ft

g
ik

j


















(?????FG(?

-:LaserWriter

(
From: c2s4027@tamsun.tamu.edu (Cedric Sims)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: BC++ "BorDlg" problem
Date: 12 Jan 1993 07:27:22 -0600
Organization: Texas A&M University, College Station, TX
Distribution: na
NNTP-Posting-Host: tamsun.tamu.edu

In article <9JAN199301293286@vms1.iscs.nus.sg> nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps) writes:
<In article <1idetiINNssf@uwm.edu>, ajgd@miller.cs.uwm.edu (Andrew J G Delzer) writes...
<>     I'm using Borland C++ 3.1 and have the following problem
<>utilizing the Resource Workshops BWCC "Borland Window Custom
<>Controls.
<>     When I create a dialog box using the BWCC class "BorDlg"
<>and link it with "brc <filename>".  Then when I run the program
<>and execute the dialog box, it is not displayed unless I have 
<>Borland C++ or Resource Workshop running or have LOADBWCC.EXE 
<>loaded.  If any of these three are running the dialog box is
<>displayed, but if none of them are running the box is not 
<>displayed.
<> 
<>     Am I missing some basic #include or what?  
<>     Any Ideas or suggestions would be greatly appreciated.
<> 
<
<	you need to add BWCC.LIB to your project.
<	this problem had me scratching my head for a few days,
<	till I read the solution in BorlandC++ : A Developer's Guide.
<
<
<>     Andrew J.G. Delzer
<>     AJGD@Miller.CS.UWM.EDU

  You need to link the following libraries :

       IMPORT.LIB
       BWCC.LIB

  They must be linked in that order! Very important.

Good luck,
Cedrico.
-------------------------------------------------------------------
 Cedric J. Sims                               Texas A&M University
                                         Computing Services Center
 cedrics@tamu.edu                          (SELL)  Room 216 Teague
 +1 409 862 4104                    College Station, Tx 77843-3142
-------------------------------------------------------------------


Xref: sparky comp.os.ms-windows.programmer.misc:4654 comp.os.ms-windows.programmer.tools:1900
From: stefan@olson.acme.gen.nz (Stefan Olson)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
Subject: Re: MFC and Borland IDE
Date: Wed, 6 Jan 93 19:32:22 +1200

In <1992Dec29.164246.22111@netcom.com> garylang@netcom.com (Gary Lang) writes:
>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.

I MUCH prefer the MFC way of doing things over OWL.  With OWL you have
to use API calls for DCs!!  If I could afford it I would buy and go 
with MFC...  I also care about the size of my applications, becuase
I know if I am paying to download apps, I don't download large apps...

...Stefan

-- 
------------------------------------------------------------------------
   Stefan Olson                     Mail: stefan@olson.acme.gen.nz
   Kindness in giving creates love.
------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: stu@Tandem.COM (Stuart Phillips)
Subject: Getting rid of Help Engine on WM_SYSCOMMAND ?! 
Reply-To: stu@Tandem.COM
Organization: Tandem Computers, Cupertino - USA
Date: Thu, 7 Jan 1993 16:22:42 GMT

I have an application with associated help.  When the user exits
the application via the File|Exit command, I call WinHelp() with
HELP_QUIT in order to cause the help engine to close its window
and exit.  This works just fine.

However, if the use exits via the close menu item on the windows
system menu, I can't get rid of the darn help engine!

I've tried processing the WM_SYSCOMMAND message and looking for
the SC_CLOSE event; I process it just fine, call WinHelp() with
HELP_QUIT but the help engine stays around!

I started trying commercial window applications and have found
that all Microsoft applications exhibit the same behavior I'm
experiencing.  Borland applications such as the Resource
Workshop and the IDE however, correctly dispose of the help
engine no matter how they are exited!

Anyone have the magic cookie recipe to get rid of help after
a System Menu close ?????

Thanks!
Stu
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: how narrow can I make a window?
Organization: Energy, Mines, and Resources, Ottawa
Date: Mon, 11 Jan 1993 00:11:33 GMT

In article <1993Jan10.064047.3230@emr1.emr.ca> jagrant@emr1.emr.ca (John Grant) writes:
[...stuff deleted...]

>Anyway, Windows won't let me make it narrows than some minimum width.
>Is there another combination of WS_ styles/window types that will let me
>make this window more narrow than the minimum?  Is it stated anywhere
>in the docs what exactly this minimum is and why it exists?  I can see
>that it shouldn't be smaller than the width of the system menu+
>min box+max box (if present), but since I don't have a caption, minimize
>box or maximize box, it should allow me to make it as narrow as the
>system menu box.

	One of the advantages posting questions on the weekend
	is that that you get a chance to answer them yourself before
	too many people see them on Monday.

	Yes, I have the answer to my own question.  Just trap
	WM_GETMINMAXINFO and set the min tracking width.  So
	if I want to allow the window to be made narrower, but
	no larger than 20:
		case WM_GETMINMAXINFO:	{
					MINMAXINFO *mmi;
					lparam=(MINMAXINFO *)lparam;
					mmi->ptMinTrackSize.x=20;
					}
					break;
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: printing an entire Windows help file
Organization: Energy, Mines, and Resources, Ottawa
Date: Sun, 3 Jan 1993 23:08:50 GMT

Now that I have this really nice on-line help file for my app, my
users are bugging me for hard-copy.  I tell them that the idea is
to have on-line help and that they can print whatever topic they
are viewing, but that's not good enough.  They *want* the whole
thing printed out.

I could print it out from Word for them, but isn't there an easy
way for them to print the whole xxx.hlp file, short of selecting
and printing each topic.  Even so, you'll never know if you
printed it all.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc
From: pdaugher@mcl.bdm.com (Pat Daugherty)
Subject: Combo boxes with multiple selections????
Date: Fri, 08 Jan 93 21:34:55 GMT
Organization: BDM International, Inc.
Distribution: na

Does anyone have any ideas to allow multiple selections in a combo
box?

Please email or post.
Thanks,

--
*	pdaugher@bdmserver.mcl.bdm.com               *
*	PAT DAUGHERTY   Go Redskins                  *
*	"Hey Man I Am Cool, I Am The Breeze"         *
From: bkph@kauai.ai.mit.edu (Berthold K.P. Horn)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: avoiding sharing violations
Date: 4 Jan 1993 13:09:13 GMT
Organization: MIT Artificial Intelligence Lab
NNTP-Posting-Host: kauai.ai.mit.edu


I have a previewer application that checks every few seconds whether
the file it is displaying has changed.  If it finds it has changed
it goes ahead and repaints the screen.  Some other application creates
(compiles) the file.  

The user typically will use an editor in one Windows to edit the source
file, then run an application in another Window that `compiles' it, while
viewing the result in a third Window. I want the viewing part to be
automatically updated when the file is changed, (without explicit 
communication between the `compiler' and the `viewer').

Things work OK, if I do NOT have SHARE.EXE installed.  If I do, I start to
get sharing violations.  I've tried several combinations of flags for
OpenFile without any luck.  I thought SHARE was supposed to help
applications that want to get at the same file!  

So my question is, how can I determnine whether some other application has a
particular file open so I don't try to open it and get slapped across the
wrist?  What combination of flags in OpenFile gives me some code that
tells me the file is in use (or hangs me up until it it not), WITHOUT
giving me these unpleasant `sharing violations'?

Thanks.

Berthold K.P. Horn
Cambridge, Massachusetts, USA
Newsgroups: comp.os.ms-windows.programmer.misc
From: jeff@tct.com (Jeff Witzer)
Subject: Generating Simple Sounds...
Date: Sun, 10 Jan 1993 22:33:45 GMT
Organization: TC Telemanagement, Clearwater, FL

I'm trying to generate a simple tone (at least for now) to alert the user
that something important is happening.  The only facility I've found is the
MessageBeep () function which is always supposed to be passed a 0 and 
generates the familiar (but meek) "you clicked where you're not supposed to
click" "bip".

I would like to generate a REAL tone to get the user's attention.

Eventually, I would like to use a more realistic bell sound and use the sound
capabilities of Windows.

Please, if you know anything about Windows and sound, respond or email ASAP.

Thanks,

jeff@tct.com

Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: a722756@roper.mc.ti.com (W. Donald Rolph)
Subject: Re: Opinions on Microsoft QuickC for Windows?
Originator: a722756@roper.mc.ti.com
Organization: Texas Instruments / Attleboro Mass / USA
Distribution: na
Date: Mon, 4 Jan 1993 20:47:11 GMT


In article <1992Dec30.191610.3685@pony.Ingres.COM>, bonobo@Ingres.COM (David Victor) writes:
|> Has anyone out there had much experience with QuickC for Windows?  I was
|> just wondering if I could get an opinion as to its usefulness.  Are there
|> other CASE tools which blow away QuickCase:W?
|> 
|> Thanks!
|> 
|> -David Victor

For what its worth,  I like it since it provides a rudimentary but effective
integrated environment.  I just wish they would release an update of it from the
original 1.0.  (I particularly like the debuggin environment which seems to do a
good job of protecting you from  protection faults).
-- 

Regards.
 
Don Rolph  a722756@pan.mc.ti.com WD3 MS10-13 (508)-699-1263
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: LB_ADDSTRING Redrawing 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Sat, 9 Jan 1993 02:27:32 +0000

In article <1993Jan9.011837.22185@delfin.com> dan@delfin.com writes:

>I have created an owner draw listbox.  Is there any way to prevent
>the listbox from redrawing all visible items when it scrolls one line 
>after receiving an LB_ADDSTRING message?  Without the LB_ADDSTRING,
>scrolling only redraws the newly visible item, doing a quick bitmap
>shift of the other items.
>
>I have tried everything I could think of.  At this point, it seems
>to me that there is no way to avoid it.
>
>

Send the listbox a WM_SETREDRAW, FALSE message.  Add all the strings
except the last one.  Send WM_SETREDRAW, TRUE.  Add the last string.
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: paulb@harlqn.co.uk (Paul Butcher)
Subject: Re: Running DOS app with command line options
Organization: Harlequin Ltd, Cambridge, UK
Date: Tue, 12 Jan 1993 10:02:40 GMT

In article <36@hymir.mlb.dmt.csiro.au> gsl@mlb.dmt.csiro.au (Geoff Lamb) writes:
>
>I would like make my windows program run the following DOS command :
>
>	rsh %1 "sendmail %2 %3 %4" < %5
>
>I have created a batch file with this command and a pif file to run it.
>
>My problem is that I can get the thing to run using WinExec() with no command
>line options (the %1's ) but I can't see how I can get the command options in.
>I have tried the LoadModule() function but it apparently only likes true Windows
>programms and not pif's.
>
The function you want is ShellExecute - it can be found in the
shell.dll library shipped with version 3.1.

PaulB->msgCount++
Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Use of STRICT def. in windows.h
Organization: Vonnegut Tent Rentals, Inc.
X-Newsreader: TIN [version 1.1 PL7]
Distribution: comp
Date: Wed, 6 Jan 93 19:05:26 GMT

Sarir Khamsi (khamsi@ll.mit.edu) wrote:
> Yo,
> 
> Does anyone know where I can find information on what the meaning of
> the
> 
> #ifdef STRICT
> 
> statements in the windows.h file is? Does this have anything to do w/
> NT, backward compatibility or what? Thanks in advance.
> 
Its a way of forcing type checking in types that are different in name but
not in fact.  For instance a HPALETTE is a HANDLE which is a WORD.  
Therefore you can pass a HPALETTE to a WORD parameter, or any other 
compatible pseudo-type (pseudo- because the normal definition of HPALETTE
is just via #define HPALETTE HANDLE or some such).

When STRICT is in force the type definitions are carefully crafted to
generate compiler errors if you use the names in the wrong places.  This
is done usually by something like: 

#define HPALETTE struct tagHP {uint unused}

Look in any of the .h files for examples like this.

-- 
||------------------------------------------------------------------------ 
||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co.  Rochester, NY | 

Xref: sparky comp.os.ms-windows.programmer.misc:4737 comp.lang.pascal:7960
From: donh@shakala.com (Don Hackler)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.lang.pascal
Subject: Re: DLL Procedure/Function Calls ???
Date: Fri, 08 Jan 93 00:12:06 PST
Organization: Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289

dmurdoch@mast.queensu.ca (Duncan Murdoch) writes:

> In article <1993Jan7.184304.3453@scf.loral.com> andres@scf16.scf.loral.com (J
> 
> >Target Compiler: BP7
> >Goal: Generate Windows Program
> 
> >Problem/puzzle:
> 
> >        Windows, likewise vendors and programmers, often supply .DLLs
> >for use by others. Is there a convient way to find out what the calling
> >convention is to utilize the procedures/functions contained ?  Is there
> >a way to get like a "directory" listing of available calls ? 
> 
> There's a list of external entry points in the .DLL, but no information 
> there about calling conventions.  You could use a disassembler to try to 
> figure it out (e.g. my Dumpprog, on garbo.uwasa.fi as 
> /pc/turbopas/dmpprg20.zip) by looking at the code following the entry points,
> but it's not easy.  
> 

Or get Undocumented Windows by Andrew Shulman...  which
includes the utilities to dump the DLL entry points, and lots
of other good stuff...

- don

------------------------------------------------------------------
Don Hackler  - donh@shakala.com 
Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289
From: pk64380@kaarne.cs.tut.fi (Kuusisto Pasi Petri,,,SIG,64380)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Microsoft ctl3d library
Date: 7 Jan 1993 13:07:26 GMT
Organization: Technical University of Tampere, Dep. of Computer Science ,Finland 
Distribution: inet
Reply-To: pk64380@kaarne.cs.tut.fi
NNTP-Posting-Host: kaarne.cs.tut.fi
Originator: pk64380@kaarne.cs.tut.fi

From article <1ih2aqINNhno@sauna.cs.hut.fi>, by salmeniu@robocop.cs.hut.fi (Jaakko J Salmenius):
> In article <jtaylor.12.725136642@dseg.ti.com> jtaylor@dseg.ti.com (Jeff Taylor) writes:
>>	Can these by used by Borland C++ programmers? Are they compatible, 
>>or only an extension of exsisting Microsoft tools?
> 
> I didn't have any problems with BC++ 3.1. Actually I didn't have to give
> a special hook function to OpenFileDialog function. The automatic subclassing
> did all the work.
   Did you also get a 3-D directory listbox? When I tried (with MSC 6.0)
   all other controls but the directory lbox were 3D. I guess explicit
   subclassing in the hookproc will take care of that too (didn't yet try).

> 	Jaakko
-zi