HDTenEightyP/NetNews huggingface dataset:
From: jfh@netcom.com (Jack Hamilton)
Subject: Capturing DOS output?
Date: Thu, 23 Jul 92 04:40:51 GMT
Organization: Netcom - Online Communication Services (408 241-9760 guest)

I'd like to run a DOS application from inside a Windows application, and
have the output from the DOS program appear in a window controlled by my
Windows program.

I looked at WinExec, but there's nothing obvious in the documentation.  Is
there some other way to do it?

By the way, I'd like the window to scroll as the DOS program creates more
output (which will be to stdout), so redirecting the output to a file and
then displaying the file won't do what I want. 

While I'm asking for the impossible, can I capture stderr separately? 

-- 

-----------------------------------------------------------------------
Jack Hamilton   jfh@netcom.com   P. O. Box 281107   SF, CA   94128-1107
Newsgroups: comp.os.ms-windows.programmer.misc
From: turnbull@ces.cwru.edu (John Turnbull)
Subject: Re: Is it really this bad, or is it just me
Organization: Case Western Reserve University
Date: Tue, 28 Jul 92 13:45:22 GMT

In article <1992Jul28.090409.1@cortex> mboucher@cortex.prospect.com (Mike Boucher) writes:
>Hey there,
>
>I've been having some screwy scroll bar problems as well, and Microsoft's
>Codeview does the same thing with multiple messages from one click.  It's
>amazingly aggrivating, but, unlike Borland, (flame on) Microsoft doesn't even
>have a phone number to call to find out obout S**T like this (flame off).
>
>It just might be in windows instead of the debugger.
>

	I think you'll find the problem is that windows never gets a mouse
up event, so it thinks you're holding down the mouse on the scroll down. I.e.
pressing the mouse button generates the linedown, and you then break, so 
windows never see you releasing the mouse button.

John

Newsgroups: comp.os.ms-windows.programmer.misc
From:  dema@metal.dnepropetrovsk.ua (D.V.Uzhakov)
Subject: Re:[HELP] documentation __AnIncr
Reply-To: dema%metal.dnepropetrovsk.ua@ussr.eu.net
Organization: Dneprometal
Date: Tue, 28 Jul 92 16:09:57 -0500 
Keywords: __AnIncr, __AhShift

> Also, from reading Petzold, I understand that if I have allocated a
> very large block using GlobalAlloc() (>64K bytes), then I cannot use a
> huge pointer and step from byte 0xffff to 0x10000 by simply adding 1.
> There is some magic about protected mode and adding 8 to the segment
> register that is not clear.  Any ideas?

???????????????????????????????????????????????????????????????????????????
 __ahIncr  = 8          ? These constants are defined in kernel. You can use
 __ahShift = 3 = log  8 ? them to address next selectors in a large block of
                    2   ? memory ( > 64 KB ) .They are added to the current
                        ? selector.
???????????????????????????????????????????????????????????????????????????
                                Example for TPW :
uses WinCrt   ,
     WinTypes ,
     WinProcs ;
const LONGBLOCK = 100000 ;
type buf  = array [ 0 .. 0 ] of BYTE ;
     pbuf = ^ buf ;
var  hMem ,
     wCount    : WORD ;
     pMem      : pbuf ;
begin
        hMem := GlobalAlloc ( GMEM_FIXED , LONGBLOCK) ;
        pMem := GlobalLock  ( hMem ) ;

        for wCount := 0 to $FFFF
          do pMem ^ [ wCount ] := wCount mod $FF ;

        hMem := hMem + 8 ; (* __AHINCR *)
        pMem := GlobalLock ( hMem ) ;

        for wCount := 0 to LONGBLOCK-$FFFF
          do pMem ^ [ wCount ] := wCount mod $FF ;

        GlobalUnLock ( hMem ) ;
        GlobalFree   ( hMem ) ;
        hMem := hMem - 8 ; (* __AHINCR *)
        GlobalUnLock ( hMem ) ;
        GlobalFree   ( hMem ) ;
