HDTenEightyP/NetNews huggingface dataset:
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Spice32 for Windows / Windows NT & win32s uploaded
From: robert@koko.csustan.edu (Robert Zeff)
Date: Thu, 7 Jan 93 04:36:52 GMT
Organization: CSU, Stanislaus

I've uploaded Spice32 for Windows NT & Windows 3.1.  I've included the
Setup and necessary files to install Win32s so that NT binaries, such
as this version of spice, will run on your Windows 3.1 system.

Win32s is Microsoft's DLL which allows Windows NT binarys to run, unmodified,
on WIndows 3.1 systems.

Win32s is still in beta, so you'll want to get a fresh copy when it's
released.

You can get it at:
ftp.cica.indiana.edu, /pub/pc/win3/uploads/spice4.zip

Spice32 is my port of Berkeley's Spice, version 3e2, which is a powerfull
circuit simulator.

Robert Zeff   
(209) 521-1448, 522-5866 FAX
c$erve: 70323,1251

              



-- 
Robert Zeff
    (209) 521-1448
FAX (209) 522-5866
C$ERVE: 70323,1251
From: ee_d270@ceres.kingston.ac.uk (Richard D Knight)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Bitmaps with BC++
Date: 6 Jan 93 14:57:12 GMT
Organization: Kingston University, Kingston-upon-Thames
NNTP-Posting-Host: ceres.kingston.ac.uk


This is 2 questions really.

1. How do I display 3 bitmaps in my main window. Each is 100x100 and
i want them to be below each other. Some sample code would be really useful.

2. When I start my application, I want the main window to be full screen,
without scroll bars, or max/min buttons. Can anyone tell me how to do this.

I am using the OWL for the application.

Thanks a lot

ee_d270@king.ac.uk
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: Data Type problem !! 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Sat, 9 Jan 1993 17:42:02 +0000

In article <1993Jan9.085030.11967%gtonwu@Uz.nthu.edu.tw> gtonwu@Uz.nthu.edu.tw writes:

>Hi, there 
>
>     I am confused by type data types of MSC ! I don't know what is the
>     difference among them , since I was simply using int,unsigned,char..
>     while I did programming under MS-DOS before    !
>
>     Would someone kind enough to tell me the distict difference of the 
>     following !?
>
>       WORD , DWORD, LONG, WPARAM, LPARAM , ... 
>
>       and some others I have to know !
>

Basically, the reason these new types are there is so you can write source
code which is portable between 16 and 32-bit versions of Windows.  Eg, an
"int" is 16 bits in Windows 3.1, but 32 bits in Windows NT.  A "WORD", on the
other hand, is *always* 16 bits and so is portable.

Basically,

    WORD = unsigned int
    DWORD = unsigned long
    LONG = long

but there's really no need to *know* that.  Just declare your own variables
using the appropriate types and you'll be OK.  If you really *must* know,
the new types are all defined in "windows.h".

The best way to make sure you're using all the new types correctly is to
#define STRICT and then get rid of all the warning messages you'll most
likely get.

>
>-- 
>+--------------------------------------------------------------------------+ 
>| Tony Wu.   (: gtonwu@uz.nthu.edu.tw :)  National Tsing Hua Univ. CHE 95. |
>|                                                                          |
>|    @@#  Hey," You can't beat the feeling !". #@@                         |
>

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Scrolling a Dialog Box
From: tantrum@ccu1.aukuni.ac.nz (Michael Tantrum)
Date: Tue, 12 Jan 1993 22:06:11 GMT
Organization: University of Auckland, New Zealand.
Keywords: scrolling,Dialog
Summary: Scrolling a Dialog Box

I have a problem with a dialog box that I have created.  I want a variable
number of controls, mainly edit and static text controls.  Since I can't
create all these in the resource editor, I think I have to use CreateWindow.

