HDTenEightyP/NetNews huggingface dataset:
From: stefan@olson.acme.gen.nz (Stefan Olson)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Where is the Win Doc CDROM?
Keywords: CDROM WINDOWS
Date: Mon, 5 Oct 92 06:46:16 +1200

In <1992Oct3.051515.10345@netcom.com> newt@netcom.com (Karsten Schneider) writes:
>In article <1992Oct2.171253.10439@netcom.com> mbk@netcom.com (Miles Kehoe) writes:
>>A few months back I signed up (and was billed) for a product
>>due out in September - described as 'all the windows docs and
>>many application notes and books written by Microsoft press
>>(including Charles Petzold's book) on CD-ROM with a search
>>engine front end.

>Mine arrived today. I ordered it as soon as I got the MS info
>and it was definitely worth the wait and $$$. If you're serious
>about programming for Windows, this CD-ROM is the reason to get 
>a CD-ROM drive if you don't already have one.

>The contents are very impressive, considering that this disk is
>only a pre-release. It includes the Petzold book, 

Which edition??

...Stefan

-- 
------------------------------------------------------------------------
   Stefan Olson                     Mail: stefan@olson.acme.gen.nz
   Kindness in giving creates love.
------------------------------------------------------------------------
From: syy@ElSegundoCA.ncr.com (Sang Y. Yum)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Windows programming
Keywords: book
Date: 29 Sep 92 22:03:08 GMT
Reply-To: syy@ElSegundoCA.ncr.com
Distribution: world
Organization: Teradata/NCR

I just bought myself a copy of MS C/C++ 7.0 and Windows 3.1 SDK.
I am very new to windows programming and thus in need of a book
that can guide me to beginning and intermediate level of Windows programming.

Thank you for your information.

Sang


---
  |||   Sang Y. Yum                 | tdat!syy@suntzu.West.Sun.COM 
   v    Teradata Corporation        | uunet!edsews!hacgate!tdat!syy 
 /\ /\  100 N. Sepulveda Blvd.      | sang.yum@ElSegundoCA.NCR.COM
/// \\\ El Segundo, Calif. 90245    | Ph: (310) 524-7685  FAX: (310) 524-0009

Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Borland C++ v2.0 & v3.0
Organization: :noitazinagrO
X-Newsreader: TIN [version 1.1 PL6]
Date: Mon, 28 Sep 92 15:06:04 GMT

Lance (wongl@vccsouth27.its.rpi.edu) wrote:
: Hello, is there a big difference between versions 2.0 and 3.0 for
: Borland C++.
: I have the latest Windows Programming book that assumes I'm using 3.0.
: And the compiler cannot open the "windows.h" file (which is for windows
: 3.0 and i'm using 3.1- but whatever.)
: 
: Is there a difference in the Windows header file for 3.0 and 3.1?
: Maybe that's my problem.
: 
: All I know is that I have Borland C++ v2.0, and I want to use it to
: compile windows programs for windows 3.1 (cause the book I have is written
: for 3.1)
: 
<groan>  Call Borland and get upgraded to v3.1.  All they usually want
for a like-to-like upgrade is $39.95 and a lien on your house.  I've
seen the housing at RPI and I think they'll skip the lien, somehow.

Borland v2.0 is such a bear.  3.1 gives you a nice Windows IDE, no
fooling around with protected mode kernels etc.  You also get the up
to date Windows API.  What more could you want?

--
||)) There is no truth to the rumor that:)))))))))))))))))))))))))))))))))))|
||)) Lotus are suing Apple for copying the look and feel of their lawsuits )|
||))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
||Dave Jones (dj@ekcolor.ssd.kodak.com) | Eastman Kodak Co. Rochester, NY   |
Newsgroups: comp.os.ms-windows.programmer.misc
From: dtam@fraser.sfu.ca (Dominic Pok Man Tam)
Subject: FNT -> .FON ,how??
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Wed, 30 Sep 1992 02:04:54 GMT

Hello,
	I want to create .FON file from .FNT file using Borland C++. Can anyone
tell me how to do this??

Regards.


Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: scott@unixland.natick.ma.us (Scott Evernden)
Subject: VBX controls from OWL objects possible?
Organization: Unixland Public Access Unix & Think_Tank BBS
Date: Wed, 30 Sep 1992 01:30:15 GMT

I am trying create Visual Basic controls from OWL objects.

I'm currently struggling with all the muck having to do with rewiring the
WndProc procedures, so I can get the handy DDVT dispatch stuff to work for
me.  I'm sure other problems will arise beyond this.

Ideally, I'd like to develop some sort of VBX mixin class to deal with all
this automagically (almost)...