end .

           Cygankov Sergey        Dnepropetrovsk State University
           Uzhakov Dementiy       UKRAINE ( 7-0562 ) -39-12-85
                                                     -26-17-51
From: pluto@cs.ucsd.edu (Mark Plutowksi)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Icon skeletonizes, but otherwise is blank!!
Date: 31 Jul 92 11:44:53 GMT

Anyone?  Anyone?  I've tried free tech-support, and
even the 1-900 line to no avail.

Here's the situation:  I'm using Borland C++ 3.1.  I slap
together my dialog boxes with Resource Workshop, throw
a couple icons into the resource file, and generate the
windows code using Protogen.  The main window of my app
is a descendant of TDialog (all the examples I've seen
differ in this respect: their main windows were all TWindow
descendants.)  I refine GetWindowClass to fill in the
registration attribute hIcon using LoadIcon().  

When the app is iconified, the icon is a blank square.
BUT!! When the icon is clicked & dragged, it skeletonizes
correctly.  Otherwise, the icon appears normally elsewhere.

Anybody have the same experience?????  The high-priced
1-900 "guru" said he had heard about it, but it turns out
that I'm already doing everything that he said was needed to
be done to correct it.   I've examined the examples closely,
but can see no difference, save for the fact that none of the
examples iconify a main window that is a descendant of TDialog.

HELP!!

= Mark
From: Robert_Salesas@mindlink.bc.ca (Robert Salesas)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Combo box bug?
Date: 27 Jul 92 20:31:26 GMT
Organization: MIND LINK! - British Columbia, Canada
Distribution: world

> Mika Iisakkila writes:
> 
> Msg-ID: <IISAKKIL.92Jul27130855@lesti.hut.fi>
> Posted: 27 Jul 92 13:08:55
> 
> Org.  : Helsinki University of Technology
> 
> 
> I've noticed a peculiar behaviour in Win 3.1 combo boxes. I have an
> application which has a dialog box as the main window, and it contains
> a combo box control. If I click the combo box open and try to move the
> main window, the drop-down part of the combo box won't move! It works
> still fine, stays above the main window etc, but looks really weird.
> The Windows applets seem to avoid this, because the combo boxes always
> close when you click on the window caption. Have I done something
> wrong or is this a Windows bug? Should I capture WM_NCLBUTTONDOWN and
> close the combo box before allowing the window to move? Seems stupid.
> 
> I'm using Windows 3.1 and MSC 7.00.
> 
> --
> Segmented Memory Helps Structure Software



This problem exists in both 3.0 and 3.1.  It has to do with the fact that the
drop down list belongs to the desktop, not the window.  Anyway, to fix it just
trap the wm_NCLButtonDown and the wm_ParentNotify (if you have child windows
that cover parts of the parent all the time).

Rob

--
\------------------------------------------------------------------------/
\ Robert Salesas             | Internet: Robert_Salesas@mindlink.bc.ca   /
\ Eschalon Development Inc.  | CIS:    76625,1320  Tel/Fax: 604-520-1543 /
\------------------------------------------------------------------------/

Newsgroups: comp.os.ms-windows.programmer.misc
From: mboucher@cortex.prospect.com (Mike Boucher)
Subject: RE: Is it really this bad, or is it just me
Organization: Cortex Corporation, Waltham, MA, USA
Date: Tue, 28 Jul 1992 14:04:09 GMT
X-Posted-From: cortex.prospect.com
X-Posted-Through: sol.ctr.columbia.edu

Hey there,

I've been having some screwy scroll bar problems as well, and Microsoft's
Codeview does the same thing with multiple messages from one click.  It's
amazingly aggrivating, but, unlike Borland, (flame on) Microsoft doesn't even
have a phone number to call to find out obout S**T like this (flame off).

It just might be in windows instead of the debugger.

Good luck.

