HDTenEightyP/NetNews huggingface dataset:
From: elder@enuxha.eas.asu.edu (Greg Elder)
Subject: "Programming Windows", 2nd Edition, For Sale
Keywords: Petzold Book
Organization: Arizona State University
Date: Sat, 5 Sep 1992 06:47:45 GMT

I have a copy of Petzold's "Programming Windows", 2nd edition, which I
have never used, for sale.  Published price was $29.95.  I'm asking
$18.00 (includes postage).  Please reply to me if you are interested.


--
  Greg Elder               | 
  Dept of Computer Science |  
  Arizona State University | 
  elder@enuxha.eas.asu.edu |  
Xref: sparky comp.os.ms-windows.programmer.misc:1746 alt.hypertext:742
From: kstout@medieval.East.Sun.COM (Kate Stout - Sun PC Network Engineering)
Newsgroups: comp.os.ms-windows.programmer.misc,alt.hypertext
Subject: Testing MS Windows Help
Date: 9 Sep 1992 16:58:01 GMT
Organization: Sun Microsystems Inc. - BDC
Reply-To: kstout@medieval.UUCP ()
NNTP-Posting-Host: medieval.east.sun.com

I'd like to get a sense of how people are testing OnLine Help systems
in Windows. Are you using tools? If so what, and how good are they?

What other ideas do you have? We'd like to test 

1) completeness -- all jumps/popups go to the right thing
2) flow --- browse sequences are right, for example
3) all hotspots (.shg) show the right topics

As a side note, has anyone created a .dll or a macro for help that
lets you print all the topics in one file with one command? If not,
Microsoft... are you listening???? It would be great to go paper free.

TIA
------------------------------------------------------------------------------
--    Kate Stout, PC-NFS Engineer       | There are two kinds of people	 --
--    Sun Microsystems, Billerica MA.	| in the world; those who divide -- 		                 --    (kstout@East.Sun.COM)		| the world into two kinds....   --
From: cotes@woods.ulowell.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Win Drivers
Date: 15 Sep 92 20:16:43 GMT
Organization: University of Lowell


 
I am an experienced programmer with NO Windows experience so please
excuse any stupid questions.
 
I have Borland C++ v3.1 and I wish to write Windows drivers for 
machines I have attached to my PC. I've seen talk of the MS DDK, 
but is it needed? The only info I've got on Windows drivers is a 
sentence from my documentation that says that a device driver is 
simply a special kind of DLL. If this is true then writing a 
driver should be easy, right? 
 
I've not been able to find D. Nortons book so if you could also
give me a rundown on the sticky points of driver design I would 
be gratefull. 
 
Thanks in advance ... thanks for your time.
 
Scott Cote
UMASS at Lowell
Lowell Ma. U.S.A.
 
EMAIL
cotes@willow.ulowell.edu
 
Newsgroups: comp.os.ms-windows.programmer.misc
From: matts@microsoft.com (Matt Saettler)
Subject: Re: .WAV player source
Date: 14 Sep 92 17:03:00 GMT
Organization: Microsoft Corporation
Distribution: usa

In article <dickerso.716227841@fester> dickerso@cpat.stortek.com writes:
>Is there a book available that goes into detail about playing .WAV
>files from within your code?  Examples?
>
>
>--
>-----------------------------------------------------------------------
>Russell Dickerson	Unix/X Consultant	IOSpecialists
>(303) 673-5409 ---REPLY TO>>> dickerso@cpat.stortek.com <<<!!!!--------
>For every vision, there is an equal and opposite Congressional revision.

I will soon (today) be placing just such sample code on ftp.uu.net
in \vendor\microsoft\multimedia\samples (or is that sample?)

Anyway, the C code shows how to play a WAV file under Windows without
having to read the entire file before playing.

It also shows how to convert to/from MSADPCM WAV format

