HDTenEightyP/NetNews huggingface dataset:
From: slahiri@magnus.acs.ohio-state.edu (Santanu Lahiri)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Free System Resources problem
Date: 11 Sep 92 14:59:45 GMT
Distribution: usa
Organization: The Ohio State University

Hi,  I am trying to calculate FSR values using MS SDK 3.1.  I am using
the GetFreeSystemResources call, but I have run into a problem.  For some
reason, the two calls

nFSRSys = GetFreeSystemResources (GFSR_SYSTEMRESOURCES);
nFSRGdi = GetFreeSystemResources (GFSR_GDIRESOURCES);

always seem to return the same value.  I have been checking the free memory
available as well, and I am finding that even when that changes by some large
amount, say about one megabyte, there is no change in the nFSRSys value.  On
the other hand, any time nFSRGdi changes, it is immediately reflected in
nFSRSys as well.  Can anyone confirm this?  If this is as it should be, what
exactly is GFSR_SYSTEMRESOURCES returning?

Thanks.


-- 
Santanu
-------------------------------------------------------------------------------
:: cat flames > /nev/dull                     slahiri@magnus.acs.ohio-state.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: yefchak@hplabsz.hpl.hp.com (George Yefchak)
Subject: Text angle?
Date: Sun, 6 Sep 1992 23:20:08 GMT
Organization: Hewlett-Packard Laboratories Palo Alto,CA

What's the proper way to draw text in a window at an angle?
That is, I want the baseline of the text string to be at
an angle other than horizontal.  Thanks alot!
George Yefchak        yefchak@hpl-spin.hpl.hp.com
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Scanner drivers
From: <DMTSI@CUNYVM.BITNET>
Date: Monday, 7 Sep 1992 00:56:19 EDT
Organization: City University of New York/ University Computer Center

Hi.
 Does anyone know of a scanner drivers for Windows ( some kind of DLL) ?
Also any drivers for DOS?
-------
dmtsi@cunyvm.cuny.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: mpdillon@uuisis.isis.org (Michael Dillon)
Subject: Scrolling text in a window
Organization: International Shared Information Service (Ottawa)
Date: Mon, 07 Sep 92 07:17:32 GMT

Many applications such as most Word processors must use a scrolling
text window which does not use the same code as an edit control due
to the need for more control or more text buffer space than provided in a 
text control.
 
However, when writing a Visual Basic app, it seems that scrolling a text
window magically becomes slower (much slower) than in commercially
available apps which are written in C.
 
Why is this??  Is there a faster way to scroll than calling ScrollWindow or 
ScrollDC or BitBlt from VB ???  Or is this a problem that is inherent in
the way that VB interacts with the Win API???
Newsgroups: comp.os.ms-windows.programmer.misc
From: dtinker@casper.cs.uct.ac.za (D G Tinker)
Subject: DMA and Windows
Summary: DMA and Windows
Keywords: DMA
Organization: Computer Science Department, University of Cape Town
Date: Tue, 15 Sep 1992 08:34:41 GMT

I need to sample data from a data aquisition board under windows. I have
to use DMA to get high enough sampling rates.

How do I make sure that:

a) the block of memory for the transfer is all in one piece in 
   386 enhanced mode.

b) get the actual physical address of the block for programming
   the DMA controller.

I have managed to figure out the linear address of the block
(GlobalLock,GlobalPageLock,GetSelectorBase etc) but this block's
pages may be scattered accross physical memory.

Do I have to write a VxD or can I just use a simple DLL?

Any replies much appreciated.

Cheers.  

Newsgroups: comp.os.ms-windows.programmer.misc
From: pmueller@ux4.cso.uiuc.edu (Pete Mueller)
Subject: Extracting resources
Organization: University of Illinois at Urbana
Date: Thu, 10 Sep 1992 19:16:05 GMT
Keywords: windows ms workshop

Hello.
I'm writting a program using Borland C++ and owl that is SUPPOSEDLY 
going to modify the menu structure of programs.  My question is:

How do you extract the text file representation of the menu resource?

I know that Borland's Resource Workshop pulls all the resources out of .exe
files, but I don't know how it does that.  Is the a Windows function to get the
menu resource as text?  Or is there a .h file with functions to do that?

Any help would be greatly appreciated.
-pete

-- 
Peter Mueller                                | In the event of an atomic
pmueller@ux4.cso.uiuc.edu                    | attack, the federal rule
pmueller@sumter.cso.uiuc.edu <--- NeXT Mail  | concerning prayer will be
DISCLAIMER: Help! Help! I'm being Repressed! | temporarily suspended.
From: waynet@pendragon.CNA.TEK.COM (Wayne Turner)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: ?'s on running non-win apps under Win 3.x
Date: 15 Sep 92 15:10:17 GMT
Organization: Tektronix, Inc., Redmond, Oregon