Mike
-- 
Mike Boucher			mboucher@cortex.prospect.com
Cortex Corp			"Don't take life too seriously, you'll never
Waltham, MA, USA		 get out of it alive!"
Newsgroups: comp.os.ms-windows.programmer.misc
From: jfh@netcom.com (Jack Hamilton)
Subject: Re: Visual Basic & Helv Font?
Date: Wed, 22 Jul 92 04:42:06 GMT
Organization: Netcom - Online Communication Services (408 241-9760 guest)

In article <1992Jul20.031752.23132@microsoft.com> joero@microsoft.com (Joe 
Robison) writes:
>
>On Windows 3.1 (which I assume you are running since you have Arial) the 
>default is MS Sans.

I have the Ariel fonts, and I have Windows 3.0.  I think it came with Word
for Windows 2.0 or Excel 4.0.

>MS Sans is exactly the same as Helv, it just has a 
>different name (for good reasons that aren't worth going into here).  

Copyright or trademark on the name? 

>Windows converts all requests for Helv into MS Sans, but only provides MS 
>Sans (not Helv) when asked to enumerate all the fonts (which is why you can't 
>find Helv in the font list).

Helv does show up on my font list in 3.0.  I've noticed that when I
enumerate the fonts I get duplicate names.  Why is this, and will it still
happen in 3.1? 

-- 

-----------------------------------------------------------------------
Jack Hamilton   jfh@netcom.com   P. O. Box 281107   SF, CA   94128-1107
From: fuller@aedc-vax.af.mil
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Note about Zortech C++ DLL bug
Date: 29 Jul 92 18:28:26 GMT
Organization: Arnold Engineering Development Center

In article <187a8fa6@p1.f36.n245.z2.fidonet.org>, Thomas_Hornschuh@softstream.fido.de (Thomas Hornschuh) writes:
> f > The Zortech compiler version 3.0 release 4 has problems creating DLLs that
> f > can be imported dynamically at Run-time.  This is important because
> f > this is the way that Visual Basic supports DLL calls.  I have been working
> 
> If you call LoadLibary self, you can call it just twice. The first time the DLL 
> ist loaded, but an invalid handle is returned (don't know why!). The second 
> time you get an valid handle. The Refcount is 2, so you need two FreeLibrary 
> calls (both with the handle from the second call).
> 
> Unfortunatly in VB you can't control the way the DLL is loaded, so this 
> workaround does not fit.
> 
> But the LoadLibrary of Zortech generated DLL's always returns a valid handle 
> when the DLL is in already loaded, either implicitly or with another 
> LoadLibrary. So you either call LoadLibrary from your Visual Basic Code before 
> VB does it, or if this is impossible, write a small loader program consisting 
> only of a LoadLibrary and waiting for a WM_QUIT Message.

I played around with the compiler some more and found out that the problem is
that Zortech creates DLLs that have a problem with run-time loading if there
are lower case letters in the function names.  If you name all of the functions
that you want to call with upper case letters, it works fine.  I told a guy
at support about the problem and what my solution was.  They were unaware of
the problem.  The fix will be out "real soon now". fine. 
Newsgroups: comp.os.ms-windows.programmer.misc
From: henryg@kullmar.se (Henry Gessau)
Subject: Virtual timer ticks into TSR loaded before Windows
Summary: Some versions of Windows 3.0 have a timer bug!
Keywords: TSR Windows enhanced timer virtual
Organization: Firma Bo Kullmar Datakonsult
Date: Fri, 31 Jul 1992 09:27:32 GMT



 
I have a TSR that hooks to the timer interrupt (INT 08, IRQ 0), among
others. It uses this interrupt for various timings.
 
I usually load my TSR and then start Windows, which runs in enhanced
mode on my machine. This means that my TSR exists in every DOS window
that I open. It works fine on all computers that I have tested,
except one. All the ones where it worked OK ran either Windows 3.1
(English or Swedish versions) or a Swedish version of Windows 3.0.
 
However, when I ran it under an English (USA) version of Windows 3.0,
something went wrong. It turned out that this particular version
simulates one timer interrupt into my TSR for every virtual machine
that exists. Surely this is a bug (why don't later versions have this
behaviour)?
 
If I know that some particular version of Windows has this horrible
symptom then I can fix it by checking the ID of the current VM for
every tick (yuk, I know).
 
BUT, how do I know whether the version of Windows that is running has
this bug?
Has anyone else had a problem with this?

--
Henry Gessau          henryg@kullmar.se
-- 
Henry Gessau          henryg@kullmar.se
From: ramuta@hpcupt3.cup.hp.com (John Ramuta)
Date: Tue, 21 Jul 1992 02:32:26 GMT
Subject: In search of better edit control
Organization: Hewlett Packard, Cupertino
Newsgroups: comp.os.ms-windows.programmer.misc

I'm looking for an edit control that doesn't suffer from the size limitations
of the standard Windows edit control.  Can anyone point me at either
a shareware implementation or one that doesn't carry massive royalties
with it?

Thanks in advance!

John Ramuta
Hewlett-Packard
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
From: wilcox@swarm.wustl.edu (Don Wilcox)
Subject: Re: hiding scrollbars when not needed
Organization: Washington University in St. Louis, MO
Date: Thu, 23 Jul 1992 14:50:55 GMT

In article <620@irst.UUCP> dz@irst.UUCP (Massimo Dal Zotto) writes:
>
>I would like to know if it's possible to hide the scrollbars in a window,
>created with the style attributes WS_VSCROLL and WS_HSCROLL, when the 
>entire document fits in the window so that scrolling is not needed.
>I know that I could create the scrollbar controls explicitly, but this
>requires also positioning and controlling them, so I would prefer to use
>the standard window scrollbars if possible.
>Thanks in advance.

This is possible, simply set the ranges on the scroll bar to have 0 size.  One
big caveat -- this changes the size of the client area of the window, which
will result in more WM_SIZE messages, which is probably what to responded to
in the first place.  I managed to get infinite loops when the user made the
window just big enough to hold the entire contents...with scroll bars the
window isn't big enough, so I check to see if I can remove them; I can and
do so, get another WM_SIZE message (one for each scroll bar, the first of
which doesn't realize the window is big enough, so it puts the scroll bar back
in, oops more WM_SIZE messages).  I solved this by not doing scroll bar checking

when processing a message resulting from scroll bar removal.  It works, and I'm
happy.

If there is any interest, I could probably scrounge up the code. My app displays
pictures in a window, so the image size never changes.

Don
>
>Massimo  Dal Zotto
>
>+-----------------------------------------------------------------------------+
>|   Massimo  Dal Zotto				dz@irst.it		      |
>|   I.R.S.T.					dz@irst.uucp		      |
>|   Via alla cascata, Loc. Pante' di Povo	tel: +39+461+814444	      |
>|   38100 Trento - ITALY			fax: +39+461+814340	      |
>+-----------------------------------------------------------------------------+


-- 
Don Wilcox                         | "For I am not ashamed of the Gospel of
Washington University in St. Louis |   Christ, for it is the power of salvation
email: wilcox@swarm.wustl.edu      |   to all who believe."
From: kb@jet.uk (Kenneth Blackler)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: API to access network resources
Keywords: api, network resource
Date: 29 Jul 92 10:39:47 GMT
Organization: Joint European Torus

In <1992Jul27.173133.2369@nic.csu.net> hliao@zeus.calstatela.edu (Henry Liao) writes:

>Excuse me, if this turns out to be another FAQ.

>What Windows API/functions do you use to 'link/mount' a shared printer/
>directory from the network?  WM_NET*??

>Any pointers/hints would be greatly appreciated.

>-Henry Liao
>California State University, Los Angeles
>Networks & Distributed Systems Group
>VOICE:	(213) 343-4537, 343-4530	hliao@calstatela.edu
>FAX:	(213) 343-4575			hliao@csula.bitnet
>#include <std.disclaimer.h>

NetBios! See the latest Microsoft Systems Journal for an article
on this.
-- 
 ______________________________________   ____________   _____________
|Ken Blackler kb@jet.uk (+44)235 464743| | __________ | |   -Fusion-   |
|JET Joint Undertaking, Abingdon       | |   | |_ |   | |Energy for the|
|Oxfordshire, England. OX14 3EA        | | \_/ |_ |   | | (far) future |
- Disclaimer: Please note that the above is a personal view and should not 
  be construed as an official comment from the JET project.
From: Steve_Goyette@mindlink.bc.ca (Steve Goyette)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: FLAME: BORLAND TECHNICAL SUPPORT
Date: 30 Jul 92 04:55:56 GMT
Organization: MIND LINK! - British Columbia, Canada
Distribution: world

Rather SMUG!!!

        I think that kind of atitude is exactly what smegs most people off
about tech support.  Until companies and people start doing there JOBS withot
the holier that thou atitude, people are going to get p#ssed off!!!!!  If I
found a person like you working at Microsoft, I would buy from Borland or vice
versa.  Tech support is what got Borland started, it's a sad state of affairs
when the Tech Support is not very supportive!!!
Organization: SAS Institute Inc.
Date: Wednesday, 22 Jul 1992 07:40:05 EDT
From: <SASTPH@vm.sas.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Fonts and Buttons.

In article <Broxun.53y@undergrad.math.waterloo.edu>,
hrook@descartes.waterloo.edu (Harvey Rook) says:
>Question 2: Is their an easy way to get a bitmap to appear on a button?
>I realize I could just make my button an owner draw button and display things
>manually, but I'd like to know if there is some obscure paramater with
>some strange function that allows me to do this easily.

Sorry to be the bearer of bad news, but you're going to have to use
ownerdraw buttons.  There is no obscure parameter/strange trick in this
case.
Organization: Bar-Ilan University Computing Center, Israel
Date: Wed, 29 Jul 1992 11:28:59 IST
From: <R70007@BARILVM.BITNET>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject:    GetTextExtent vs GetTextExtentPoint?

Hello,

   I would like to know the following:

a) Which one works better with TTF?

b) Is ...Point more accurate ?

c) Are there any other differences?


         Many, many thanks ...       Ilan
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Fonts question
From: Alex Vinogradov <M00BC@CUNYVM.BITNET>
Date: Friday, 24 Jul 1992 21:07:33 EDT
Organization: City University of New York/ University Computer Center

May be someone would be able to help me with the following problem (Microsoft
technical support couldn't):

My application which uses the default SYSTEM font needs to create a dialog
box which has to use MS Sans Serif font.  I specified Suns Serif in the .RC
file and it worked fine for all predefined controls in the dialog box.  The
problems began when I had to add a custom control to the dialog box.  I was
hoping that if I would GetDC (hDlg), where hDlg is the handle to the dialog
box window, I would get a device context with the Sans Serif font in it, but
it wasn't the case: my device context had the default SYSTEM font in it.  I
tried many different things, and the only one which appeared to work was
using WM_GETFONT / WM_SETFONT message handling (and receiving hFont in
wParam).  The problem with it though is that it gives me Sans Serif when I
am converting hFont to logical font by using GetObject (), but when I am trying
to SelectObject (hdc, hFont) and than GetTextMetrics (hdc, &tm), my tm
structure still gets the SYSTEM font in it.

Did anyone had this problem ?  Did anyone found _any_ way to retreive the
metrics of a font used by a dialog box ?

Any info is greatly appreciated.  Please reply via e-mail only to one of the
following accounts:
          m00bc@cunyvm.cuny.edu
          alexv@bklyn.bitnet
          alexv%bklyn@cunyvm.cuny.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: jchoi@nyx.cs.du.edu (jaeseon Choi)
Subject: [Q] Brush larger than 8x8 possible with CreatePatternBrush() ?
Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
Date: Wed, 22 Jul 92 16:27:40 GMT


Hi there!

I have something to ask.  I am trying to use a 16x16 mono bitmap image 
as a pattern brush to fill some polygons. But, somehow Windows seems
to use only a 8x8 part of it as a fill pattern.

I created a bitmap by 

        hBitmap = CreateBitmap(16, 16, 1, 1,  (LPSTR)bits);

- 'bits '  is a 32 byte long array of characters containing the pattern.

And then, with this bitmap Created a brush by

        hBr = CreatePatternBrush(hBitmap);

I selected this brush into a DC and drew something (rectangles,.....).

Now I see only upperleft quad of my 16x16 pattern is used in the pattern
filling the drawings.

What's wrong here? I couldn't find anything in the documents that implies 
any upper limit restriction for brush size.

Anybody please help! ~ ~ ~ please

jchoi.                          Contact point : jschoi@eve.kaist.ac.kr or
                                seodu@sorak.kaist.ac.kr
From: bce@sactoh0.sac.ca.us (Byron C. Ellis)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Button Bars
Summary: How do you make those button bars
Keywords: Borland 3.1
Date: 29 Jul 92 19:25:35 GMT
Organization: Sacramento Public Access Unix

Lately, I've been seeing a lot of programs that use button bars, in
Windows.. And, I was wondering if any has any code (preferably Borland C
++ code) for making the bars... Or just tell me how it's done...
-- 
Flying (v) : The art or knack of throwing : Byron C. Ellis
yourself at the ground and missing        : Internet: bce@sactoh0.SAC.CA.US
-The more than complete Hitchikers Guide  :
 to the Galaxy trilogy                    :
Newsgroups: comp.os.ms-windows.programmer.misc
From: vcurley@zeus.calpoly.edu (Vince Curley)
Subject: What functions am I calling?
Keywords: debug functions
Organization: California Polytechnic State University, San Luis Obispo
Date: Thu, 23 Jul 1992 21:44:21 GMT

For debugging purposes I need to know what functions my app is
calling but can't find out how to do it.  For example, I have
an app that calls into a DLL and I want to set up some sort of
hook that will catch a call to the DLL function, lemme know it
was called and call the original function as if nothing happened.
I was thinking of doing something along the lines of subclassing
where I would replace the proc with one of my own, but this only
works for windows and classes, not arbitrary functions, right?

Anyway, ANY suggestions or comments would be appreciated.  Thanks.

Vince

-- 
            //  Vince Curley  +  vcurley@demeter.calpoly.edu  \\
  +  Windows Multimedia  +  Windows NT  +  Windows DBMS  +  Windows OOP  +
From: bjorn@ludd.luth.se (Bjorn Fahller)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Freeing Resources (Windows Kill -9)
Date: 22 Jul 92 21:51:53 GMT
Organization: Lule} H|gskolas datorf|rening ( Ludd )