The problem comes when I create more controls than can be seen on the Dialog
Box at once.  How do I connect a scroll bar to the box?  With a window, I
put the scroll bar in the scroller field.  However, I cannot do this with a
dialog box (or can I?).


Thanks in advance,

Michael.

tantrum@mat.aukuni.ac.nz
tantrum@ccu1.aukuni.ac.nz
From: ting@Redwood.XAIT.Xerox.COM (Hungtau Ting)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: C++ static data member in DLLs
Keywords: C++, DLL, VB
Date: 11 Jan 93 15:17:59 GMT
Reply-To: ting@Redwood.XAIT.Xerox.COM (Hungtau Ting)
Organization: Xerox Advanced Information Technology, Cambridge, MA

Hi,

The C++ static data in DLLs does not work properly as stated in Borland C++
Programmer's Guid, page 336:

	Through a DLL's functions, all applications using the DLL
	have access to that DLL's global data.  A particular function
	will use the same data, regardless of the application that
	called it. If you want a DLL's global data to be protected for
	use by a single	application, you would need to write that
	protection yourself.

	The DLL itself does not have a mechanism for making global data
	available to a single application.  If you need data to be private
	for a given caller of DLL, you will need to dynamically allocate
	the data and manage the access to that data manually.  Static data
	is global to all callers of a DLL.

If I'm going to "write that protection myself" everytime I need to 
use static data members in a class, then the C++ programming for DLL
is severe handicapped.

Since our UI is built with Visual Basic (v2.0) which only works with DLLs,
and was ported from SUN UNIX/C++ (a lot of static data), we have no choice
but to "write that protection ourselves".  My guestion is what is most
effective way of re-implementing many static data members into something
acceptable in DLL.

Someone out there in the netland should have delt with this problem already.
So, If you're the someone, would you please email me any info that might
help? 

Thanks,

Hungtau Ting
Software Engneer
XAIT

ting@xait.xerox.com
From: s34090e@kaira.hut.fi (Petri Taavila)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: MDI Child extra bytes
Date: 6 Jan 1993 12:14:09 GMT
Organization: Helsinki University of Technology, Finland
Distribution: world
Reply-To: s34090e@kaira.hut.fi (Petri Taavila)
NNTP-Posting-Host: kaira.hut.fi

I'm writing an MDI application and I have 
difficulties using child window extra bytes
to store child window specific structure handle.

struct CHILD_WINDOW_INFO {
	char title[10];
	int flags;
	etc...
}

The question is how to associate this structure
for each new mdichild window. And how to retrive
fields from the structure later.

Has anybody wrote this kind of implemetation?

If so, please send sample code to me and 
I'll summarize the answers.

//pete

! Petri Taavila ! petri.taavila@hut.fi! Nainen, poliisi ja taxi, ei     !
! t  5673492    !                     ! niit{ koskaan tarvitessa n{y.   !
! k  5061553    !                     ! - Tuntematon kotimainen artisti !
From: guzman@python.cis.ohio-state.edu (jonatan guzman)
Subject: Printing. How to make 11 pt come out...
Organization: The Ohio State University Dept. of Computer and Info. Science
Date: Fri, 8 Jan 1993 14:49:22 GMT

...looking like 11 pt regardless of the device onto which you are rendering the
text?? I have a program that uses TT fonts for output (due to their scalabi-
lity), but I am having to *manually* adjust the font size -when I CreateFont
for the DC- depending on the output device (screen, printer).

I am obviously missing something here. What??

Thanks all
	Jon -- guzman@cis.ohio-state.edu
From: donh@shakala.com (Don Hackler)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Should I use large memory model anyway?
Date: Thu, 07 Jan 93 23:49:48 PST
Organization: Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289

skimmel@iiic.ethz.ch (Stefan Martin Kimmel) writes:

> I have a question about the large memory model. 
> 
> MS and others (Petzold) warn to use the large memory model. On the other
> hand I read that using the large memory model will make your
> code more easily portable to Windows NT.
> 
> What I heard so far about the disadvantages of the large memory model
> is not enough to stop me to try it. 
> 
> We do not need multiple instances of our application and do not 
> have to support Windows 3.0. (not even Standard Modus)
> 
> But on the other hand we want at least part of our application (the
> non-GUI part) to be easily portable to other platforms, and the 
> whole application to be easily portable to Windows NT.
> 
> Have I missed certain important considerations about the large memory 
> model? Do you know of any literature that is more encouraging about
> using the large memory model and explains more about it?
> 

Go for it... The large model eliminates a lot of problems with
Near/Far pointers, DLL interfaces, string libraries, etc.
The drawbacks are 1: single instance of your app, and 2:
a small performance penalty.  
The traditonal Windows thinking was to make the apps small
and fast and multiple instanced; these days you do what
you need to do to get it done.  
If you are going to port to WinNT, start now with at least
using the strict version of the windows.h header file,
and at best, use the Win 32s tools and start your app as a
flat memory model.  It'll be faster and more portable
to other platforms.  (and the port to NT is automatic)

- don

------------------------------------------------------------------
Don Hackler  - donh@shakala.com 
Shakala BBS (ClanZen Radio Network) Sunnyvale, CA 408-734-2289
Newsgroups: comp.os.ms-windows.programmer.misc
From: d88-jwa@byse.nada.kth.se (Jon Wtte)
Subject: Re: Disp 24bpp on 8bpp system?
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Mon, 11 Jan 1993 22:13:50 GMT

In <1ish70INNco6@shelley.u.washington.edu> rberteig@shelley.u.washington.edu (Rolf Berteig) writes:

>A quick way to do this with results better than bliting (getting the 
>20 system colors) but with quality still lacking is to create a standard
>256 color pallet and an inverse pallet (with say 2^5 entries). To display 
>an image, for every pixel you take the 8 bits for red,green,blue and shift 
>right 3 bits (now you have 15 bit color) and use this number as an index 
>into your inverse color map. Your inverse color map then gives the closest 
>fit to your standard pallet. Now you are ready to blit your device dependent
>8 bits per pixel bit map.

This is the way old Color QuickDraw did it on the Mac, and
believe me, it's NOT PRETTY.

However, you can implement error diffusion which calculates
the error from one translated pixel and spreads it to
neighbouring pixels with very little performance degradation;
all you have to do is an extra suctraction after you get the
color, and add that difference to the next "real" color you
want to display. Clear the value for each scanline...

Cheers,

							/ h+
-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --
   This signature is kept shorter than 4 lines in the interests of UseNet
   S/N ratio.
Newsgroups: comp.os.ms-windows.programmer.misc
From: amundh@dhhalden.no (AMUND HALDORSEN)
Subject: DGROUP problem when going from Microsoft C 6.0 to Borland C++ 3.1
Organization: Ostfold College
Date: Tue, 12 Jan 1993 08:44:10 GMT

Recently I began using Borland C++ 3.1 instead of Microsoft C ver. 6.0

When compiling small programs with BC (created with MSC) everything seems Ok.

But when I try compiling a program with several code segments (using large 
memory model), this linker error occurs:

	Group DGROUP exceeds 64K

My program uses some global arrays that occupies a big portion of memory, 
but this is no problem when compiling with Microsoft C 6.0....

Why does Borland say it exceeds 64K and Microsoft say it doesn't ?


Please mail me if you know something I don't...


amundh@dhhalden.no
Xref: sparky comp.os.ms-windows.programmer.misc:4620 comp.os.ms-windows.programmer.tools:1879 comp.object:4718 comp.os.ms-windows.programmer.win32:2698
From: pbh@prjup.mi.org (Patrick B. Haggood)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.object,comp.os.ms-windows.programmer.win32
Subject: OO CASE tooks; recommendations?
Keywords: ooa, object-oriented, ood, Coad,Yourdon, Booch
Date: Sun, 3 Jan 93 20:26:16 -0800
Organization: Project: JUPITER Scientific Software

I've been using 3x5 cards for some smaller projects but I'd really like
to start using some sort of analysis and design tool and start using
the machine for the entire project.  Are there any OO CASE tool users
out there?  What do you use?  Any recommendations? What are the price 	
ranges?  

Please send email rather than post, and if there's sufficient interest,
I'll summarize, especially comp.object readers as my site (me) doesn't 
receive this newsgroup.  Thank you.
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Windows 3.1 LZEXPAND DLL
Organization: Energy, Mines, and Resources, Ottawa
Date: Fri, 8 Jan 1993 00:37:23 GMT

In article <1993Jan07.185848.23956@microsoft.com> dwightm@microsoft.com (Dwight Matheny) writes:
>COMPRESS.EXE comes in the Win 3.1 SDK, and MS does not provide this
>separately. Since you get your tools from Borland, you should be able
>to get this from Borland also. Borland is part of our Open Tools program,
>and COMPRESS.EXE is one of the files that they have a license to 
>redistribute.
>
>-Dwight (MS)

	Yes, it does come with Borland C++.

	However, the bad news is that it would appear to be
	not compatible with the version of compress on Unix
	systems.  I compressed an ASCII file with both the
	MS compress and the Unix compress and while the compression
	amounts were similar, the contents of the files were not
	even close.  I dumped the Unix-compressed file and most of
	it was unreadable binary stuff.  On the other hand, the
	MS-compressed file was partially readable.

	So what gives here?  Is it the same algorithm or not?  Are
	they compatible or not?  Why not!!!!!!!!!!  Shouldn't
	MS's compress.exe be renamed to mscomp.exe so it
	won't get confused with the 'real' compress utility?
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
From: pbh@prjup.mi.org (Patrick B. Haggood)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Programming kit for MS Sound System?
Date: Thu, 7 Jan 93 23:37:26 -0800
Organization: Project: JUPITER Scientific Software

Does Microsoft have any programming info on their sound board?  E.g, 
is there a development kit so programmers can do more with it than
play with Voice Pilot?  I called their product support line, but they 
weren't technically adept, and it appears my CompuServe i.d. has 
expired.

I'm asking because I have a really neat idea for a children's reading
program, if I can get specs on programming for the board....


-- 
Patrick B. Haggood  pbh@prjup.mi.org   	| Wayne State University Physics
Project: JUPITER Scientific Software	| REDUCE COMPLEXITY - RECYCLE CODE
John Burke (Dizzy) Gillespie 1917-1993  | Dawn breaks in Tunisia....
Newsgroups: comp.os.ms-windows.programmer.misc
From: nuscss1@vms1.iscs.nus.sg (Vax BULLET-IN-Board SysOps)
Subject: Re: Turbo Debug in Win3.1
News-Software: VAX/VMS VNEWS 1.41    
Organization: National University of Singapore Dept. of Computer Sc.
Distribution: na
Date: Fri, 8 Jan 1993 23:51:00 GMT

In article <C0H3IE.Hv8@ecf.toronto.edu>, dhaliwa@ecf.toronto.edu (DHALIWAL BIKRAM SINGH) writes...
>Someone responded to my original posting on the net about the inability of
>Turbo Debug for Windows to load in 3.1, however they did say
>it would load in 3.1.  The program complains that it is unable to find
>windebug.dll anywhere (even though I have copied it into every directory
>I know).  Is there something that I am missing,  what do I need to do
>to run the debugger?  Thanks.

	To debug in Windows 3.1 using BC, you'll need to get
	BC++ 3.1. I've heard u can trick BC++ 3.0 to debug
	under WIndows 3.1 if you rename one of its files, but
	i've never been able to verify it.

>..............................................
> Bikram Dhaliwal (dhaliwa@civ.toronto.edu) 
> Toronto        (dhaliwa@ecf.toronto.edu) 
Newsgroups: comp.os.ms-windows.programmer.misc
From: avinogra@empire.cce.cornell.edu (Alex Vinogradov)
Subject: MSC 7.0 patch
Organization: Cornell Cooperative Extension
X-Newsreader: TIN [version 1.1 PL8]
Date: Fri, 8 Jan 1993 17:09:45 GMT

 just spoke to Microsoft customer service and they mentioned that they
have a patch/update for C/C++ 7.0, however it is available only form COMPUSERVE
which I do not have an acount on.  does anyone know where I can get it from
Internet?

Please E-Mail your reply

Thanks, Alex
-- 
---------------------------------------------------------
Alex Vinogradov
Cornell Cooperative Extension, Electronic Technology Group
avinogra@empire.cce.cornell.edu
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: Graphics cut/copy/paste
Organization: Energy, Mines, and Resources, Ottawa
Date: Thu, 7 Jan 1993 22:49:48 GMT

In article <1993Jan07.200849.9892@eng.umd.edu> equine@eng.umd.edu (Melinda L. Gierisch) writes:
>
>I am looking for sample code that allows the user to grab a portion of
>the screen (not window) and copy it to the clipboard or possibly
>another application.  I know that there are commercial software
>packages that contain this functionality, but we would then need to 
>worry about licensing agreements, etc. when distributing our application. 
>
>If anyone knows the proper commands/functions to use, has written such
>a function, or knows of a reference book that contains this
>information, please let me know.

	It's really quite simple.  Assuming you have an HBITMAP,
	you just do:
		OpenClipboard(hwnd);
		EmptyClipboard();
		SetClipboardData(CF_BITMAP,hbitmap);
		CloseClipboard();

	Remember that Windows can copy the whole screen or current
	window to the clipboard with the PrintScreen and Alt-PrintScreen
	keys.  If you want a portion of the screen, find some way to
	select the region (click, drag etc with the mouse) and then
	copy it to a bitmap:
		hdc=GetDC(hwnd);
		hdccompatible=CreateCompatibleDC(hdc);
		hbitmap=CreateCompatibleBitmap(hdc,x,y);
		BitBlt(...)
	I forget the rest, but you get the idea.  Also do *not*
	trust the above pseudo-code - look up the functions
	yourself.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.apps
From: mshiels@TMSoftware.Ca (Michael A. Shiels)
Subject: Winword (WordBasic) vs Winexcel (Macro language)
Organization: MaS Network Software and Consulting
Date: Thu, 7 Jan 1993 00:16:11 GMT

I am interested in changing the defined printer temporarily in the macro
language of choice and then setting it back to what it was.

In WordBasic

Dim dlg As FilePrintSetup
GetCurValues dlg

will save the old values and you can change it then set it back using dlg

Now what can you do with Excel?  I found the way to change the printer
but no way to find out what the current printer is.

MaS
-- 
---

Michael A. Shiels                           | mshiels@masnet.uucp
MaS Network Software and Consulting         | mshiels@tmsoftware.ca
Newsgroups: comp.os.ms-windows.programmer.misc
From: dj@ekcolor.ssd.kodak.com (Dave Jones)
Subject: Re: Converting bitmaps to icons
Organization: Vonnegut Tent Rentals, Inc.
X-Newsreader: TIN [version 1.1 PL7]
Date: Wed, 6 Jan 93 19:08:33 GMT

Tarun Kripalani (tarun@psyclops.psyc.queensu.ca) wrote:
> Is there a way for one to convert bitmaps to
> icons? Admittedly, a complex bitmap when reduced
> to icon size would lose a lot of detail but one
> could still get some idea of the original image.
>  
> TIA.
> 
I've seen a program called BMP2ICO.  I may even have a copy.

Also, you can do a lot worse than just paste into an icon paint program
via the clipboard.  I did that once after capturing a window image using
Alt-PrtScr.  Looked awwwfullll......

--
||------------------------------------------------------------------------
||Dave Jones (dj@ekcolor.ssd.kodak.com)|Eastman Kodak Co. Rochester, NY  |
From: uclydvh@ucl.ac.uk (Mr David John Howells)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Writing a device driver for a A-D and D-A board
Date: 11 Jan 93 14:51:43 GMT
Organization: Bloomsbury Computing Consortium

I have a DSP board which has a couple of 16-bit DA and AD devices on it.
I'd like to use the board with Windows 3.1 to play out .wav files and
generate sounds in arrays and play them out etc...
The board is capable of generating interrupts and doing DMA.
Has anybody written a device driver for a sound board and would be prepared
to share say a skeleton of their code?  

Thanks in advance,

David.
Newsgroups: comp.os.ms-windows.programmer.misc
From: wirtes@mace.cc.purdue.edu (Al Wirtes)
Subject: Keyboard Woes...
Summary: Trouble with my keyboard in windows...
Organization: Purdue University
Date: Sun, 10 Jan 1993 16:42:52 GMT

Hello,

I'm running Windows 3.1 on a Sperry '286 machine souped up with
an extra 4 MB of memory & a co-processor.  It's sluggish, but 
meets my needs...

My only problem is that entering data from the keyboard is a
tedious experience.  I may have to hit a key two or three times
before it registers, and then it might double the character on my
screen.  I figure that my machine is just too slow.

But here's where it gets wierd.  Word for Windows uses the keyboard
just fine.  That is, when I'm typing in Word for Windows, they keyboard
works great, BUT when I go to save the file that I've typed, I have
the same problem.

Oh, and after a while, what I am typing "flips", that is, my lower
case letter come out in upper case, and if I put the shift lock on, I
get lower case.  And, no matter what I do, I can't type any numbers.

Does anyone one know of any software setting or routine that I can
add to make Windows check for a keypress more often?

Thanks in advance,

-Al (wirtes@mace.cc.purdue.edu)



Newsgroups: comp.os.ms-windows.programmer.misc
From: jeremy@cheetah.inmos.co.uk (Jeremy Thorp)
Subject: Re: Books on C7.0 / MFC programming?
Organization: INMOS Limited, Bristol, UK
Date: Mon, 11 Jan 1993 11:38:01 GMT

In article <9301082052.AA25763@suned1.Nswses.Navy.Mil>, jkb@suned1.Nswses.Navy.Mil (John K Bunk) writes:
|> Can anyone recommend any books on C++ programming using
|> MICROSOFT (R) FOUNDATION CLASSES with MS C7.0?

The manuals that come with the C7 compiler are pretty good.

-- 
Jeremy Thorp, INMOS Ltd, 	|	jeremy@inmos.com
1000 Aztec West, Almondsbury, 	|	jeremy@inmos.co.uk
Bristol, BS12 4SQ, UK.		|	
Tel.  +44 454 616616    Fax. +44 454 617910
The above is the personal opinion of the author,
and does not necessarily reflect INMOS policy.
Newsgroups: comp.os.ms-windows.programmer.misc
From: umwaletz@ccu.umanitoba.ca (James L. Waletzky)
Subject: Forced Update (WM_PAINT) of Window
Organization: University of Manitoba, Winnipeg, Canada
Date: Wed, 6 Jan 1993 16:14:36 GMT

I'm using Borland C++ 3.1 to create my app and here's the problem:

I have this main window which contains about 20 children, with each
child being a box containing a particular color. Up pops a dialog
asking the user to respond to some questions and once this dialog
disappears, I would like to update all of the children with their
new colors (ie. force a WM_PAINT message).

I thought all I had to do was Invalidate the parent window and call
UpdateWindow, but this doesn't seem to work. I then tried Invalidating
all of the children and calling UpdateWindow, but this didn't work
either. Any ideas?

James.
umwaletz@ccu.umanitoba.ca

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