Sorry if these are FAQ's but...

How does a non-windows application detect if it is running under
Windows? I'm currently using Borland C++ in case you know of
a library function that does this. Since I'm on this subject
are there any "official" guidelines on what non-win apps
should *not* do when running under Windows (especially in
the area of communication with EMS or XMS managers, direct
video writes, and use of INT 33)? As you may have guessed
I'm trying to "UAE-proof" a DOS graphics application.

Please email responses.

Thanks,
Wayne Turner (waynet@pendragon.cna.tek.com)
Newsgroups: comp.os.ms-windows.programmer.misc
From: wilcox@swarm.wustl.edu (Don Wilcox)
Subject: Re: StretchDIBits and one other question...
Organization: Washington University in St. Louis, MO
Date: Mon, 14 Sep 1992 18:50:10 GMT

In article <1992Sep13.231220.686@twisto.eng.hou.compaq.com> mccreary@sword.eng.hou.compaq.com (Ed McCreary) writes:
>I'm having an odd problem with StretchDIBits (and SetDIBitsToDevice also.)
>
>...  Now it works fine with
>images with dimensions of 200x200 and 800x800, but when I try 130x130
>or 255x210 it fails.  It returns 0 meaning 0 lines displayed.
>

I got my code working about a year ago, so my memory on the exact backflips
required is a little sketchy, but I seem to remember having to make be DIB a
multiple of 2, or 4.  The sizes given to StretchDIBits could be anything, but
the actual image had these constraints (I think).

>
>The second question is with how to store the image data in memory.
>This works fine and I can access the data sequentially, say
>	
>	char huge *ptr;
>	ptr = (char huge *)GlobalLock(hImageBits);
>	for(i=0;i<40000;i++)
> 	 ptr++;   // for a 200x200 image.
>
>this works fine.  The problem occurs when I try to access a byte
>in the middle.  ptr+=20000 directly instead of moving through all of
>the data.  Is this a problem with the way I'm trying to access
>the memory or do I need to rethink the way I store it.
>
I have no problems doing what you describe.  I use BC++, and have the "fast
huge pointers" option enabled.  Could this be your problem?  Other than that,
I don't see a problem.

Don

-- 
Don Wilcox                         | "For I am not ashamed of the Gospel of
Washington University in St. Louis |   Christ, for it is the power of salvation
email: wilcox@swarm.wustl.edu      |   to all who believe."
Newsgroups: comp.os.ms-windows.programmer.misc
From: joero@microsoft.com (Joe Robison)
Subject: Re: A Visual Basic question
Date: 09 Sep 92 06:27:46 GMT
Organization: Microsoft Corp.

In article <1992Sep8.154902.1@vx24.cc.monash.edu.au> edd701ssft@vx24.cc.monash.edu.au wrote:
> 
> 
> Hi,
> 
> I was wondering if it is at all possible to incorporate a sound playing
> feature into my Visual Basic program (i.e. press a button that will 
> play a prerecorded digitised sound).
> 
> If you have knowledge of such a technique I would greatly appreciate
> you sharing it with me.
> 
> Thanks.
> 
> Please email your replies to :
> 
> edd701ssft@vx24.cc.monash.edu.au
> 
> Vincent,
> 
> Monash University.
> 
 
Piece of cake, assuming you have Windows 3.1 and a sound card (or
at least the PC speaker driver, though your results with that may
be a little disappointing).

In your global module (or the declarations section of any form
or module):
Declare Function sndPlaySound Lib "MMSystem" (ByVal lpsound As String, ByVal flag As Integer) As Integer

In your code:
sndPlaySound "chimes.wav", 1

That's it. If you don't provide a path in the string, Windows looks
for it in your Windows directory. The second argument controls whether 
the sound is played synchronously or asynchronously.
From: grant@pentagon-gw.army.mil (Pete Grant)
Newsgroups: comp.os.ms-windows.programmer.misc,connect.audit
Subject: Re: BWCCENG.DLL not found
Date: 12 Sep 92 17:23:48 GMT
Organization: U.S. Army Artificial Intelligence Center, The Pentagon

In article <BtyHEC.2Jw@ibmpcug.co.uk> derek@ibmpcug.co.uk (Derek Jones) writes:
>I compiled up the \borlandc\owl\exampl31\aclock demo the other day and ran
>it just fine. I then deleted the symbol file (.sym) and ran it again. It
>complained about the above file not being found but ran OK. Recompiled.
>Try again. With sym file it's OK w/out it gives the error but runs. I
>have \borlandc\bin in my path as well as \win31 (of course). I checked.
>There is no DLL of this name on my system. (BC++ 3.1 + AF  - The "works" ).
>Now I suppose I could have lost this file; (I have had some problems with
>SSTOR - you may have seen my other postings......). I can't (and *shouldn't*)
>keep 0.5Mb sym files hanging around.
> 
>Any ideas? RTM's ?
> 
No ideas but some comments.

I tried the same sequence of actions and had no problems.

I have the "works" also.  I do not have  BWCCENG.DLL either.

You probably know this already, but just in case.....  The .SYM files are
used to store precompiled headers.  Deleting it should have nothing to
do with running the executable.

Pete.
From: yfwu@Uz.nthu.edu.tw (EE U780935)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: How do I create .hlp files?
Date: 16 Sep 92 02:00:16 GMT
Organization: National Tsing Hua University (HsinChu)

If you have Visual Basic Professional Toolkit, BC++, MSC/C++, or TPW,
you can use the file "HC" in these application to build your help file.
If you don't have these application, just ask the archie and type       
"prog xantippe". Xantippe is a free help compiler.

You can call help by yourself in Visual Basic by call some API functions,
or you can call Common Dialog routine in VB Pro. Toolkit.

							Y.F. Wu
From: markv@pixar.com (Mark VandeWettering)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Customizing Common Dialogs
Date: 8 Sep 92 20:53:50 GMT
Organization: Pixar -- Point Richmond, California


I am working on customizing a common dialog, and have encountered the 
following problem.  

I wish to define a "palette" of items which are shortcuts to long pathnames;
these would be constantly in view.  When a user clicks on one of these items,
the dialog should do a "chdir" to get to the right directory, and then update
the contents.  Question: How can I tell the common dialog that the current
directory has changed and it should redraw the contents?

Thanks in advance for your answer:
				Mark T. VandeWettdering
				markv@pixar.com
From: stefan@olson.acme.gen.nz (Stefan Olson)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Max memory for Win 3.1?
Date: 5 Sep 92 17:12:54 GMT
Article-I.D.: olson.qi0rqALIBh104h

In <Bu9JAt.Mw3@news.cso.uiuc.edu> dem21178@uxa.cso.uiuc.edu (Dan Montroy) writes:
>How much memory can Windows 3.1 handle at one time?  16MB, or even more?

256

...Stefan

-- 
------------------------------------------------------------------------
   Stefan Olson                     Mail: stefan@olson.acme.gen.nz
   Kindness in giving creates love.
------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: jholdern@casper.cs.uct.ac.za (J E Holderness)
Subject: Cursor in list box & Multiple Instances
Organization: Computer Science Department, University of Cape Town
Date: Wed, 9 Sep 1992 23:57:40 GMT

I have two problems which I'm hoping someone can help me with. The first
is regarding the mouse cursor. I managed to change the cursor in a dialog
box using the GetWindowClass function, and it worked fine, except that it
changed back to the default arrow as soon as it was moved over a listbox
or button.

I don't mind the buttons so much, but the list box takes up most of the 
dialog area, so my pretty cursor hardly ever gets seen. Is there any way
to fix this so that the cursor always stays as specified by the GetWindowClass
function? Better still, is there an equivalent GetWindowClass function for
each control or some way of controlling the cursor for each individual area
of the dialog?

My next problem is with multiple instances of an application. I can tell if
a previous instance is running by checking the hPrevInstance variable, 
but having found that out, I can't seem to get any further. At the moment
all I want to do is terminate the previous instance if it is running, but
more general information on say passing messages to the application would
be useful for future referance.

I "discovered" a function called GetInstanceData, but I have no idea what
it does. What exactly is the data that it returns? If I could obtain the
MainWindow handle using this, then would I be able to send messages to
that window (telling it to close for example)?

Thanks in advance for any help.

- Jim

Newsgroups: comp.os.ms-windows.programmer.misc
From: wwn8108@tamsun.tamu.edu (Weldon Nash)
Subject: Linking a DLL?????
Organization: Texas A&M University, College Station
Date: Tue, 15 Sep 1992 07:06:53 GMT

	Well, I am having huge amounts of trouble in producing a DLL using
BC 3.1 and OWL.  I am trying ot write a DLL for importing custom controls
into resource workshop.  The only problem is that I cannot make it past the
linking phase.  Everything compiles ok.  Basically I have derived a class
from a pre-existing OWL class within the DLL code.  When the linker starts
to go, it flags EVERY one of the member functions as a linker error and it
alwyas happens when it gets to my .OBJ file.  What is the deal here?  Why
can't it link my member functions to the OWL libraries?  By the way, I
am static linking to the OWL libraries.

	Please respond via e-mail. Thanks.

					-Trey

wwn8108@tamsun.tamu.edu
Electrical Engineering Dept
Texas A&M University
Newsgroups: comp.os.ms-windows.programmer.misc
From: twchan%Solomon.Technet.sg (Chan Tur Wei)
Subject: Qns abt drag/drop & GlobalUnlock
Organization: National University of Singapore
X-Newsreader: Tin 1.1 PL5
Date: Fri, 11 Sep 1992 05:25:35 GMT


Dear netters,

I'm posting the questions below on behalf of a friend who's having 
trouble with some Windows programming problem.  Appreciate if someone
could help!

	(1) Supporting "Drag" besides "Drop"

	An application is said to support Drag-n-Drop if it calls
	DragAcceptFiles() and then processes the WM_DROPFILES message.
	However, strictly speaking this is just the "Drop" feature.  How
	can an application also support the "Drag" feature just like the
	File Manager?  That is, how can an application provides files
	for the user to drag and subsequently drop into another
	application?

	(2) Lock and Free Memory problem

	When an application calls GlobalUnlock() and receives zero in
	return, it means that the lock count of the memory handle has
	reduced to zero.  However, when the application immediately
	tries to free it, it receives a GP fault saying that the
	application is trying to free a locked memory object.  This
	problem can be worked around by calling another GlobalUnlock()
	before GlobalFree().  Therefore, it seems that when
	GlobalUnlock() returns a zero, it does not necessarily mean that
	the lock count is already decremented to zero.  Is this true?

I hope someone can help my friend out here.  Replies by e-mail would
be greatly appreciated!  Thanx in advance.


  -T.W.Chan-

Newsgroups: comp.os.ms-windows.programmer.misc
From: tfj@apusapus.demon.co.uk (Trevor Jenkins)
Subject: Serial port access with AMI bios 
Distribution: world
Organization: Job hunters use Parachute
Date: Tue, 8 Sep 1992 18:59:46 +0000


In article <1992Sep8.093437@axion.bt.co.uk> jpennell@axion.bt.co.uk writes:

> I am trying to install 3.0 on a 386SX-25 with AMI BIOS.
> 
> Just once, it appeared to work, however, now the mouse doesn't
> respond (it is a standard serial mouse).  I am confused because
> I have heard rumours that the AMI BIOS causes problems with
> serial port access under Windows.  Is this my problem (probably)?
> 
> Any suggestions like, does 3.1 have the same problem - much appreciated.

I'm running Windows 3.1 on a 386DX with an AMI BIOS (dated 5/5/90 I think).
In the box I have two serial cards (two ports each). I am running with a
MickeySoft mouse (and the latest version of the mouse driver) on port # I
have a V32.bis modem stuck on port 4. I've not experienced any problems
with the mouse or modem. I conclude therefore that if there was a problem
with 3.0 it's been fixed in 3.1.

-------------------------------------------------------------
Trevor Jenkins                                   Radio: G6AJG
134 Frankland Rd, Croxley Green, Rickmansworth, WD3 3AU
email: tfj@apusapus.demon.co.uk
phone: +44 (0)923 776436

Newsgroups: comp.os.ms-windows.programmer.misc
From: bsg1@ellis.uchicago.edu (Ben Gerber)
Subject: Borland Dialogs and Deleted Resources
Reply-To: bsg1@midway.uchicago.edu
Organization: University of Chicago Computing Organizations
Date: Mon, 14 Sep 1992 22:23:27 GMT

Help!

When modeless dialog boxes are deleted, the GUI resources do not
seem to be recovered.  After running the program ~15 times, the
environment is out of GUI resources.  This occurs ONLY when
_modeless_ dialog boxes that are of the Bordlg class are used.

I would appreciate any help at all on this.  Thanks in advance!

						- Ben   
