HDTenEightyP/NetNews huggingface dataset:
From: alby@goldbelt.Corp.Sun.COM (Albert Lopez )
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: install.exe source for windows
Date: 5 Oct 1992 21:01:24 GMT
Organization: Sun Microsystems
Distribution: world
Reply-To: alby@goldbelt.Corp.Sun.COM
NNTP-Posting-Host: goldbelt.corp.sun.com


Hi,

Does anyone have C source code as an example install.exe
program to install an application into a MS windows environment.

I have a software product that  I need to package so that
my end users can simply put the diskett into drive A or B
and type install.

My program already has a program ICON attached to it and
a group ICON exists as a .GRP file.

So on my product diskett I have 2 files:

          product.exe
          product.GRP

and I need to write an install.exe which
will copy the 2 files into a user specified 
directory and update the progman.ini file to
append my product.GRP to the list.

It would be great if a skeletal program of install.exe
exists somewhere that can be modified.

thanks for any pointers!


Albert Lopez 
Sun Microsystems  (The playground next to shoreline park)
albert.lopez@Corp.Sun.COM



Newsgroups: comp.os.ms-windows.programmer.misc
From: oneil@cwis.unomaha.edu (Sharon O'Neil)
Subject: Any mailing lists for Visual Basic?
Summary: Any mailing lists for Visual Basic?
Keywords: Visual Basic, Mailing Lists
Organization: University of Nebraska at Omaha
Date: Thu, 1 Oct 1992 04:19:57 GMT

Title Says It All
No Need for a Long Boring Message

Reply here or via e-mail, I read both.
Sharon
oneil@cwis.unomaha.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Saving bitmaps into disk file in DIB format
From: chens@elec.canterbury.ac.nz (S. Chen)
Date: Mon, 5 Oct 1992 03:03:41 GMT
Organization: University of Canterbury, Christchurch, New Zealand

Hi,
	I am trying to save a colored device-dependent bitmap into a disk file
in the form of Device Independent Bitmap. And I am not sure how to set the
RGBQUAD field in the BITMAPINFO structure. It will be very much appreciated if
someone would provide me some leads on this subject.

	Thanks!

Regards,
shiun.
PS. Please reply by email if possible.
e-mail:chens@elec.canterbury.ac.nz

Newsgroups: comp.os.ms-windows.programmer.misc
From: yefchak@hplabsz.hpl.hp.com (George Yefchak)
Subject: Opposite of CreateRectRgn()--HELP!
Date: Sun, 4 Oct 1992 22:39:59 GMT
Organization: Hewlett-Packard Laboratories Palo Alto,CA

What's the proper way to free up memory from a CreateRectRgn()
call after I don't need the region any more?  Is this a free(),
a GlobalFree(), a LocalFree(), or what?  I'm using Visual
Basic, but I assume that doesn't matter too much.
Thanks!

***********************************************************************
* George Yefchak                          Hewlett-Packard Laboratories*
* Internet: yefchak@hpl-spin.hpl.hp.com   P.O.Box 10350               *
* CompuServe: 73607,1625                  Palo Alto, CA 94303-0867    *
*                                         415-857-4793                *
***********************************************************************
Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Problems with faults ....
Organization: :noitazinagrO
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 6 Oct 92 15:47:17 GMT

Mike Mattix (dmmatt@bigez) wrote:
: In article <1992Oct5.134103.5406@vela.acs.oakland.edu>, bcmatusz@vela.acs.oakland.edu (Brian Matusz) writes:
: > I'm currently writing a program with Borland C++ 3.1 and having some
: > major problems with it.  When running, about 90% of the time, it will
: ..  stuff deleted
: > 
: > What's even more infuriating ... the 10% of the time that it works, it
: > works flawlessly.  Even *MORE* maddening, is it NEVER fails when I'm in
: > the debugger.  Never.  Therefore, I can't figure out exactly why it
: > fails.
: > 
:  While I don't use Borland's C++, I have had similar problems with MSC and
: with (of all things) VAX Fortran.  Seems that all of these compilers have 
: something in common, an optimizer that's sometimes too smart for its own
: good.  The clue is the debugger.  In order to get any type of source code
: debugger there can be no optimization.  You might try to re-build it with the
: optimization turned off and see what happens.  I have seen 5-10 similar 
: problems.
: 
And while you're at it, watch out for uninitialized local variables,
especially Booleans.  Almost every debugger I've used, incl. VAX and PC,
zeroes out local variables on entry to a function.  In regular use, any
garbage in local variables is left alone.  Sometimes you can bypass the
feature by setting a breakpoint in the middle of a function rather than
stepping in thru the call.

--
||)) 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: hill@netcom.com (Tom Hill)
Subject: Re: Problem with DialogBox & DestroyWindow.
Keywords: modal, dialogbox, enddialog, destroywindow
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Thu, 1 Oct 1992 19:40:39 GMT