Matt Saettler/Microsoft Multimedia
-------------------
I speak only for myself...

Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.misc,comp.os.ms-windows.programmer.tools,comp.os.ms-windows.setup
From: stu@Warren.MENTORG.COM (Stu Brown)
Subject: What's the best setup for compiling in a DOS window?
Organization: Mentor Graphics, Silicon Design Division
Date: Fri, 11 Sep 1992 14:52:58 GMT

I have MS C/C++ 7.0 and am trying to set up my Windows DOS shell window
to get good compile time. I have tried to set the PIF for exclusive
and the time slice to 10000, but when I compare compiling in DOS
Vs. compiling in a Windows DOS shell (windowed or full screen),
the Windows compile takes 2X longer no matter what I do.

Any solutions to get Windows to give my process exclusive CPU?
-- 
Stuart Brown
Mentor Graphics Corporation
I.C. Group, Warren NJ
stu@warren.mentorg.com or uunet!sdl!stu
From: dj@ispd-newsserver.ssd.kodak.com (Dave Jones)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: How to get current hInstance?
Date: 14 Sep 92 19:40:58 GMT
Organization: :noitazinagrO
X-Newsreader: TIN [version 1.1 PL6]

Robert Yaeger (rmy@pyuxf.uucp) wrote:
: 
: Hi,
: Does anyone know of a way to get the current value of hInstance without
: passing a param or global around.  Does DS always equal it?
: 
: Thanks,
: -Bob
: 
: 
Just call GetWindowWord(hWnd, GWW_HINSTANCE)

What, no window handle?  Then if memory serves you can get your task
handle via GetCurrentTask and then enumerate its windows until you find
the one you want.  Easier to make sure your window handle is always
available, though.  

--
||)) Those who wallow in ignorance      ))) Policemen are numbered in case))|
||)) must dwell in Limbaugh for a time  ))) they get lost - S. Milligan   ))|
||))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))|
||Dave Jones (dj@ekcolor.ssd.kodak.com) | Eastman Kodak Co. Rochester, NY   |
Newsgroups: comp.os.ms-windows.programmer.misc
From: jholdern@casper.cs.uct.ac.za (J E Holderness)
Subject: Minimized icon not displayed correctly
Organization: Computer Science Department, University of Cape Town
Date: Sun, 6 Sep 1992 10:11:00 GMT