In <1668700006@igc.org> jeff@igc.org (Jeff Dean) writes:
>There is a shareware or public domain program called "TaskMan" that
>can be used for freeing up DLLs.  This would be similar to the
>Unix 'kill' command, but it does not help if you also want to
>clean up other resources.

Which can be obtained where from? I searched cica to no avail. I'd
really like to have such a utility since debugging a DLL is a major
hazzle if I can't get it out of the memory every now and then.

>	Jeff Dean
>	jeff@igc.org
   _
/Bjorn.
-- 
Bjorn Fahller     Phone:              |The opinions above are not necessarily
Trollnasvagen 3A  Intl:+46 920 226870 |those of... Hey! Wait a minute. Do you
S-951 61 Lulea    Natl:0920-22 68 70  |seriously expect Me, a student, to carry
Sweden            << space for rent >>|the official voice of the University?
From: Steve_Goyette@mindlink.bc.ca (Steve Goyette)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Formatting a disk in Visual Basic
Date: 27 Jul 92 21:13:28 GMT
Organization: MIND LINK! - British Columbia, Canada
Distribution: world

Hi,

        I wanted to know if anybody knew of a way to format a disk from Visual
Basic.  I have been studying the Windows API functions and so far have come up
empty.  Should I attempt to write the function in C as a DLL (And if so how,
since I can't call the Interrupt needed)(At least I haven't found a way)
Anyway, if you have any ideas, I sure could use them!! I'm trying to create a
backup routine for one of my programs, but it needs formatted disks.  Would
like the option to format in advance.


                                                Steve Goyette