In article <1aaeeaINNoim@cs.tut.fi> pk64380@cs.tut.fi (pazi) writes:
>
>  Topic: Dialogbox() & DestroyWindow()
>
>  The application I'm working on has a modal child window, say the
>"Read Window" created with DialogBox().
>  This child in turn may have several (one at a time, though) modal child
>windows, which in turn may have childs, etc, etc, all created with 
>DialogBox(). 
>  The application also has a modeless window, the parent of which is the 
>main window. When certain events occur in this modeless window it may become
>essential to close the "Read Window" along with any childs it may have. 
>I tried to do this simply by sending a message to the "Read Window", forcing 
>an EndDialog() call. This closed the Read Window allright, but not its childs. 
>
>  Now, I know windows created with DialogBox() are supposed to be ended with 
>EndDialog(), but I tried DestroyWindow() on the Read Window and it worked 
>almost perfectly.
>  It did kill all the child windows as well as the Read Window itself, the
>only problem being that the Main Window got disabled. It still accepts 
>messages, but no input.

A modal dialog box disables its parent window (p 192, Guide to programming)
which prevents the parent from getting any input. I would guess that destroying
the child does not re-enable the parent. Try sending a WM_ENABLE message to
the parent before or immediately after destroying the child window.

Tom Hill
Newsgroups: comp.os.ms-windows.programmer.misc
From: bartels@sweetpea.jsc.nasa.gov (Jeff Bartels)
Subject: Re: Borland C++ v2.0 & v3.0
Organization: /u51/Users/bartels/.organization
Date: 28 Sep 92 11:12:20

>>>>> In article <9vgz4rh@rpi.edu>, wongl@vccsouth27.its.rpi.edu (Lance) writes:
 >> Nntp-Posting-Host: vccsouth27.its.rpi.edu

 >> 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)

 >> thanks for any help...

 >> Keywords: 


There are a number of important differences between the Windows 3.1
header and the pre 3.1 version. If you have BC2.0 you do not posess
the Windows 3.1 version of windows.h. There are attendant differences
in programming style with Win3.1 which result from the adoption of
strict compiler type checking - for example and instance handle in
pre-3.1 would be declared as:
	HANDLE hInstance;
the HANDLE type was just an integer. In 3.1 under strict type
checking, the handle is declared as:
	HINSTANCE hInstance;
the HINSTANCE type is actually a structure type and the compiler can
check the usage of this very effectively. (This is how it should have
been all along). 

To make matters more-complex, BC++ 3.1 allows you to use the new
strict type checking features, or not, so you #define a STRICT symbol
to use the strict type checking. I think this is Borland's own way of
doing things, so the version of windows.h that Borland distributes is
probably not the same as that which comes with the MS SDK 3.1.
But in the end, all of the definitions that implement this are in windows.h.

My suggestion is that you upgrade your BC to 3.1 pronto. The windows
API is expanded and changed for Win 3.1, and you won't get any help
on this from BC++2.0.




Newsgroups: comp.os.ms-windows.programmer.misc
From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
Subject: Re: powers of four and Windows?
Organization: University of Illinois at Urbana
Date: Sun, 4 Oct 1992 23:25:04 GMT

mccreary@sword.eng.hou.compaq.com (Ed McCreary) writes:

>Ok, so what's so special about multiples of four?

       You can fit 4 bytes into a 32-bit word.

>What's the deal?!?!?

       Moving the data around can be done more efficiently in 4-byte
       chunks, especially on 386 machines.   

-- 
------------------------------------------------------------------------
 "Never believe anything a female says, unless it rips your heart out."
 -A brilliant discovery by me on Sept 27, 1992
  John A. Slagel, email: jas37876@uxa.cso.uiuc.edu
From: lance@lancea.actrix.gen.nz (Lance Andrewes)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: NetBIOS under Windows
Distribution: world
Date: Tue, 29 Sep 92 06:33:10 GMT
Organization: none

clay@claris.com writes in article <15205@claris.com>:
> 
> I'm looking for any sources of infomation for doing peer-to-peer NetBIOS
> communications under Windows. Source code examples, books, articles,
> or experts would all be handy. Also the name of any shipping product that
> currently does this would be useful.

Try the Microsoft Systems Journal, August 92.  The article
"Developing Network-aware Programs Using Windows 3.1 and NetBIOS",
by Ray Patch and Alok Sinha.

Using information in that article, a couple of colleagues took about
a day to get PC's talking over our network.
__
 _______  Email: lance@lancea.actrix.gen.nz
////      ZL2AJH    Wellington, New Zealand
Newsgroups: comp.os.ms-windows.programmer.misc
From: jas37876@uxa.cso.uiuc.edu (John A. Slagel)
Subject: Can I use mem at D000 and I/O ports?
Organization: University of Illinois at Urbana
Date: Sat, 3 Oct 1992 20:08:28 GMT

   BACKGROUND INFO:
    I am writing a program to read in from a VIGA-16 frame grabber.
    Basically, you send a couple of instructions to the card using
    outp( 0xE22, 64+32 ), and then you read in the pixel values from
    the memory region at D000:0000-FFFF.

    Well, a couple of posts ago I saw that you need to do something
    special to read from this memory region... AAAA!!!! That means
    I have to rewrite the library that comes with the card! Oh, well,
    I can do that, but now I wonder about the I/O ports:

   QUESTION:
    Will I need to do anything funny to read/write from I/O ports, or
    can I still just use inp and outp?

    The reason I can't just test this is because the card is on a computer
    at work that doesn't have enough room to install the C/C++ environment,
    and I don't want to waste time trying it if I know it won't work. (I'm
    a student and I have to ride a #$@% bus out to work. )

    Thanks for all help!
-- 
------------------------------------------------------------------------
 "Never believe anything a female says, unless it rips your heart out."
 -A brilliant discovery by me on Sept 27, 1992
  John A. Slagel, email: jas37876@uxa.cso.uiuc.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: cwvernon@napier.uwaterloo.ca (Vern)
Subject: Re: Changing a window's title after creation
Organization: University of Waterloo
Date: Mon, 5 Oct 1992 14:09:16 GMT

In article <BvMnIJ.Cx7@alsvid.une.edu.au> rbyrnes@alsvid.une.edu.au (Rod Byrnes) writes:
>Does anyone know how to change a window's title, after the window has
>already been created? 
 
Try using the "SetWindowText" command.  Is that what you're asking?


Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: powers of four and Windows?
Organization: Compaq Computer Corp.
Date: Wed, 30 Sep 1992 02:09:52 GMT

Ok, so what's so special about multiples of four?

I'm using SetDIBitsToDevice to display grey scale image data.
It only works if the dimensions of the image are multiples of 4.

When trying to set CF_DIB data to the clipboard, it only works
if the dimensions are multiples of 4.

4x4 works, 44x44 works, 100x100 works, but not 130x130 or 255x255!!!

What's the deal?!?!?

Is there anyway around this besides forcing the data to occupy a 
chunck of memory equivalent to (n*4)x(n*4)?

Don't tell me, Bill Gates thinks that 4 is a nice pretty number
and has declared that all bitmaps shall occupy a size equivalent
to a multiple of four. 

help?
eddie

--
In the midst of the word he was trying to say,|McCreary@sword.eng.hou.compaq.com
     In the midst of his laughter and glee,   |Me, speak for Compaq?  
He had softly and suddenly vanished away---   |Yeah, right.
     For the Snark *was* a Boojum, you see.   |#include <stddisclaimer.h>
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Problem with DialogBox & DestroyWindow.
Keywords: modal, dialogbox, enddialog, destroywindow
Date: 30 Sep 92 17:40:35 GMT
Organization: PE-Nelson

In article <1aaeeaINNoim@cs.tut.fi>, pk64380@cs.tut.fi (pazi) writes:
|>   The application I'm working on has a modal child window, say the
|> "Read Window" created with DialogBox().
|>   This child in turn may have several (one at a time, though) modal child
|> windows, which in turn may have childs, etc, etc, all created with 
|> DialogBox(). 
|>   The application also has a modeless window, the parent of which is the 
|> main window. When certain events occur in this modeless window it may become
|> essential to close the "Read Window" along with any childs it may have. 
|> I tried to do this simply by sending a message to the "Read Window", forcing 
|> an EndDialog() call. This closed the Read Window allright, but not its childs.

This does seem strange!  If the Read Window was really destroyed its children
should certainly be also.

I think what you'll have to do is keep enough state in the Read Window dialog
so that it knows which child may be present; likewise each child must know
which possible sub-child is present, if any.  Then, modify the code that
handles this message you send so that any of these dialogs first forwards
the message to an open child before calling EndDialog.  This will result in
a bottom-up invocation of EndDialog calls without your having to keep
explicit track of all the dialogs that may be up (each dialog simply has to
track its one possible child).

 
|> 
|>   Now, I know windows created with DialogBox() are supposed to be ended with 
|> EndDialog(), but I tried DestroyWindow() on the Read Window and it worked 
|> almost perfectly.
|>   It did kill all the child windows as well as the Read Window itself, the
|> only problem being that the Main Window got disabled. It still accepts 
|> messages, but no input.

I'd guess this is because EndDialog is needed to exit from the secondary
GetMessage loop for modal dialog boxes.  The windows are destroyed, but you
aren't returned to your own message loop and the USER code is filtering input 
for potential dialog control.


----------------------------------------------------------------------------
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: wongl@vccsouth27.its.rpi.edu (Lance)
Subject: New Windows Programmer
Reply-To: wongl@rpi.edu
Organization: Rensselaer Polytechnic Institute, Troy, NY.
Date: Sun, 27 Sep 1992 05:46:19 GMT

Hello, I don't know if this is the appropriate group to post my question
in but here goes.  Im starting to program in Windows, and instead of
searching this huge book I bought for Windows, could someone tell me
how to access dos functions.  I simply want to get a directory listing
and put it in a Listbox.  Also, I wish to eventually open and read
some files....

Thanks.

Keywords: 

Newsgroups: comp.os.ms-windows.programmer.misc
From: ekalenda@netcom.com (Edward J Kalenda)
Subject: Re: Windows programming
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Thu, 1 Oct 1992 21:33:55 GMT

From article <1151@tdat.teradata.COM>, by syy@ElSegundoCA.ncr.com (Sang Y. Yum):
> 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.

This is in the FAQ file: Charles Petzold "Programming Windows".
-- 

Ed
ekalenda@netcom.COM
Newsgroups: comp.os.ms-windows.programmer.misc
From: ricky@lindblat.cc.monash.edu.au (Mr RS Mcconachy)
Subject: RE: Setting up TDW 3.0 with an ATI Graphics Vantage
Organization: Monash University, Melb., Australia.
Date: Mon, 5 Oct 1992 05:55:01 GMT

Hello people,

Recently there was a discussion on how to set up TDW to work with a
8514a compatible card.  My newsreader can show me the subjects, but
the articles themselves have long since gone :-(  Can somebody please
email me the answer to this query (I am using the 640x480x256 accelerated
mode if that helps any).  I'd like to be able to get this working.
Thanks heaps in advance,

ricky

.sig?  Hey I work as a LISP programmer, do you really wanna wade through
all the parentheses I'd use?
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: File Open Dialog Box
Date: 30 Sep 92 17:46:06 GMT
Organization: PE-Nelson

In article <717815701snx@vandi.ars.cl>, franca@vandi.ars.cl (Franca Oppici S.) writes:
|> Does any body know if Windows 3.1 provides functions to help the
|> creation of an Open File dialog box, according to the new standard, used
|> in all the new Microsoft applications?
|> 
|> This dialog boxes use special icons to display drives, directories and
|> files.
|> 
|> Do I have to use owned-draw list boxes and display each item using bitmaps?
|> 
|> I have been reading "The Windows Interface: An Application Design Guide",
|> that cames with Windows 3.1 SDK. It explains in details how this dialog
|> box should be, but it does not give any help on how to implement it.
|> 

You want to use the Common Dialog for opening files.  Common Dialogs for
file open, save, print, and font selection are supplied in the COMMDLG.DLL
library supplied with 3.1.

Look in the Programmer's Reference Vol I (Part 2 - Extension Libraries) for
an overview.


----------------------------------------------------------------------------
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: dobbins@lan.ccit.arizona.edu (Gary Dobbins)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: How to keep window at Bottom?
Date: 5 Oct 92 20:42:09 GMT
Distribution: usa,world
Organization: University of Arizona

Is there a preferred or standard (or even somewhat reliable) way to keep an 
app's window at the bottom of the Z-order?

(sorry if this is a FAQ, but I can't find it in any lists)

Thanks in advance...


        Gary L. Dobbins  *  University of Arizona  *  (602)621-6715
             dobbins@arizona.edu  *  dobbins@arizvms (bitnet)
Newsgroups: comp.windows.ms.programmer,comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: Bernard Orenstein <bernie@resntl.bhp.com.au>
Subject: Toolbook & DLL's ... suspected problems with stack size ... HELP!!!!
X-Xxdate: Tue, 29 Sep 92 01:43:00 GMT
Organization: BHP Research (Newcastle Laboratories)
X-Useragent: Nuntius v1.1.1d9
Date: Tue, 29 Sep 1992 07:34:55 GMT

I am having problems trying to create an interface to a large C
package with "TOOLBOOK". I have encapsulated the package into
a DLL, as Toolbook requires, and several of the functions within
it that I want to access can be called from Toolbook without
any problems. However one particular function uses the stack
extensively, and Toolbook gives an "unrecoverable application
error" when I try to call it.

	The function in question is also unusual ( as compared to the
	working functions) in that it is quite large.

Has anyone encountered this memory management problem with Toolbook
before, and solved it ?

I suspect that I am running out of stack space when the
function is called, but don't know how to increase the stack
size under TOOLBOOK.

Would appreciate any help you could provide ... please mail me.
From: paul@gst.kiev.ua (Paul Vedin)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: [News] Re: Edit control size limit
Date: 5 Oct 92 05:12:22 GMT
Reply-To: paul@gst.kiev.ua
Organization: Applied Informatics Institution, Kiev, Ukraine

In article <BvHyA4.85K@undergrad.math.waterloo.edu> writes:
>   In article <beckley.717895870@qualcom> beckley@qualcom.qualcomm.com (Jeff Beckley) writes:
>   >It appears that if I try to put a text block greater than 9 or 10K in an
>   >edit control, it just plain gets ignored.  I have sent EM_LIMITTEXT with 0
>   >for the wParam (which the documentation says translates to a limit of 64K).
>   >
>
>   Actually, an edit control cannot have more that 32K worth of text in it.
>
In reality you may send EM_SETHANDLE message to the EDIT control,
it will enlarge a memory limit to 64K.
-- 
Paul Vedin:     paul@gst.kiev.ua		(Relcom)
    		paul%gst.kiev.ua@relay.ussr.eu.net    (Internet)
Applied Informatics Institution, Graphical Interface Dept.
Kiev, Ukraine (+7 (044) 221-27-94)
Newsgroups: comp.os.ms-windows.programmer.misc
From: shutoh@lab4.yamaha.co.jp (Kazuhiko -Chun Li- Shutoh)
Subject: MediaVision's CDPC
Organization: YAMAHA CORPORATION, Hamamatsu, Japan
Distribution: comp
Date: Sat, 3 Oct 1992 09:27:23 GMT


Hi,

I have just install MediaVision's CDPC audio Subsystem and Win3.1, C700.
My problem is,

1. Can't any 16bit Play/Rec. (8bit Play/Rec are looks ok)
2. I tried MIDIMON.EXE (C700SDK Sample) does not work. Put "An invalid
 parameter was passed to a system function" message, and nothing happened.

Please help me!
--
						Kazuhiko Shutoh
						shutoh@lab4.yamama.co.jp

Newsgroups: comp.os.ms-windows.programmer.misc
From: cwvernon@napier.uwaterloo.ca (Colin Vernon)
Subject: Re: Edit control size limit
Organization: University of Waterloo
Date: Fri, 2 Oct 1992 13:46:51 GMT

In article <beckley.717895870@qualcom> beckley@qualcom.qualcomm.com (Jeff Beckley) writes:
>It appears that if I try to put a text block greater than 9 or 10K in an
>edit control, it just plain gets ignored.  I have sent EM_LIMITTEXT with 0
>for the wParam (which the documentation says translates to a limit of 64K).
>

Actually, an edit control cannot have more that 32K worth of text in it.

Newsgroups: comp.os.ms-windows.programmer.misc
From: jkf@Franz.COM (Sean Foderaro)
Subject: Re: Keeping Windows Visible
Organization: Franz Inc., Berkeley, CA
Date: Tue, 6 Oct 1992 15:07:35 GMT


>> I would like to know how to keep a window from being overlapped. 

 To do this use CreateWindowEx rather than CreateWindow and 
pass WS_EX_TOPMOST as the first argument.    

 If you change your mind while the program is running you can make
change a window's topmost state with SetWindowPos.
Newsgroups: comp.os.ms-windows.programmer.misc