Is anyone else trying anything like this?  Are you willing to share your
experiences?

-scott
----
GrayMatter Software Co.              Holliston, MA   508 429-7867
scott@unixland.natick.ma.us    scott@opl.com    spe@world.std.com
user interface and application development technologies and tools
From: rws@dstos3.dsto.gov.au
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Menu states and dialog windows.
Date: 1 Oct 92 23:06:13 GMT
Organization: Defence Science and Technology Organisation

Quick trubo pascal for windows question.

Can anyone tell me how to change the state of a menu item when the menu is
being used with a dialog window? I can change menu items attatched to windows
quite easily with EnableMenuItem but have trouble doing the same thing when
dealing with dialog windows.  Any help would be appreciated.

Russell.
Newsgroups: comp.os.ms-windows.programmer.misc
From: pugliese@ghost.dsi.unimi.it (marco pugliese levi)
Subject: Re: Help : ***Cannot load Turbo Debugger SOLVED
Organization: Computer Science Dep. - Milan University
Date: Mon, 28 Sep 1992 13:03:10 GMT

torstein@kjemi.unit.no (Torstein Hansen . Elektrokjemi) writes:

>At ftp.cica.indiana.edu [129.79.20.84] (or one of its mirror sites) there is
>a file called tpwin31.zip in ~ftp/pub/pc/win3/programr/tp. Unzip this file
>and you get an updated version of WINDEBUG.DLL. 

The problem is that pub/pc/win3/programr/tp/tpwin31.zip on ftp.cica.indiana.edu is permission denied; any suggestions?

					Thanks
-- 
                                               CIAO.

===============================================================================
  Marco Pugliese   *| Dipartimento di Scienze |*         ADDRESSES:
From: eli@Metaphor.COM (Eli Lauris)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: VxD in 'C' ?
Date: 29 Sep 92 19:05:47 GMT
Reply-To: eli@Metaphor.COM (Eli Lauris)
Organization: m4


Has anybody tried to write a Windows 3.1 virtual device driver (VxD) in 'C'? If
you did, I would very much like to hear how you did it.

Thanks,

Eli Lauris
eli@metaphor.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: klok@research.ptt.nl
Subject: Com port problems.
Organization: PTT Research, The Netherlands
Date: Thu, 1 Oct 1992 07:38:36 GMT

Serial problems....

I've been trying to get an interrupt driven serial communication routine
running but so far I've had no luck. I program in TPW with Window version 3.1. 
I've declared a method which is called at the reception of a wm_Commnotify
message. The problem is that the method never gets called. I initialise the com
port with openComm, fill the DCB and call SetCommstate. After that
SetCommeventmask and EnableCommnotification are called. There are no errors
reported during these actions. After this nothing happens. My routine which
handles the wm_Commnotify is never called.
I'm completely new to Windows programming so I must be overlooking something
pretty obvious. Is there anyone out there who has had some experience with 
com programming under Windows in TPW1.5? Thanks in advance.

Frits.
F.H.Klok@research.ptt.nl
Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Use of const keyword in Borland C++
Organization: :noitazinagrO
X-Newsreader: TIN [version 1.1 PL6]
Distribution: comp.os.ms-windows.programmer.tools, sidney@borland.com
Date: Fri, 2 Oct 92 17:43:47 GMT

Jeff Bartels (bartels@sweetpea.jsc.nasa.gov) wrote:
: 
: 
: I own BC++ 3.1.
: The abstract class Object contains some pure virtual member functions
: which are declared as follows:
: 
: 	virtual int isSortable( const _FAR &Object ) const;
:                                                      ^^^^^
: 
: While it is clear to me that the first usage of "const" declares the
: parameter as a const item that cannot be modified during the call.
: 
: It is not clear to me what the meaning of the second const modifier
: (the one I underlined) is in this declaration. I searched the C++
: reference for all discussion of the const keyword and its usage, but
: there is really nothing here that explains such usage.
: 
If an object instance is declared "const" only those member functions which
have the "const" qualifier can be used.  Thus if you're defining an
abstract object with readonly functions it's wise to use the qualifier,
otherwise the object is practically inaccessible if declared using
const.  Without readonly functions, a const object can be given a value
when created, but never queried for any of its data.  Write-only memory
at its best!
: 
I would like to recommend the book "C++ Tutorial" which comes with the
Microsoft C++ doc set, but may also be available from bookstores, as are
several other of the volumes.  Its the clearest description of C++ I've
ever read.

BTW the book also notes that returning pointers to data members is a Bad
Idea. :-)

