HDTenEightyP/NetNews huggingface dataset:
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: File Open Dialog Box
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 30 Sep 1992 19:30:12 GMT

Windows 3.1 provides COMMDLG.DLL (which you can redistribute with your app
to run on Windows 3.0 if you wish - MicroSoft says so).  It provides the
'common dialog' functions you require.  All you have to do is #include
<commdlg.h> and call 'em.  It's real simple.  GetOpenFilename is for opening
a new file, GetSaveFilename is for saving a file, ChooseColor is for choosing
a colour etc.  There are also 2 more functions for 'search' and 'search & 
replace' in a text application.  All of them are single function calls and they
are exactly the same as those used in things like Windows 3.1 Notepad, Write
and other 3.1 apps.  Oh yes, I almost forgot about 'PrintDlg' for setting up
the printer.


Newsgroups: comp.os.ms-windows.programmer.misc
From: shayden@ringer.cs.utsa.edu (Sean Lee Hayden)
Subject: Re: Most efficient way to waste time in Windows
Organization: University of Texas at San Antonio
Date: Mon, 28 Sep 1992 16:52:45 GMT

In article <19u0v7INNqsm@sol.deakin.OZ.AU> operator@deakin.OZ.AU (I operate the computer) writes:
>  I am programming in Quick C for Windows and have been 
>  playing around with the BitBit() function trying to do
>  some simple animation. The problem is I am only moving

Well I hate to pawn off you question, but do you know of any libraries that
are made that contain mouse functions?  I really need some functions like
ButtonPos() to tell if and which buttons are being pressed and track
mouse and all that stuff.  This is for a DOS.EXE file that is using the
Microsoft mode (* not ANSI mode *).

Please Please help me.  

P.s I am using QuickC for window  to do this as well.  If you do have 
some libraries or know of where i can get'em mail me back please

Thanks a bunch.
Sean
Newsgroups: comp.os.ms-windows.programmer.misc
From: wongl@vccsouth27.its.rpi.edu (Lance)
Subject: Borland C++ v2.0 & v3.0
Reply-To: wongl@rpi.edu
Organization: Rensselaer Polytechnic Institute, Troy, NY.
Date: Sun, 27 Sep 1992 05:51:36 GMT

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: 

Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: c2s4027@tamsun.tamu.edu (Cedric Sims)
Subject: MSC 7.0 - For sale
Organization: Texas A&M University, College Station
Date: Wed, 30 Sep 1992 14:21:10 GMT


I've been with MS since MSC 5.0, but have decided to move on to
BC++3.1. Therefore, I have a copy of MSC 7.0 w/ Foundation
Classes for sale. Manuals are still in shrink wrap, still have
registration card. You pay shipping, asking $120, neg. Just
give me a good offer, I have no use for MSC anymore. E-mail
(cedrics@tamu.edu) or call (+1 409 862 4104).


Good luck,
Cedrico.
-------------------------------------------------------------------
 Cedric J. Sims                               Texas A&M University
                                         Computing Services Center
 cedrics@tamu.edu                          (SELL)  Room 216 Teague
 +1 409 862 4104                    College Station, Tx 77843-3142
-------------------------------------------------------------------
-- 
-------------------------------------------------------------------
 Cedric J. Sims                               Texas A&M University
                                         Computing Services Center
 cedrics@tamu.edu                          (SELL)  Room 216 Teague
From: f_tawb@va.nkw.ac.uk
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Finding DLL function params?
Date: 30 Sep 92 10:32:54 GMT
Organization: Natural Environment Research Council


	Can anyone tell me how to find the number of parameters, and their
	types of funtions in a DLL? I can get the names no prob, but the
	params, no way. Am I missing something obvious?

	I want to do it so that I can have a poke around all these DLL's
	that breed on my hard disk !

	Thanks in advance,

Tam.