-- 
Ben Gerber  			][
University of Chicago  		][	Lakeshore Technologies, Inc.
bsg1@quads.uchicago.edu		][
From: jdd@bunker.shel.isc-br.com (Judy D. Daniluk)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: TIPS.HLP and Re: Can you change accelerator tables (summary)
Date: 9 Sep 92 13:09:14 GMT
Organization: Olivetti Advanced Financial Development (Shelton, CT)

I posted before to ask about changing accelerator tables during an 
application, and in particular about using multiple accelerator tables
to correspond to the multiple types of children in an MDI application.

One of the replies pointed me to the file TIPS.HLP in the MS C/C++ bin
directory.  It is a WinHelp file with answers to lots of common
programming questions.  I didn't know about it, and I suspect a lot 
of other people didn't, either.

Now, about those accelerator tables...

In my posting, I said that MFC appeared to have a mechanism to handle
multiple accelerator tables for MDI, but it didn't work the way I 
wanted.  Right after I posted, I found the bugs in my code that were 
preventing it from working.  All you have to do to use it is load an 
accelerator table for the MDI child window.  The rest is handled by the 
MFC code.  (I have since figured out how to implement the same mechanism
in C, if anyone is interested.)

And of course, as soon as I answered my own question, the replies
started pouring in ...

Brian Goble (goble@u.washington.edu) told me about TIPS.HLP.  It 
includes a section on dynamic accelerator tables.

Jeff Dean (jeff@igc.apc.org) suggested using my own key table 
instead of the built-in accelerator table mechanism.  This is roughly 
equivalent to the solution in TIPS.HLP.

Robert (heath@grok39.columbiasc.ncr.com) suggested that there was some 
sample code for dynamic accelerators with the Win 3.1 SDK.  I believe 
this is the same as what is in TIPS.HLP.

Thanks to Brian, Jeff, and Robert, and my apologies to the AFX group.


Judy Daniluk 
Olivetti Advanced Finance Development 
jdd@oliafd.shel.isc-br.com
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:28:35 GMT

In article <1992Sep11.014350.1156@iti.gov.sg> kevin@iti.gov.sg (Kevin Patt (SE)) writes:
>Hi,
>
>    I am doing some Windows programming using BC++ 3.1 and I am facing some
>problems with compiling the source into a Windows executable.  The situation
>goes like this:
>
>    The application will run with no problem at all if I run it by making use
>of the "RUN" menu item in BC++3.1.  The problem arises when I run it as a
>stand-alone after compiling and I keep getting the error message "-5" everytime
>I attempts to open any dialogs (those done using the Resource Workshop>. The
>documentation says the error means "Window is invalid because Create did not
>succeed".
>
>    Can anyone help me in this? Thanks!
>
>-- 
>Kevin Patt                                     Information Technology Institute
>Associate Member of Technical Staff            Singapore 
>Email: (Internet) kevin@iti.gov.sg             Tel: (065) 772-0471 
>       (BITNet)   kevinpatt@itivax.bitnet      Fax: (065) 779-5966        


  You are using Borland Custom Controls which make use of the BWCC.DLL
(BWCC.DLL by default gets installed in the \WINDOWS\SYSTEM directory).
To load this DLL do the following:
   - Add the file BWCC.LIB to your project (this file is in the \BORLANDC\LIB
       subdirectory)
   - Include a call to the function BWCCGetVersion() somewhere in your code
       before any dialog boxes are displayed (In processing WM_CREATE or in
       the InitMainWindow function, if you're using OWL).

   You could also force loading the library with the following code, avoiding
the need to include the BWCC.LIB file:

HINSTANCE hinstBWCC;

         .
         .
         .

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

When it's time to end the application:

if ((UINT) hinstBWCC > HINSTANCE_ERROR)
  FreeLibrary (hinstBWCC);


-------------------------------------------------------------------------------
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
-------------------------------------------------------------------------------
From: grant@pentagon-gw.army.mil (Pete Grant)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: 2 ListBoxes; Schedule in windows
Date: 12 Sep 92 16:48:46 GMT
Organization: U.S. Army Artificial Intelligence Center, The Pentagon

In article <1992Sep3.031729.12020@njitgw.njit.edu> axs9017@hertz.njit.edu (Alexander Shinkar) writes:
>Question,Question,Question... x 2
>
>     I need to have 2 list boxes, the user could select from the
>left list box, and the selected item will appear in the right
>list box (Sort of like selecting printers in windows setup)
>The problem that I have, is setting up the 2 listboxes..
>does anyone have a slice of code that will show me how to
>create 2 listboxes that transfer data between them??
>

I've done most of my programming using OWL so I can't give all the details
if you deal with the API directly.  Anyhow, the idea is to grab a hold of
handles to the list boxes, then, as one box gets LBN_SELCHANGE msg,
you'll have to process it and send the other box LB_ADDSTRING (or, if the
string already exists, LB_SETCURSEL).

Hope this helps.

Pete.
Newsgroups: comp.os.ms-windows.programmer.misc