HDTenEightyP/NetNews huggingface dataset:
From: ejs@borland.com (Eric Swenson)
Subject: Re: Can not compile owl.h with TC++ 3.0.
Organization: Borland International
Date: Wed, 8 Apr 1992 23:10:01 GMT

In article <1992Apr6.160529.15456@aber.ac.uk> rjt8@aber.ac.uk (Richard James Taylor) writes:
>
>   We recently upgraded from BC++ 2.0 to BC++ 3.0. We already had the OWL libraries and these worked fine with BC++ 2.0.
>
>   When we tried to compile an application that used owl.h we got errors from the compiler.

You must use the version of OWL for BC++ 3.0.  The version of OWL for BC++ 2.0
will not work with BC++ 3.0.  There were object level changes, RTL header
files dependency changes, and DDVT dispatcher changes.
Newsgroups: comp.windows.ms.programmer
From: ejs@borland.com (Eric Swenson)
Subject: Re: Can not compile owl.h with TC++ 3.0.
Organization: Borland International
Date: Thu, 9 Apr 1992 22:28:51 GMT

In article <1992Apr6.160529.15456@aber.ac.uk> rjt8@aber.ac.uk (Richard James Taylor) writes:
>
>   We recently upgraded from BC++ 2.0 to BC++ 3.0. We already had the OWL libraries and these worked fine with BC++ 2.0.
>
>   When we tried to compile an application that used owl.h we got errors from the compiler. 

I think I responded to this elsewhere, but you must use the BC++ 3.0 version
of OWL with BC++ 3.0.  You can't use the BC++ 2.0 version.  Object file
differences, object mapping difference, DDVT dispatching differences, and
header file differences made the two versions incompatible.  -- Eric
From: ST802200@BROWNVM.BROWN.EDU (Rob Ryan)
Newsgroups: comp.windows.ms.programmer
Subject: Re: .WAV file format
Date: 7 Apr 92 07:16:20 GMT
Organization: Brown University

>I just upgraded to Windows 3.1, which finally has built-in support for
>my SoundBlaster card, but the Sound Recorder and Media player do not
>load anything except Windows .WAV files... making my .VOC library
>useless.  Does anyone know the .WAV file format so I can do manual
>conversions from different formats?  All I need to do is put a .WAV
>header on raw samples.

Refer to the document riffmci.rtf, contained in the .zip file rmrtf.zrt
(yes, it is a .zip despite the extension) at the site ftp.uu.net.  The
.zip file can be found in vendor/microsoft/multimedia.

-- Rob
From: acct103@carroll1.cc.edu (Scott Kramer)
Newsgroups: comp.windows.ms.programmer
Subject: Turbo Pascal for Windows Memory Management
Date: 7 Apr 92 18:23:51 GMT
Article-I.D.: carroll1.3096
Organization: Carroll College-Waukesha, WI

To anyone who may have knowledge of Turbo Pascal for Windows:

I am currently coding a large application to process Mortgage Loans for
my Senior Project.  I have 16 different units currently calling upwards
of 15-20 dialog input boxes.  Now that I have entered code to check 
for input errors.  The program will get to a certain point in dialog
displaying and then send an application error of -1.  I believe this
may mean a memory problem.  My executible file is 200K plus in bytes.

Does you have an idea what this problem is and how can I possibly solve it,
considering this is only 30% of the complete program???

Will virtual memory solve the problem???

Will globallock solve the problem???

Will something else help me???

Please send return mail or phone me collect (414)-567-5490

Scott A. Kraemer, Desperate. ......
Newsgroups: comp.windows.ms.programmer
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: Saving graphics into a file.
Organization: Compaq Computer Corp.
Distribution: usa
Date: Wed, 8 Apr 1992 19:44:49 GMT

In article <1992Apr8.030549.1944@a.cs.okstate.edu> arra@a.cs.okstate.edu (ARRA SHRAVAN KUMAR) writes:
>Dear Netters,
>
>	How do you save into a file some bitmaps? That is , if the user
>draws a series of graphical objects on the screen, how to save this work
>and retrieve when needed?
>Please help me. Thanks a lot in advance.
>

That depends upon how much information you want stored and what programs need
to retrieve it later.  If you want to store an image, the DIB format is
fairly simple and easy to implement.  All of the programs I've
seen which deal with images can utilize this format.  They are the
ones save to your disk with the .bmp extension.

Now, if you are writing an application along the lines of MacDraw, or
something that deals with objects, you may consider defining own format
for saving them.  For instance, if you have a graphics screen full
of squares and circles, you may want to save the end points and color
of the square and the radius, center, and color of the circle.  That
way you could move them around later if you wish.  If you go this
route I'd also include the option of saving the image as a DIBitmap,
since it's so wildly used.

--
McCreary@sword.eng.hou.compaq.com     Computers are like Old Testament gods;
Me? Speak for Compaq?  Yeah, right.   lots of rules and no mercy.
                                                             Joseph Campbell
Newsgroups: comp.windows.ms.programmer
From: donnel@helix.nih.gov (Donald A. Lehn)
Subject: Re: BorDlgs in 3.1
Organization: National Institutes of Health, Bethesda
Date: Mon, 13 Apr 1992 20:12:35 GMT

In article <32784@darkstar.ucsc.edu> sinster@cse.ucsc.edu (Darren Senn) writes:
/>In article <1992Apr10.142752.27495@wuecl.wustl.edu> wilcox@wucs1.wustl.edu (Don Wilcox) writes:
/>>Am I the only one to see this problem (I posted a couple of days ago and got
/>>nothing).  Under 3.1, all my BorDlgs are mis-sized.  I also noticed that the
/>>one in Borland RW were wrong as well.  The strange thing is, when I edit my
/>>dialogs in RW, they look okay.
/>
/>I'm using 3.1 as well, and I don't have problems.  It might be that your
/>system font is messed up.  The system font determines the size of a
/>dialog unit.  Are you using a Windows 3.1 or 3.0 display driver?
/>-- 
/>Darren Senn                                            Phone:    (408) 479-1521

I talked to a Borland rep on the WinBeta forum about this.  He indicated that
there is indeed a problem with th RW not updating files properly in its dialog
boxes and not being able to access all of the system fonts.  These are problems
they are working on and which will be corrected in their updated releases.


--
Donald A. Lehn, Ph.D.                      Phone: (301) 496-2885
Bldg.37 Rm 3D20                            FAX:   (301) 496-8419
National Cancer Institute / NIH            Email: donnel@helix.nih.gov
Bethesda MD 20892
From: steve@monu6.cc.monash.edu.au (Steve Balogh (+61 3 565 4747))
Newsgroups: comp.windows.ms.programmer
Subject: Re: Standard file management dialogs?
Date: 3 Apr 92 06:55:18 GMT
Organization: Monash University, Melbourne, AUSTRALIA

In article <1992Apr2.053330.18656@smsc.sony.com> dce@smsc.sony.com (David Elliott) writes:
>Are there any "standard" file "open" and "save as" dialogs and
>code around?  I don't mind writing a set, but it seems to me
>that if MicroSoft wanted people to make their applications look
>similar, a standard dialog would be a good idea.
>
>In case it matters, I'm using QuickC for Windows and Case:W (Corporate).