I've written a small application that uses a dialog box for its main
window (don't know if that makes any difference). The problem is that when
it is minimized, the icon doesn't display - it looks like its displaying
the top left hand corner of the client area.

The icon does display properly when I use alt-tab to flip between tasks,
and also when I move it (it shows up black and white as it should).

My GetWindowClass and GetClassName funcs look something like this:

LPSTR TMyWindow::GetClassName()
{
  return "MyWindow";
}

void TMyWindow::GetWindowClass(WNDCLASS& AClass)
{
  TDialog::GetWindowClass(AClass);
  AClass.hIcon = LoadIcon (GetModule()->hInstance, MAKEINTRESOURCE(MY_ICON));
}

I am using Borland C OWL. Any ideas what I am doing wrong?

- jim

Newsgroups: comp.os.ms-windows.programmer.misc
From: shen@cis.uab.edu (Frank)
Subject: Borland's Internet Address??
Originator: shen@saturn
Organization: University of Alabama at Birmingham
Distribution: usa
Date: Sun, 6 Sep 1992 19:52:44 GMT

Hello, 
	Does anyone know Borland's internet address for technical
	supports for ms-windows programming?  When I have a programming
	question for ms-windows, Do I ask Borland or Microsoft?  I am 
	using Borland C++.  

	Thanks for helping.
From: wegrzyn@nic.cerf.net (Chuck Wegrzyn)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Windows 3.1 and DPMI Realmode callback
Date: 5 Sep 92 16:07:15 GMT
Organization: CERFnet

I am trying to get a Realmode callback unders Windows 3.1 to work. Has
anyone tried using this feature and had any success?

Chuck Wegrzyn

Newsgroups: comp.os.ms-windows.programmer.misc
From: anderson@mayo.edu (Alfred I. Anderson)
Subject: Linking VB to Sound Output via MCI Control
Organization: Mayo Foundation
Date: Fri, 11 Sep 1992 22:28:10 GMT

I'm trying to use Visual Basic and the Professional Toolkit to create an 
application that will, essentially, do what the Sound Recorder will do.

I'm using the AudioPort on a laptop.  SoundRecorder icon works great. I can 
record a voice phrase, store it, and play back exactly what was said.

Under VB I use the MCI.VBX control to get MultiMedia capability.  I hit 
record and speak a phrase and then hit stop.  When  I hit play, I hear the 
phrase just spoken and then, immediately, a repeat of the ending few seconds 
of the phrase just spoken!

I've been unable to figure out how to eliminate the ending few seconds!  Any 
clues?


Alfred
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alfred Anderson                Internet:    anderson@Mayo.edu
Mayo Foundation - Rochester MN 55905
-----------------------------------------------------------------
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: No sscanf() in a DLL? Really?
Date: 11 Sep 92 17:47:00 GMT
Organization: PE-Nelson

In article <budi69.9ye@wang.com>, dbushong@wang.com (Dave Bushong) writes:
|> 
|> Is it true that you can't use sscanf in a DLL (according to
|> Microsoft's windows.h)?
|> 

I'm not sure what you mean about windows.h "telling" you that sscanf isn't
DLL compatible, but I'm using BC++ 3.1 and the version of sscanf in Borland's
runtime is perfectly happy being called from a DLL (Borland's runtime library
is available, in fact, as a DLL).


----------------------------------------------------------------------------
Tom Brown               |  "Strange women, lying in ponds, distributing
PE Nelson Systems       |   swords is no basis for a system of government."
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
From: pitaro@joker.sanders.lockheed.com (Michael Pitaro)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Queries under CodeBase 4.5 for Windows
Date: 5 Sep 92 02:33:26 GMT
Reply-To: pitaro@rocket.sanders.com
Distribution: na
Organization: Lockheed Sanders, Inc.
In-reply-to: whedon@netcom.com's message of 3 Sep 92 18:37:12 GMT

In article <=ylnxvn.whedon@netcom.com> whedon@netcom.com (Bill Whedon) writes:

   From: whedon@netcom.com (Bill Whedon)
   Keywords: CodeBase Windows Queries
   Date: 3 Sep 92 18:37:12 GMT

   I'm having a bit of fun with CodeBase 4.5 at the moment, trying to figure
   out (in the absence of example code) how to do the following:
   I have a database with customer records and sales info
   I want to do the following selection:
      SALES_DOLLARS > 1000 AND CREDIT_AVA >= 10000
   And build a new .DBF file from the result

This should be relatively easy to do (famous last words), unless
you're leaving something out. :-) There are examples in the manual for
printing out an database using a filter (e.g. CodeBase 4.5 Manual,
page 201).  Modify that one to print to a flat file i.e. to disk.
After you print out to a flat file you can read it in again by
modifying another example program in the book (CodeBase 4.5 Manual,
page 9).  There are other ways to do this but this one is conceptually
simple.
--
Michael Pitaro                              Lockheed Sanders, Inc.
                                            PO Box 868, MER24-1583C
Signal Processing Center of Technology      Nashua, NH 03061-0868
pitaro@rocket.sanders.com                   603/885-9794 (Voice)
(or) ...!uunet!rocket!pitaro                603/885-0631 (FAX)
Newsgroups: comp.os.ms-windows.programmer.misc
From: dtam@fraser.sfu.ca (Dominic Pok Man Tam)
Subject: Writing Help using Winword 2.0
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Sat, 5 Sep 1992 04:39:27 GMT

Hello,
 
I use the WinWord 2.0' RTF filter to write help. I use the sample application
helpex coming from SDK for testing. However, after I have imported and exported
the same RTF file in helpex using WinWord 2.0, the HC (help compiler) generate
an error message : the RTF file is not an usable topic file. Actually, what
RTF editor should I use to author windows'help file?
 
Regards.
From: lincoln@think.com (Lincoln Marta)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Need Modeless Dialog Box Help, etc
Date: 14 Sep 92 16:43:24 GMT
Organization: Thinking Machines Corporation

Hi all,

Problem 1:
The application I am creating requires a window to 
be opened an to display the current status of jobs.
The specific data is passed to this window via modal
dialog boxes.  I have decided to use a modeless dialog
box to display the info sent by the modal dialog boxes.
For some reason after creating and displaying my modeless
dialog box function, my keyboard freezes, and I have to
reboot with the reset switch.  I have done the following
to create the modeless dialog box:
1. Use CreateDialog().
2. Revised the Message Loop as suggested by SDK to have
   something of the form if hDlg==NULL | IsDialogProc...
   I don't exactly remember.
3. Use Destroy Window to End the Dialog.

Everything else remains the same as a normal dialog.

Can someone point me in the right direction?  Is there
something I've forgotten? Does anyone have any sample
fragment of source code for a modeless Dialog Box.

Problem 2:
I have used the Dialog Editor to create a .res file.
In some of the dialogs I have used static text controls
with the ID value of -1. However after compiling,
the first word of the text witin the last Static Text Control
is replaced by some other unrecognizable character.
This happens to all dialogs with Static Text Controls.

Why does this happen? And what should I do to fix it.?


Any help appreciated.

Please email reponses to : lincoln@Think.Com
as I don't read this group
too often.


-Lincoln
From: estrella@cass.ma02.bull.com (Gustavo Estrella)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Icon display for Dialog windows????
Date: 15 Sep 92 15:27:53 GMT
Organization: Bull World Wide Information Systems Inc.

A simple question.  How can I display an Icon for a BC3.1 program that uses a Dialog as the main window?.  Whenever I minimize the thing, it displays the upper left part of the dialog box in the Icon area.  I have tried redefining the getclassname function with no luck.  Any help will be appreciated.

                       Gus Estrella
From: dbushong@wang.com (Dave Bushong)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: No sscanf() in a DLL? Really?
Date: 10 Sep 92 17:34:56 GMT
Organization: Wang Labs, Lowell MA, USA


Is it true that you can't use sscanf in a DLL (according to
Microsoft's windows.h)?

What do you do instead, re-invent it?

Thanks for any advice!

Dave
-- 
Dave Bushong, Wang Laboratories, Inc.
Project Leader, OCR products
Internet: dbushong@wang.com
From: tanida@norns.css.gov (Tom Tanida)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Petzold, 3rd edition?
Date: 14 Sep 92 19:48:53 GMT
Reply-To: tanida@norns.css.gov (Tom Tanida)
Distribution: usa
In-reply-to: schwartz@possum.den.mmc.com (Michael I Schwartz)

In article <1992Sep14.133226.2494@den.mmc.com>, schwartz@possum (Michael I Schwartz) writes:
>ddoherty@ics.uci.edu (Donald Doherty) writes:
>
>>Yeah, the flyer I received from MS says $50 ($49.95) but it comes with
>>code on a disk in both C and C++ (compatible with both MS and Borland
>>compilers).  It's $20 more than the 2nd edition.  I guess they've
>>got us...
>
>The question is, especially now, can a body USE portions of the code in a 
>program without violating copyright?
>
>Can anyone who has bought the book summarize the restrictions on the use
>of the source code?
>

I'd hope that anybody could use the code.  The original Petzolds (1st
and 2nd editions) are "how-to" like in manner, so often times (back in
the old days when I just used C and the SDK), I'd be nearly verbatim copying
from the book (lots of typing).

Can anybody who bought the book tell me that they bought it?  Today
is Sep 14, a day which was previously stated to be the day it was
supposed to be out- I haven't found it (maybe I need a little more
patience :-) )...

-Tom
tanida@esosun.css.gov
Newsgroups: comp.os.ms-windows.programmer.misc
From: castanos@wam.umd.edu (Jose Alberto Castanos)
Subject: Re: Help needed with Borland C++ 3.1
Organization: University of Maryland, College Park
Date: Sat, 12 Sep 1992 03:45:53 GMT

In article <1992Sep12.032835.20123@wam.umd.edu> I write:
>         .
>         .
>
>if (((UINT) hinstBWCC = LoadLibrary("BWCC.DLL") > HINSTANCE_ERROR) {
>  [Library could not be loaded, so handle the error]
>}

Sorry, the above should have read:


if (((UINT) hinstBWCC = LoadLibrary("BWCC.DLL") <=  HINSTANCE_ERROR) {
                                                ^^
 
  [Library could not be loaded, so handle the error]
}

-------------------------------------------------------------------------------
Jose A. Castanos       | Computer Science Dept. |"If a person never contradicts
(castanos@wam.umd.edu) | University of Maryland | himself, it must be that he 
                       | College Park, MD       | says nothing." -M. de Unamuno
-------------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: hichoi@dbserver.kaist.ac.kr (Hwan-Ik Choi)
Subject: Return value of RealizePalette() ??
Organization: KAIST
X-Newsreader: Tin 1.1 PL5
Date: Mon, 7 Sep 92 08:58:52 GMT


hi netters,
I've tried to create my own color palette and use it in my applications. But
when I tried to use it, ``RealizePalette()'' always returns ``NULL''.

The situation is:

	// Create Palette
	hgPal = CreatePalette(....);		// no errors found

	// now do my job
	hDC = GetDC(hWnd);
	if( (hOldPalette = SelectPalette(hDC, hgPal, 0)) == NULL)
	{ // Never fall in this block	:)
		...	
	}

	if (RealizePalette(hDC)==NULL)		// ???????
	{ // Always fall in this block  :(

	}
Although ``RealizePalette'' returns an error, there are no anomolies in its
execution. Is the return value of ``RealizePalette'' meaningless?

I have test the sample program in SDK (palette.c) and found that sample
program also returns an error in ``RealizePalette'' whenever I resize 
the window. (you can try this by parsing the return value of 
``RealizePalette'' in sample program).


What's the my missing point?

///////////////////////////////////////////////////////////////////////////////
/	Hwan Ik, Choi							e_mail: hichoi@dbserver.kaist.ac.kr
/											02-42-869-3563
/	Computer Science Dept., 
-	Korea Advanced Institute of Science and Technology,
\	373-1 Kusung-dong Yusong-gu Daejeon 305-701
\	Korea
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Newsgroups: comp.os.ms-windows.programmer.misc
From: herzogs@ucs.orst.edu (Stephen Herzog)
Subject: How do you copy ICONs in my code?
Summary: Some sample code would be nice...
Organization: University Computing Services - OSU
Date: Mon, 14 Sep 1992 16:20:12 GMT


Hello,

I am trying to write a procedure in my program to copy an ICON from one
.EXE file to another .EXE file.  TPW doesn't have too much in the way
of help for this.  Could anyone give me a few hints on how to go about this?
is there a windows resource load and save function.  I found the LoadResource
function but no way to save it to another file.  

If the Resource file format is available at an FTP site, I could create 
my own procedures.  


Thanks

Stephen Herzog
herozgs@ucs.orst.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: longe@statsci.com (Michael Longe')
Subject: Std Install Sample in SDK?
Keywords: install, SDK, samples
Organization: Statistical Sciences, Inc
Distribution: usa
Date: Sun, 6 Sep 1992 14:07:11 GMT

Was I mistaken, or did Microsoft indicate (perhaps at one of the Developer
Conferences) that they would supply sample source for a Windows app 
install program? I looked for it in my Beta SDK examples, and couldn't
find one.

If source exists, and is PD or avail to developers, could someone e-mail
it to me at the address below? Thanks!


Michael Longe'
Designer Software
longe@statsci.com (at client site)
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: help text colour in BC++ & Windows 3.1
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 16 Sep 1992 04:29:14 GMT

I have changed my Windows colours (with control panel) to CYAN text on 
DARK BLUE background.  Write and Notepad correctly use CYAN on DARK BLUE
as expected.

However, when I use windows help (i.e. for Write), the background is dark 
blue as expected, but the text remains as 'black' difficult to read.  Why 
doesn't Windows display the help text using the text colour I have 
selected?  

You say "WinHelp" is hard-coded to use black, right?  Maybe not...
Borland help correctly shows the help text as CYAN on DARK BLUE, and yet
they are using the same Windows help engine.  This looks like a bug, but
Microsoft says "gee I dunno, why are you using such a dark colour for
your background anyway, you weird person you".
Newsgroups: comp.os.ms-windows.programmer.misc
From: sweetman@sea.com (Bill Sweetman)
Subject: MDI 64K limit ... HELP
Organization: Systems Engineering Associates
Date: Wed, 2 Sep 92 21:33:45 GMT

=-=-=
All -

I'm having some difficulty with an MDI application that I'm 
trying to develop.  I need to be able to open/search/scroll
a document that is very large ... greater than 64K.
I didn't think this was going to be a problem, but I can't
seem to get it to work.  I'm looking for some examples or
someone who has done this before.  Petzold wasn't much help.

thanks for any info...

-Bill Sweetman
   sweetman@sea.com | bsweet@crash.cts.com
=-=-=
-- 

  INET: sweetman@sea.com           System Engineering Associates  (S.E.A.)
    voice: (619)581-6181 x305      2204 Garnet Ave
     fax: (619)581-6184            Suite #303
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc
From: swesterback@tnclus.tele.nokia.fi
Subject: Re: Setting Client Area to entire screen
Organization: Nokia Telecommunications.
Date: Mon, 7 Sep 1992 14:54:05 GMT

In article <1992Sep4.110901.89996@vaxc.cc.monash.edu.au>, che358w@vaxc.cc.monash.edu.au writes:
> In article <1992Aug28.074510.6581@adobe.com>, epperson@adobe.com (Mark Epperson) writes:
>> In article <1992Aug11.233710.18600@u.washington.edu> goble@hardy.u.washington.edu (Brian Goble) writes:
>> %%How do Win apps such a WinGif (and many other graphics/paint programs)
>> %%implement their "Full Screen" option?  That is, what are they doing to
>> %%make their Client Area the entire screen (no windows stuff at all--it's
>> %%all client area).
>>
>> Start by moving the windows upper left corner off up and left so that
>> the client areas origin is in the upper le~t corner of the screen. Then
>> resize the window to make the client area the same size a~ the screen.
>>
>> MarkEppyrson
> 
>   I think that these apps. use a windows style that does not include border,
> caption, system menu etc  and set w=getsystemmetrics(sm_cxscreen) and similarly
> for the height and of course x=0, y=0 I don't have my references here so I
> can't tell you exactly but I think that style:=ws_popup brings up an appropriate
> sort of window or else try style:=style or(not ws_caption and ws_sysmenu). I
> don't think that's exactly right but you get the idea.
I have read in some book (Charles Petzold?) that the whole screen can be 
reserved by requesting an hDC to a logical name, SCREEN, in the same way as
the printer device context is opened. I am not sure about this...

The same full screen device is also uses by Microsofts and others installation
programs. As you may have noticed you can often switch to other programs 
while the full screen installation program is running (i.e., using alt-tab).

Sten
 
============================================================================
B.Sc. Sten Westerback         Telephone: +358+0 +5115871(work) +740049(home)
Address: Mets{purontie  9 B19, SF-00630 Helsinki, FINLAND  Time zone: EET
Test the utility at WSMR-SIMTEL20.Army.mil::pd1:<msdos.dirutl>swxd303d.zip
NB! I am working, but not speaking for Nokia Telecommunications!
============================================================================
Newsgroups: comp.os.ms-windows.programmer.misc,alt.hypertext