--
||)) There is no truth to the rumor that:)))))))))))))))))))))))))))))))))))|
||)) Lotus are suing Apple for copying the look and feel of their lawsuits )|
||))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
||Dave Jones (dj@ekcolor.ssd.kodak.com) | Eastman Kodak Co. Rochester, NY   |
From: kim@Software.Mitel.COM (Kim Letkeman)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: More on getting the size of a menu bar
Date: 29 Sep 92 15:34:22 GMT
	<1992Sep27.214613.21181@microsoft.com>
Organization: MITEL Public Switching, Kanata, Ontario, Canada
In-reply-to: chriswa@microsoft.com's message of 27 Sep 92 21:46:13 GMT

In article <1992Sep27.214613.21181@microsoft.com> chriswa@microsoft.com (Chris Waldron) writes:

| >I can obviously "hard code" this width into the program, but this would have
| >to be updated whenever we change the menu bar, so instead it would be nice
| >to be able to find out what the width is on the fly.
| >
| >Thanks a lot,
| >
| >PaulB->msgCount++
| 
|  Use GetSystemMetrics(SM_CYMENU)

This only gets you the height of 1 level of menu bar. When it wraps to
2 levels, you get the same answer which does not help.

I've used a trick before where I calculate the new size of the window,
then hide the window and do a movewindow. At this point I call
windowrect and clientrect and compare the height of them. If you
subtract all known quantities out of their difference (e.g. cyframe,
cycaption, cymenu etc...) you are left with any extra menu height.

At this point you can adjust the width a bit and loop until the extra
menu height drops to zero (probably hard on performance but it's
rarely done) or simply handle having your bar folded by adjusting the
client rect again and doing another movewindow while still hidden.
Then expose the window and you're done.
--
Kim Letkeman	kim@Software.Mitel.COM
Xref: sparky comp.os.ms-windows.programmer.misc:2382 comp.os.ms-windows.programmer.tools:1078
From: devilbis@csd4.csd.uwm.edu (Warren C DeVilbiss)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
Subject: Request for Mouse Protocol Tech Info
Date: 5 Oct 1992 14:30:22 GMT
Organization: Computing Services Division, University of Wisconsin - Milwaukee
Distribution: usa
NNTP-Posting-Host: 129.89.7.4
Keywords: mouse
Originator: devilbis@csd4.csd.uwm.edu


I'm looking for technical information on the Microsoft Mouse.  The "guide" 
that we received from Microsoft does not do a very good job of describing the
technical aspects of the mouse protocol.  In particular, we are looking for
information necessary to port the mouse into an embedded system design.

If you know of any good references on this subject, please send mail to
devilbis@oieng.mke.ab.com.

Thanks in advance ...

Warren DeVilbiss
devilbis@oieng.mke.ab.com
devilbis@csd4.csd.uwm.edu
From: hilman@camry.enet.dec.com (Eric Hilman)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: RE: Printing a PS File from VB
Date: 2 Oct 92 19:59:24 GMT
Reply-To: hilman@camry.enet.dec.com (Eric Hilman)
Organization: Digital Equipment Corporation


>> Is there a way to select the printer under VB program control rather than 
>> the user going to the control panel? 

>In the "Professional toolkit" add-on for Visual Basic there's a control that
>enables you to pop up the printer control window directly from your VB
>application. This way the user can select printers, send output to a ps-file
>(instead of printer) and even set up new printers if s/he want to.


There are a couple of these available in the public domain too.  The goal
is to set up the printer in software with NO user intervention.  
I want to be able to feed .ps directly to the printer in some cases and in 
others I want to use the regular printer.* functionality of VB.  In some
cases I want to be able to print landscape; in others portrait.  The application
is such that the software knows how to set up the printer.  I DO NOT want
the user to have to deal with such details. 

A hack that appears to work is to SHELL to a script that does COPY foo.ps lpt1:
in foo.ps I can include the ps commands to switch between portrait and 
landscape.  The trick is to SHELL to a .pif file with the minimized, with
focus options set.  Also set the foreground priority at 10000 so that it runs.

Open "PRN:" etc or OPEN "LPT:" etc do not work. I was hoping that there was
another way or a dll/vbx around that allowed one to set things up from the 
software.

eric hilman
Newsgroups: comp.os.ms-windows.programmer.misc
From: whedon@netcom.com (Bill Whedon)
Subject: Re: Authoring Help Files
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Tue, 6 Oct 1992 06:08:54 GMT