You could always use rx.exe (available on cica) to extract the required
dialog boxes from an MS Windows product (eg Write) and use that. Not sure
what the copyright implications are for using standards in this manner! :-(

Regards,
        Steve

----_--_-_-_--_-__-_------_-__---_-___-_----_-____-_-_--__-_--_--___-_-_-_--__-_
Steve Balogh  VK3YMY   (Maths G.14)   | steve@monu6.cc.monash.edu.au
Monash University, Clayton Campus     |      37 54'38.8"S  145 07'47.1"E ...ICBM
Wellington Road, Clayton.  	      |      +61 3 565 4747 Voice (Office)
Melbourne, AUSTRALIA. 3168	      |      +61 3 565 4746 Fax
From: shirley@parc.xerox.com (Mark Shirley)
Newsgroups: comp.windows.ms.programmer
Subject: Needed - Visual Basic graph editing code
Date: 5 Apr 92 06:33:16 GMT
Distribution: comp
Organization: Xerox PARC, Palo Alto, CA


Does anyone have any Visual Basic code for editing graphs (the node & arc
kind) or something like a schematic entry tool that I could use?
 Thanks,
    Mark Shirley
    shirley@parc.xerox.com
From: todd@uhunix.uhcc.Hawaii.Edu (Todd Ogasawara)
Newsgroups: comp.windows.ms.programmer
Subject: Win31 MMSYSTEM.DLL (Multimedia functions)
Keywords: Windows 3.1 Multimedia DLL access
Date: 11 Apr 92 19:03:22 GMT
Article-I.D.: news.1992Apr11.190322.19509
Organization: University of Hawaii at Manoa

Could someone point me to a reference that describes the use of
MMSYSTEM.DLL in Windows 3.1? The book Maximizing WIndows 3.1 has a small
section describing some of the string commands to pass to the mciExecute
function. However, it doesn't say anything about the dozens of other
functions in the DLL that I found using Borland's IMPDEF.
--
Todd Ogasawara, U. of Hawaii
UUCP:		{uunet,ucbvax,dcdwest}!ucsd!nosc!uhunix!todd
BITNET:		todd@uhunix
INTERNET:	todd@uhunix.UHCC.HAWAII.EDU
Xref: sparky comp.windows.ms.programmer:5226 comp.lang.pascal:2799
From: speedy@vax.oxford.ac.uk
Newsgroups: comp.windows.ms.programmer,comp.lang.pascal
Subject: BitBlt & StretchBlt: Is there anything faster?
Date: 6 Apr 92 19:13:16 GMT
Organization: Oxford University VAXcluster

I have written a routine which allows me to have any kind of a frame around a
window - the frame being defined by bitmaps. I display the frame using
StretchBlt and BitBlt - This does seem to be rather slow.. so.. Is there a
faster way of doing it?

Thanks in Advance,
Speedy@uk.ac.ox.vax
From: courtney@data.rain.com (Courtney Meissen)
Newsgroups: comp.windows.ms.programmer
Subject: Re: WINDEBUG.DLL and Windows v3.1
Summary: Can final-beta SDK WINDEBUG.DLL be used?
Date: 8 Apr 92 20:33:55 GMT
Organization: Microtek DSD, Hillsboro, OR


Re: Using TDW with Windows 3.1, I wonder if the WINDEBUG.DLL that
shipped with the final-beta of the 3.1 SDK would work?  Anyone
tried this?

-- 
Courtney Meissen		   Microtek Development Systems Division
courtney@data.uucp		   3300 NW 211th Terrace
uunet!intelhf!percy!data!courtney  Hillsboro, OR  97124  (503)645-7333x446
"There's a light at the end of the tunnel.. I hope it ain't no train."
From: geiser@pictel.com (Wayne Geiser)
Newsgroups: comp.windows.ms.programmer
Subject: Depth of control (Borland vs. Microsoft)
Date: 9 Apr 92 16:50:43 GMT
Article-I.D.: pictel.1992Apr9.165043.1860
Organization: PictureTel Corporation

Is it possible to get the same level of control over windows with the
Borland compiler and their ObjectWindows AF as it is with the
Microsoft compiler and SDK?  I want to be able to get down to the
"real nuts & bolts" of windows in order to do a non-standard
application (i.e. it won't look like the examples in Borland's
documents, maybe like nothing in the Petzold book, either).  Can I do
it with Borland's compiler?

Also, anybody got anything good, bad, or indifferent to say about
Microsoft's 7.0 release?  Still supposed to be available tomorrow like
I hear?  I'll keep your anonomity if you'd like. :-)

**********************************************************************
* Wayne Geiser ("Drivel King")           Voice:    (508) 977-8253    *
* PictureTel Corporation                 FAX:      (508) 532-6893    *
* 222 Rosewood Dr                        Internet: geiser@pictel.com *
* Danvers, MA      01923-1393            CIS:      70313,3615        *
**********************************************************************
"To see a young couple loving each other is no wonder; but to see an
 old couple loving each other is the best sight of all."

        - William Makepeace Thackeray (novelist).
**********************************************************************
* Wayne Geiser ("Drivel King")           Voice:    (508) 977-8253    *
* PictureTel Corporation                 FAX:      (508) 532-6893    *
* 222 Rosewood Dr                        Internet: geiser@pictel.com *
* Danvers, MA      01923-1393            CIS:      70313,3615        *
**********************************************************************
"To see a young couple loving each other is no wonder; but to see an
 old couple loving each other is the best sight of all."

        - William Makepeace Thackeray (novelist).
From: arra@a.cs.okstate.edu (ARRA SHRAVAN KUMAR)
Newsgroups: comp.windows.ms.programmer
Subject: How to Scroll?
Date: 8 Apr 92 02:51:25 GMT
Article-I.D.: a.1992Apr8.025125.29711
Distribution: usa
Organization: Oklahoma State University, Computer Science, Stillwater

Dear Netters,

	My application draws a data structure like a tree or a linked list, in
a window. The size of the tree grows dynamically and is so big that it goes
beyond the screen. So I need to provide scrolling so that th euser can see all
parts of the tree. Obviously, I have to paint the uncovered portion of the 
window when the user scrolls. If I were dealing with text files I would read
from the text file the uncovered portion of the text  and paint it in the 
window. However I am dealing with bitmaps and other graphic objects. How do I do
this? My idea was to draw everything into a temporary drawing area(like a
memory DC) and display a part of it that corresponds to the window whenever a
WM_PAINT message comes. I tried to do this but failed. I heard from someone
that I cannot have a memory DC that is larger than the screen. Is this true?
This is like a paint application where your drawing area is much larger than 
the screen. How can I provide graphic scrolling when my drawing area is 
much larger (about 5 times) than the screen?

Please help me. It is very important for my thesis.

Thanks in advance.

Shravan
arra@a.cs.okstate.edu
Newsgroups: comp.windows.ms.programmer
From: aa596@cleveland.Freenet.Edu (Peter Haller)
Subject: Re: Need help with static vars in multi-instanced code.
Reply-To: aa596@cleveland.Freenet.Edu (Peter Haller)
Organization: Case Western Reserve University, Cleveland, OH (USA)
Date: Tue, 7 Apr 92 19:34:49 GMT


In a previous article, slahiri@magnus.acs.ohio-state.edu (Santanu Lahiri) says:

>I am beginning a port of one application I wrote for DOS.  It requires
>me to run multiple instances of a code fragment within the program.
>Specifically, a list box to select a file.  Now, I have the basic file
>selection window working just fine and dandy.  Unfortunately, the listbox
>approach I took requires declaring static handles for the listboxes within
>the window procedure.  (I create several listboxes on receiving the WM_CREATE
>message)
>
>What happened was that I accidentally clicked on the FILE/OPEN menu item of
>the parent window, and opened a second file selection window.  The new window
>came up, worked fine and exited.  Unfortunately the first window was now dead.
>I could work with the list boxes themselves, but the boxes would no longer
>communicate with eachother.  The reason?  The handles had been whacked by
>the second instance of the window.
>
Use a property entry to store the handles in. Property lists are ideal for 
temporary handle storage. Remember to release them when the window is closed.

PCH
-- 
Peter C. Haller				|	'If you do what you 
Imagination Processing Systems		|	have always done,
aa596@cleveland.Freenet.Edu 		|	expect what you have
"Are we having fun yet?"		|	always recieved.'
From: rambaut@castle.ed.ac.uk (A E Ram aut)
Newsgroups: comp.windows.ms.programmer
Subject: DLLS sharing data between programs.
Date: 16 Apr 92 18:26:00 GMT
Distribution: comp
Organization: Edinburgh University

Is it safe for one program using a Dll to store data using one of the
Dll's functions (e.g. SetNumber(n:integer) ) and then for another
program, also using the Dll to retrieve it with the reverse funcion.
This would be a useful alternative to using DDE messages for transfering
data between two specific programs.  I have tried it and works but is it
safe in all circumstances?

Thanks,
Andrew.
Newsgroups: comp.windows.ms.programmer
From: neven@iastate.edu (Darin E Neven)
Subject: VB: Peek and Poke in VB or through API????
Summary: Peek and Poke equivalents in VB wanted
Organization: Iowa State University, Ames IA
Date: Wed, 15 Apr 1992 07:16:37 GMT

I need to incorporate the following lines of code in to VB that were originally used in QuickBasic to read data from an A/D converter and control output lines on a data acquisition board.  I know not where these Peek and Poke addresses actually reside, I assume on the data acquisition board.

DEF SEG=&HCFF8
20 POKE 8,2
30 m=PEEK(6)

Is there an equivalent to PEEK and POKE in VB, is there a DLL I can use to accomplish this?

Also, how do I install the winapi.hlp file.?

Thanks in advance

Darin Neven
Iowa Sate University
Department of Chemical Engineering
neven@iastate.edu
Newsgroups: comp.windows.ms.programmer
From: bahman@mdd.comm.mot.com (Bahman Khamneian)
Subject: How to force commport to start receiving after XOFF?
Organization: Motorola, Mobile Data Division - Seattle, WA
Date: Thu, 9 Apr 1992 06:38:13 GMT

I am using SDK comm  calls to access the serial ports
with XON/XOFF enabled. I get into a deadlock situation
when the sender transmits an XOFF to me and then hangs. I have
no control on the sender so it is up to my application to
time out and recover from the XOFF. What I though I could do 
is to detect XOFF using COMMSTAT bits and then 
close and reopen the port.
This doesn't seem to me like a good solution. Is there
any way to force serial driver to start accepting
data without reopening the port or receiving XON?

I greatly appreciate your help.
Please forward your answer to bahman@mdd.comm.mot.com
I will post the suggested solutions in couple of day.

Thanks,
bahman khamneian


Bahman Khamneian   | INTERNET:bahman@mdd.comm.mot.com
Tel: (206)487-5947 | UUCP:    ... uunet!mdisea!bahman
Fax: (206)483-3400 |  	      ... uw-beaver!uw-coco!mdisea!bahman
Motorola Inc. (MDD), 19807 North Creek Parkway North, Bothell, WA 98011
From: alan@comp.lancs.ac.uk (Alan Phillips)
Newsgroups: comp.windows.ms.programmer
Subject: Painting icons on the desktop
Date: 15 Apr 92 13:19:11 GMT
Organization: Department of Computing at Lancaster University, UK.

Can anyone give me some recipes for what _ought_ to be simple, but which I
just can't get to work?

Here's the (slightly simplified) background:

I have an app that runs (mostly) as an icon. I need to have two separate
icons to indicate the two possible states it can be in, and the app has to
be able to change them at will. I'm writing this for 3.1 (using the beta 61d
SDK, as my real 3.1 SDK isn't here yet)

My initial approach was to register the window class to use icon A, and then
use SetClassLong to change to whatever the icon needs to be.  (This is a single
instance app, so I don't have the problem of other instances finding their ions
changing too).  Problem is, the icon is only redrawn to the new one when the
icon is moved or when the window is restored and then iconised: I can't find
_any_ way of forcing a redraw on demand (InvalidateRect specifying a rect of
NULL does not do it). 