----*
----* Thomas AW Brown, ITE-NERC, Midlothian, Scotland.
----* F_TAWB@VA.NMH.AC.UK (if posting probs try 'nsfnet-relay::nmh.va::f_tawb')
----*
----* The saying of David Coleman (an English sports presenter)  #24:
----* "...and just look at him get his leg over !" (talking about a hurdler)
----* 
Newsgroups: comp.os.ms-windows.programmer.misc
From: jta@locus.com (JT Anderson)
Subject: Re: Most efficient way to waste time in Windows
Organization: Locus Computing Corp, Los Angeles
Date: Mon, 28 Sep 1992 16:53:15 GMT

In article <1992Sep25.191443.14800@ncsu.edu> dspascha@eos.ncsu.edu (DAVID SCOTT PASCHAL) writes:
>
>In article <1992Sep25.190709.14423@ncsu.edu>, I write:
>|>Use a timer which can either send your program a message or call a callback
>|>function in your program at specified intervals.
>|>
>|>
>
>Oops.  What I forgot to say here is that in your timer routine (timer message
>case or callback function) you would draw the bitmap and do whatever counting
>you want.

Also, if you need better than 55 ms. timer resolution, you need to use
the multimedia timer functions.

>
>Tschuess,
>David Paschal
From: mike@ravel.udel.edu (Michael James Porter)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Visual Basic => LOCKING the Window Size....
Date: 2 Oct 92 20:47:07 GMT
Organization: University of Delaware

In article <1992Sep30.162122.12377@javelin.sim.es.com> gfowler@javelin.sim.es.com (Gary Fowler) writes:
>You can do this by setting the BorderStyle property of the form.  The one which
>is like the calculator is Fixed Single.  It is only settable at design time.

Its possible to change these things at run-time as well.  You'll need
to change the window style flags using the API.  I don't have the code
handy, but I can dig it up (yes - using VB).

There is a way to hang things up so that a window has a sizable frame
displayed, but it won't resize - but I've not been able to figure out
what causes it.  It doesn't happen all the time.

Mike
Newsgroups: comp.os.ms-windows.programmer.misc
From: bcmatusz@vela.acs.oakland.edu (Brian Matusz)
Subject: Problems with faults ....
Organization: Oakland University, Rochester MI.
Date: Mon, 5 Oct 1992 13:41:03 GMT

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
start up with a GP Fault or a Not Present Fault (varies, but always the
same address).  My main window is a Borland dialog.  By inspecting with
WinSight, it looks like the error comes from the WM_CTLCOLOR message,
which I'm not even processing.

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.

I could swear I saw something along these lines not too long ago on this
news group (before it was moved to comp.os) ... did anybody resolve the
problem?  I have unpacked the examples from Borland, and they all run
without a problem.

This project is urgent, so please reply by mail only, and do NOT reply
to the address this was sent from.  Please reply only to:

  bwilson@crucial.mt-pleasant.mi.us