In article <1992Oct5.170817.2247@medtron.medtronic.com> sh0001@israel (Scott Hansohn) writes:
>What's the preferred (easiest) method for writing/maintaining Windows
>help files?
>
>The manuals talk about how you can use any RTF-capable word processor,
>but then it launches into a discussion of the nitty-gritty's of the
>RTF file format and the hypertext extensions used by the help compiler.
>
>Are there any word processors that support these extensions?  If I
>take an RTF file for one of the help examples, and read it into
>MicroSoft Word, it doesn't look particularly pretty, although I can
>reexport it into RTF format, compile it, and come up with all of the
>help links still active.
>
>I'd like to believe that there's a better way than:
>
>    1.  Write the basic text using your word processor, exporting
>	to a .rtf file.
>
>    2.  Use an ASCII editor to hack in all of the hypertext links.
>
>    3.  Run the hacked file through the help compiler.
>
>I think I'm missing something here.
>
>--s
>


There is a product, "The Windows Help Magician" by Software Interphase, Inc,
which purports to simplify the creation of help files for MSW.  It costs
(list) $199US, and Programmer's Paradise advertises it at $169US.  I have
not used it myself, but the ads are good enough that I am recommending that
my manager buy a copy for eval purposes.

If you're in the US, you can call Programmer's Paradise at 1-800-445-7899, or
write them at 1163 Shrewsbury Ave., Shrewsbury, NJ, 07702   USA.

Cheers!
Bill Whedon   whedon@netcom.com

-- 
---------------------------------------------------------------------
--           the net, working,                                     --
--           sends mail afar                                       --
--           and we, in cybernetic dream                           --
--           reply                                                 --
--                                                                 --
-------Bill-Whedon------whedon@netcom.com----------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: runeh@dhhalden.no (RUNE HALFDAN HOLST HUSEBY)
Subject: How to hide modeless dialogboxes?
Organization: Ostfold College
Date: Tue, 29 Sep 1992 01:54:53 GMT

In the program I'm currently working on, I need to hide some modeless dialog-
boxes, but ShowWindow(hModeless, SW_HIDE); doesn't seem to work.

I've also tried to disable the window before trying to hide it.

Is it any special trick to hide modeless dialog-boxes, or is it me just 
working to late? (Local time is now 0300 AM)

Thanks a lot for any replies!

runeh@dhhalden.no

                               }  } {  {
/-------------------------------}  }  { /----------------------------------\
| Rune Halfdan Holst Huseby      }  {  |  S-Mail: Atomveien 18             |
|  ____________________________   }{   |          1777 HALDEN              |
| (_____(_runeh@dhhalden.no____###)    |          NORWAY                   |
|-------------------------------------/ \----------------------------------|
| Real programmers never work 9 to 5. If any real programmers are around   |
| at 9 am, it's because they were up all night.                            |
\--------------------------------------------------------------------------/

Newsgroups: comp.os.ms-windows.programmer.misc
From: wilson@arp.anu.edu.au (Wing Sik Yeung (Wilson))
Subject: NEED HELP! info on reading mac disk
Keywords: Read Mac 1.44M disk on PC 1.44M disk drive
Organization: Centre for Information Science Research, ANU, Canberra, Australia
Date: Wed, 7 Oct 92 02:04:45 GMT

Hello all,
	I'm looking for some information (better with C sources) about how to read
 files which were stored on Macintosh 1.44M disk. I know that the Apple file exchange can transfer files between MAC disk and PC disk. Yet, I need to do it on
my PC.
	If you got any suggestion, idea, or comment, would you please tell me?

	MANY MANY THANKS in ADVANCE.

_Wilson




Newsgroups: comp.os.ms-windows.programmer.misc
From: sdj@franz.com (Steve D. Jacobson)
Subject: ChooseFont() and Font Style
Organization: Franz Incorporated, Berkeley CA
Date: Tue, 29 Sep 1992 22:16:39 GMT

I would like the Font Style control to only offer the "Regular" style.
I don't see an easy way to do this using the CHOOSEFONT structure Flags
member.

The "Write" application seems to do something like this. Does anyone know
how it does it?

Steve
Newsgroups: comp.os.ms-windows.programmer.misc
From: neil@progress.COM (Neil Galarneau)
Subject: MAPSYM and line numbers bug?
Organization: Progress Software Corp.
Date: Mon, 28 Sep 1992 18:58:17 GMT

I am having a problem getting mapsym to give me a .sym with good line
number information.

When I linked with /li, my .map file has line number info.  When I generate
a .sym file (by mapsym foo.map), the .sym file has a greater number of
LINEINFs than expected (4Fh instead of 41h).

When I look at the array of LINEINFs, it is messed up.  Instead of being:

typedef struct {
    WORD wCodeOffset;
    WORD dwFileOffset;
}

it appears to be:

typedef struct {
    WORD wCodeOffset;
    LONG dwFileOffset;
}

So there appears to be a typo in the LINEINF documentation both in Vol. 4 of
the SDK and in the Online Help.

Unfortunately, even when I look at the file with that in mind, it still doesn't
make sense.

Every LINEINF in the file has a dwFileOffset of FFFFFFFF and most of the
wCodeOffsets are 0.

The version of mapsym I'm using is 4.11 ((c) 84-88 is it too old?) in the sdk
bin directory.

Is there some switch I'm supposed to use to get real line numbers, or is
mapsym fatally crocked?

I would be grateful for any info.


Thanks,

Neil
neil@progress.com
Xref: sparky comp.os.ms-windows.programmer.misc:2416 comp.os.ms-windows.misc:3596
From: ctwomey@ccvax.ucd.ie
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.misc
Subject: Re: windir environment variable is a constant!
Date: 5 Oct 92 15:49:22 GMT
Organization: University College Dublin



A while ago I wrote ctwomey@ccvax.ucd.ie writes:
 
>When you open a DOS window and enter 'SET', one of the environment
>variables listed is as follows:
>	windir=C:\WINDOWS
>(or equivalent).  This is the only env. variable whose name is in lowercase.
>I cannot change its value - if you try to
>        set windir=c:\
>for example, the result is that there are now two env variables:
>	windir=C:\WINDOWS
>        WINDIR=C:\
 
>Is this a bug in windows or was it intentional?  How do I alter or delete
>the windir variable? - or should I say the windir environment CONSTANT?

Thanks to everyone who replied - everyone said that looking for lowercase
unchangable 'windir' was a good test for seeing if a DOS program was 
running from within a window and why would I want to change it?

Well - the reason I wanted to change it is because it screws up my
environment editor - ENV.EXE, a neat program by Terry Farrell that allows me
to edit my environment.  Other env. editors I've tried just aren't as good,
and many of them stumble on this 'windir' thing too.

Ah well, I suppose I'll have to wait for Terry to fix his bug...

Colum Twomey.
Newsgroups: comp.os.ms-windows.programmer.misc
From: cwvernon@napier.uwaterloo.ca (Colin Vernon)
Subject: Re: OO Windows in BC++
Organization: University of Waterloo
Date: Fri, 2 Oct 1992 13:49:28 GMT

In article <14801@goanna.cs.rmit.oz.au> s913578@yallara.cs.rmit.OZ.AU (Fantom) writes:
>Hiya to alla the ppl out there who have already experience in this area
>I've just moved from standard windows to OO and was wondering
>if anybody could recommend some decent books onb the topic, preferably
>ones with direct refence to Borland C's object libraries

I recently bought "Windows++" which shows you how to make your own 
Windows library from scratch.  For $25, you can get a disk with all
the source code typed in for you.  I forget the authors name and such
but I can g easily look for you.

Newsgroups: comp.os.ms-windows.programmer.misc
From: wangc@cpsc.UCalgary.ca (Carol Wang)
Subject: zmodem
Organization: The University of Calgary
Distribution: comp
Date: Sun, 4 Oct 1992 12:17:23 GMT

i need to do file transfer in a windows application (mainly visual
basic) as cheaply as possible.  this means that if at all possible i
would like to avoid crosstalk (which requires a distribution fee and
such).

other alternatives that present themselves is the crescent software
pdqcomm VB library which only does xmodem and ymodem.  this would be
fine except that the file transfer doesn't work with the unix server
that it must talk to.  has anyone else also found this to be the case? 

ftp'able shareware zcomm and dsz works, but doesn't appear to have any
dde/dll type interfaces with the rest of the world which would be
needed for rudimentary interaction with the application to at least
say when a file transfer is complete.

does anyone have any better suggestions or corrections?

carol
Organization: Johannes Kepler University Linz - Computing Center
Date: Tuesday, 6 Oct 1992 10:54:32 CET
From: <K3013E5@ALIJKU11.BITNET>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: How to format disks under Windows 3.1

Can somebody tell me how to format disks under Windows 3.1 .
I am writing a progam that can copy disks.
So far so good, now I wanna know how to format them. ( Interrupt 13h Fkt 05h
formats the Track without an error, but later I cannot write or read the Track.

The same Procedure under DOS works perfectly. Can someone say me, what i make
wrong???

*******************************************************************************
For my German friend's : *+++++++++++
*+  * /  *+
DU sollstden Tag nicht vor dem*+ ----+
      *+++++++++++
Abend (PL/I) loben . *Be sure Big Brother is watching you ?
******************************************************************************