Windows does not send a WM_PAINT to the window icon, ever.

Second approach was to register the window class with a NULL hIcon, and then
trap WM_PAINT messages and use DrawIcon to put in the icon I want. This
works up to a point, but I have problems with the background. Using a desktop
pattern results in bits of it being misaligned, and if there's a wallpaper
bitmap it gets overlaid by the desktop colour.

Third approach was to register with a NULL hIcon in the class, get a DC to the
desktop window and draw the icon on _that_ on a WM_PAINT. Here, though,
windows seems to draw the desktop background _after_ I paint the icon.

So can anyone give me a good recipe for doing this? It has to be possible,
since the VB prototype for this app can do it! What am I missing?

[Possibly of interest is that the WM_PAINTICON message that 3.0 uses in
these cases does not seem to exist in 3.1. It's not in my windows.h file
(a bug, perhaps?) and SPY doesn't show it either]

If you could reply by mail it would be helpful, as a reply here will probably
be cleared before I get back from Easter holidays.  Incidentally, this is a
network MOTD file reader/monitor app: when it's done and this last little
problem is gone, I'll release it to public domain with source. 

Thanks in advance,

Alan
From: jinli@dgp.toronto.edu (Jin Tonic Li)
Newsgroups: comp.windows.ms.programmer
Subject: OLE 2.0 and file transfer
Date: 12 Apr 92 03:23:19 GMT
Distribution: na
Organization: Department of Computer Science, University of Toronto


Is the doc on OLE 2.0 available?  Where can I ftp it?

I think the OLE technology is great, but how would you transfer(or even a
simple copy in DOS) a compound document?  If the contents of the embedded
objects are incorporated in the document(one of the render options for
OLE objects), it may be easy.  Otherwise, it seems that the communication
programs must know the format/links of the compound document.  In addition
to the compound document itself, the program must find and transfer all
the linked objects.

Is there an easier way to solve this?

--
Jin Li                               (416) 978-6619  //  Gin & Tonic mix well
Dynamic Graphics Project, Dept. of Computer Science  \\
University of Toronto, Ontario, Canada   M5S 1A1     //
jinli@dgp.utoronto.ca          uunet!utai!dgp!jinli  \\    No bugs, no bucks
Date: Tue, 14 Apr 92 00:16:01 +0200
From: Thomas_Hornschuh@softstream.fido.de (Thomas Hornschuh)
Subject: Re: Please.  (Was Re: I Hope the BC++ IDE Editor Supports OLE Soon)
Newsgroups: comp.windows.ms.programmer
X-Comment-To: Eric_Bergman-Terrell@f1.n6000.z2.fidonet.org (Eric Bergman-terrell)
Organization: SoftStream Development, Dortmund, FRG 

EB> void turbo_qsort(...)
EB> 
EB> +-----+
EB> |Info |
EB> +-----+
EB> 
EB> An even better technique might to encode items with further documentation
EB> with a special color.  Selecting such specially colored items would make
EB> their comments visible, but by default the source code would not be
EB> cluttered
EB> with comments.

EB> Well the "gunk" is implicitly stripped.  You only get it if you ask for it
EB> by selecting the icon.
EB> 

Altough your idea is quite interesting, there is a technical problem:
ASCII files are the standard way to represent source code. They can be 
processed by nearly every machine, operating system, WAN and - most important - 
programming tool. But you can't include objects in ASCII files. So the compiler 
/ IDE will introduce a own representation. Even if the compiler vendors for 
Windows compilers will agree on a common standard, this will be limited to 
windows, because OLE is a sole windows feature. OK, the easy way is a Command 
"Save as ASCII", but than your graphical comments will be lost. Such a stripped 
version of your code will be even less undestandable as the old style ASCII 
commented version. I am afraid that a OLE IDE will be usefull for internal 
documention but not for distributing source over the net.