Thanks ...
Brad Wilson (via a friend's account)
From: f_tawb@va.nkw.ac.uk
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: RE: Printing a PS File from VB
Date: 1 Oct 92 08:54:25 GMT
Organization: Natural Environment Research Council

Assuming I read your problem correctly, you need to send PostScript
commands direct to the printer, so select (or install) the generic/text
only printer driver from Control Panel. This will ensure anything you
'print' goes through unaltered.

Tam.
Newsgroups: comp.os.ms-windows.programmer.misc
From: rchilder@us.oracle.com (Richard Childers)
Subject: Re: NEED C Code for reboot
Organization: Memes-R-Us
Date: Tue, 29 Sep 1992 23:32:59 GMT
X-Disclaimer: This message was written by an unauthenticated user
              at Oracle Corporation.  The opinions expressed are those
              of the user and not necessarily those of Oracle.

tibor@server.uwindsor.ca (TORONYI TIBOR            ) writes:

>Does anyone have C code to perform a software reboot of a PC.  This reboot
>may be done in/out of MS-Windows.  Is there a difference in the code needed
>to reboot?  If there is could you send both DOS and Windows version?

JMP 0000 ?

-- richard

=====
-- richard childers		rchilder@us.oracle.com		1 415 506 2411
         oracle data center  --  unix systems & network administration
                    Klein flask for rent. Inquire within.
-- 
=====
-- richard childers		rchilder@us.oracle.com		1 415 506 2411
         oracle data center  --  unix systems & network administration
                    Klein flask for rent. Inquire within.
From: pshuang@zurich.ai.mit.edu (Ping Huang)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Borland C++ on CD-ROM
Date: 3 Oct 92 22:25:48 GMT
	<1992Sep29.073530.23898@apricot.co.uk>
Organization: M.I.T. Artificial Intelligence Lab.
In-reply-to: marcusj@apricot.co.uk's message of 29 Sep 92 07:35:30 GMT

In article <1992Sep29.073530.23898@apricot.co.uk> marcusj@apricot.co.uk (Marcus Jenkins) writes:

 > Does anybody know whether the CD will have the binaries in compressed or
 > uncompressed format on the ROM?  I would sincerely hope for the latter.

If I understood the Borland presentation to the BCS about a month ago
correctly, the CD-ROM contains both the set of files to install from
(e.g. the same as the compressed files on the floppies) *AND* a tree of
already decompressed, ready-to-use files -- so that you *CAN* use the
compiler directly off the CD-ROM drive if you are short on disk space.


--
| Ping Huang (INTERNET: pshuang@martigny.ai.mit.edu) speaking for himself.
| "One Thing to name them all, One Thing to define them,
|  One Thing to place them in environments and bind them..."
From: trepe00@DMI.USherb.CA (ERIC TREPANIER)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Subclassing the DeskTop
Date: 29 Sep 92 02:22:59 GMT
Organization: Universite de Sherbrooke -- departement de Mathematiques et d'Informatique

Hello,

I was wondering, if one wants to subclass the desktop window, say to accept
drag-drop from the file manager onto the desktop, what is the recommended
way of doing it?  Is it simply a matter of calling GetDesktopWindow and
then appending your own window proc?  Or is there something more elaborate
involved?

Eric
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
From: jjacob@nyx.cs.du.edu (Jude Jacob)
Subject: Re: Help Me Find Missing Dialog Box Message
Reply-To: jjacob@nyx.UUCP (Jude Jacob)
Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
Date: Thu, 1 Oct 92 13:58:47 GMT

In article <BuqxI0.E40@sti.com> westes@sti.com (Will Estes) writes:
>I'm trying to create an invisible application modal dialog, and
>so far it looks like bad news for me.  I had thought that Windows
[...]

Windows does not let you create invisible modal dialog boxes. So
whether you apply the WS_VISIBLE style or not, or whether you
call ShowWidnow() or not, Windows will always show modal dialog
boxes. The reasoning behind this is that a invisible modal
dialog box effectively shuts down your application. 

If all you are looking to do is to prevent user input for a certain 
period of time, EnableWindow( FALSE  ) should do it. You can set it 
back to EnableWIndow( TRUE )base on a timer or something.

But if you insist on creating an invisible modal dialog box, you
could create a visible dialog box that the user cannot see. No no,
I don't mean - bundle a blindfold with your app.. I mean create the
diaogbox way off the screen. So in your dialog box template,
you will have co-ordinates like 10000,10000 or something.. 

Jude
From: mctate@ac.dal.ca
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: MDI status lines in TPW - what's wrong with code ?!
Date: 3 Oct 92 11:41:39 -0300
Organization: Dalhousie University, Halifax, Nova Scotia, Canada


Hi folks,

I am trying to add a status line to an MDI app. that I am writing in TPW.
Thanks to help from a previous posting, I decided to subclass the TMDIWindow.
InitClientWindow method to resize the MDIClient window relative to the 
borders of the frame window, therefore making room for my status line. I 
wrote the following:

PROCEDURE TTestMDI.InitClientWindow;
  var MDIClient : TRect;

  BEGIN
     TMDIWindow.InitClientWindow;
     
     {get the client window's coords. into a TRect}
     GetClientRect(ClientWnd^.HWindow, MDIClient);

     {resize the client window by 10 units at bottom to accomodate
     the status line}
     SetWindowPos(ClientWnd^.HWindow, 0, MDIClient.left, MDIClient.top,
       MDIClient.right, MDIClient.bottom - 10, SWP_NOZORDER);

     {add scrollers to the resized client window}

    WITH ClientWnd^.Attr DO
      Style := Style or WS_VScroll or WS_HScroll;
  END;

However, the scrollers always occupy the edges of the frame window
leaving no room for my status line at the bottom, so I'm probably doing
something really stupid. I have also tried substituting the SetWindowPos
call with the following:
  
     MoveWindow(ClientWnd^.HWindow, MDIClient.left, MDIClient.top, 
      MDIClient.right, MDIClient.bottom - 10, True);

This makes no difference at all. I would appreciate it if anyone could
either point out my folly or suggest an alternative course of action in
TPW. If anybody has some TPW source code, I would also appreciate seeing
it.

Thanks in advance,

--
Marcus Tate.
Grad. student. (mctate@ac.dal.ca).
Newsgroups: comp.os.ms-windows.programmer.misc
From: whedon@netcom.com (Bill Whedon)
Subject: Re: install.exe source for windows
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Tue, 6 Oct 1992 05:43:54 GMT

In article <ld1b94INNhcs@jethro.Corp.Sun.COM> alby@goldbelt.Corp.Sun.COM writes:
>
>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.
>

(rest of note deleted)
Run, don't walk, down to your local computer bookshop (in your case, it
would be Computer Literacy on First and Trimble in San Jose), and grab a
copy of "Windows 3:  A Developer's Guide" by Jeffrey M. Richter, published
by M&T Books, ISBN 1-55851-164-4, price $39.95US, including diskette.  This
fantastic book has a VERY NICE install program, which its author invites you
to use as your very own.  Source code is provided, so it's entirely simple
to customize it for your own uses, as well.  I made mine check for situation
of previous installation by first looking in the win.ini, where I put some
of my customization options, changed the color of the meter bar, and did a
few other little niceties for the user.  BUT, the program is usable right
out of the box, with no alterations other than placing your own stuff in its
.inf file.  I recommend the book HIGHLY, just for that piece.  But there are
quite a few other usable items therein.  One of your Best Buys.
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: babu@hal.nta.no (Baard Bugge FNI)
Subject: RE: Printing a PS File from VB
Organization: Norwegian Telecom Research
Date: Fri, 2 Oct 92 13:25:17 GMT

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

-- 
BaBu
From: rbyrnes@alsvid.une.edu.au (Rod Byrnes)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Changing a window's title after creation
Date: 5 Oct 92 02:42:18 GMT
Organization: University of New England - Northern Rivers (Lismore)

Does anyone know how to change a window's title, after the window has
already been created? I'm using Turbo Pascal for Windows. What I need
to do is change a window's title after performing a 'SaveAs'. I can't
find this anywhere in the documentation, but it is a pretty important
topic. There must be a simple answer, but it is so frustrating trying
to find it. Any help is greatly appreciated.
-- 
Rod Byrnes  Internet:  rbyrnes@alsvid.une.edu.au   Phone:  +61 66 891067
    University of New England, Northern Rivers (Lismore) NSW Australia
From: pk64380@cs.tut.fi (pazi)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Problem with DialogBox & DestroyWindow.
Keywords: modal, dialogbox, enddialog, destroywindow
Date: 29 Sep 92 20:31:06 GMT
Organization: Tampere University of Technology
NNTP-Posting-Host: kaarne.cs.tut.fi
Originator: pk64380@kaarne.cs.tut.fi


  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.
  
  The question is, is there any way to work around this? Or basically, is
there any way to kill a modal dialog box along with all its possible child 
windows without having its parent disabled? I wouldn't like to go through
all the child windows, killing them one by one, as there may be almost
any number of them. 
  
  Since this piece of $#!T is about to be released fairly soon, I'd be more
than thankful for any answers or hints ASAP.

-zi

 ==================================================================== 
I     Pasi Kuusisto       I Pasi.Kuusisto@FIN2101.ICL.ICL.MAILNET.FI I
I        (pazi)           I pk64380@cs.tut.fi                        I
I                         I pazi@cc.tut.fi                           I
I "Tough luck, you lose!" I +358 31 509 669                          I
 ====================================================================
From: Monroe.Thomas@ttlg.UUCP (Monroe Thomas)
Sender: postmaster@ttlg.UUCP
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: 1ms timer required
Date: 29 Sep 92  22:45:02 mst

JJ>Hello there,

JJ>I wrote a nice playback program for the atari st to play MIDIFILES.
  >Since I do own a PC with windows 3.1 too, I wanna port this to MSDOS.
  >I will make the program public available.
  >This program does have all the features to adapt the song to your MIDI
  >equipment, analyse it, convert it to other MIDIFILE format, includes
  >mappers, tranpssing, etc, etc.

JJ>I can do a lot with windows, but I have one huge problem.
  >MIDI output requires an internal clock of about 1ms. (anything
  >between 0.6 and 1.5 ms will do too). I have no clue how to get
  >such timer (counter) within windows, or how to access it from
  >my program.

JJ>All I need is a long word (4 bytes) that increments every milisecond
  >and that I can read it from within my windows program. Although it would be
  >nice if I can reset the counter from within my windows program, the latter
  >is not really necessary.

JJ>Any help would greatly be appriciated!

JJ>O, yeah, I do have Borland 3.0.


Grab BC++ 3.1, and then investigate the mmsystem.dll API.  It contains
interfaces to timers with resolutions of 1 millisecond.

-Monroe

 * OLX 2.2 * "I've dropped my toothpaste," said Tom crestfallen.

 * Origin: Through the Looking Glass (42:100/14)
Newsgroups: comp.os.ms-windows.programmer.misc
From: anderson@mayo.edu (Alfred I. Anderson)
Subject: Visual Basic MultiMedia Control - Bug Found
Organization: Mayo Foundation
Date: Wed, 30 Sep 1992 21:11:52 GMT

I've been unable to do a satisfactory RECORD using the Multimedia Device 
Control that is part of the Visual Basic Professional Toolkit.  Although 
audio data is acquired, more data is "played back" than is sampled.  This 
leads to a most annoying noise at the end of the sampled data.  Use of the 
Position attribute does not work either.


If you have Visual Basic and the VB Professional Toolkit with an audio 
capture/playback board and would like to simulate the problem on your 
system, do the following:

Create a form with the MCI control.  Name the control MMControl1.

In your Form Load procedure:
	MMControl1.DeviceType = "WaveAudio"
	MMControl1.FileName = "Newfile.wav"
	MMControl1.Command = "Open"

Run the application

Press the Record button in the multi-media control (the 8th box, with a 
circle).  Speak into a microphone for two seconds then press stop (the 7th 
box from the left with a small square in it).


Press Rewind (the first box looks like   |<   ).

Press Play (the third box. looks like    >    ).


If your system is like mine, you'll hear your two second voice followed by a 
few seconds of garbage.  The garbage may sound random or it may be a repeat 
of a portion of the prior voice recording.


I would be VERY interested if you can confirm/disprove the 
above.

Alfred
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Alfred Anderson                Internet:    anderson@Mayo.edu
Mayo Foundation - Rochester MN 55905
-----------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc