HDTenEightyP/NetNews huggingface dataset:
From: bcmatusz@vela.acs.oakland.edu (Brian Matusz)
Subject: TCP/IP For Windows ...
Organization: Oakland University, Rochester MI.
Date: Mon, 14 Dec 1992 05:36:30 GMT

This is being posted for a friend.
==========================================================================

Subject: TCP/IP For Windows ...
From: Brad Wilson (center@cps201.cps.cmich.edu)

After 14 weeks of labor, I have completed the Independant study project
that myself and one other person embarked upon.  We have created a
TCP/IP implementation for Windows, which is currently in it's beta
stages.  Included right now are PPP, TCP/IP Kernel, application
interface (very easy to use, message based), and Finger.

The TCP/IP Kernel and the PPP implementation are fairly stable at this
point.  Finger is simple, so it's also stable.  What I need are a
variety of machines that I can test some things on.  Before I go into
beta stages with outside people, however, I need to get some more
applications done (Telnet and FTP would be prime).  Also, because we
only have PPP, I could use someone to write some support for DOS packet
drivers.  Everything is in Windows code, including the PPP driver,
so it's quite efficient.  Total code size for the kernel is ~30k.
Coordinator, ~50k.  PPP is ~18k.  Finger is ~12k.  Everything is
written in C++ (Borland 3.1).

The implementation will be Public Domain (that's right, no fees!).
Anyone who is interested in this project, please send mail to center03 @
cps201.cps.cmich.edu, and I'll send you information about the package.
I expect to go into wide-beta in about 3-4 weeks.

Pleae ... only mail, I'll miss the posting here.

Thanks!
Brad Wilson
center03@cps201.cps.cmich.edu

Newsgroups: comp.os.ms-windows.programmer.misc
From: rmccown@world.std.com (Bob McCown)
Subject: Re: MS C++ ver. 7 Piece of %#$^
Organization: The World Public Access UNIX, Brookline, MA
Distribution: usa
Date: Tue, 15 Dec 1992 13:22:52 GMT

In article <BzA2sp.199@newsserver.technet.sg> ipser@solomon.technet.sg (Ed Ipser) writes:
>In article <1gilfkINNjmd@crcnis1.unl.edu> chaddan@cse.unl.edu (Christopher Haddan) writes:
>>rmccown@world.std.com (Bob McCown) writes:
>>
>>>In article ... chaddan@cse.unl.edu (Christopher Haddan) writes:
>>>>8910782@sunvax.sun.ac.za (Roger) writes:
>>>[lots o' stuff deleted...]
>>>>
>>>>Ummmmm, why don't you run in a dos box? That way you have DPMI 
>>>>support w/o 386Max and exec'ing your app is just a click away.
>>
>>>There's a problem with this.  I'm writing a DLL to be called from a VB
>>>program, and it seems once I load the DLL once, until I unload windows
>>>from the machine, it keeps the original copy in memory.
>>
>>This is true, I have encountered the same problem.
>
>So how come I don't encounter this problem under Borland C++? I use the
>ID and I've developed an application and two DLLs on which it depends.
>I can make changes to the DLLs or the the application and then run the
>application and test the results all within the same windows session.
>
>Is the above perhaps a "feature" of MSC++?

Possibly the calling program is not a VBasic program.  You dont have the
ability to 'LoadModule' in VB, so you cant unload it when you're done.
-- 
|  Bob McCown / Mundane - Robur of Roestoc / SCA - Sir Gaath Gazul / NERO  |
|  rmccown@world.std.com                                                   |
|  "'ow d'you know 'e's a king?" "'cause 'e 'asn't got shit all over 'im!  |
|									   |
Newsgroups: comp.os.ms-windows.programmer.misc
From: heath@grok39.ColumbiaSC.NCR.COM (Robert.Heath)
Subject: Re: Debugging Device Drivers
Organization: NCR Corp., Columbia SC
Date: Sun, 13 Dec 92 01:28:08 GMT

In article <1992Dec9.193630.25156@worak.kaist.ac.kr> wgcho@cair.kaist.ac.kr (Cho Wongyu) writes:
>I am currently writing a printer driver for Windows 3.0.
>I found it really hard to debug device drivers since they are
>dlls. What is the best way to debug them? Is it possible to 
>use Codeview for this purpose?
>
>Any kinds of help will be appreciated.
>Thanks in advance,
>
>Wongyu Cho (wgcho@gorai.kaist.ac.kr)

Hi!
	If it's a loadable device driver, you'll need to 
debug it using WDEB386, which comes with your Windows 3.1 SDK,
a serial port, and a terminal of some sort.  In other words,
you won't be able to use Codeview.
It won't be as easy as debugging with Codeview since a driver
is a different sort of DLL.

There's a third party product called NU-MEGA Soft-ICW/W which is 
reputed to be good.   Nu-Mega's number is 603-889-2386.

	Best,
	Robert


Newsgroups: comp.os.ms-windows.programmer.misc
From:  avsht@sph.spb.su (Alex V. Shturm)
Subject: F****d Borland forgot to define the message in BC 3.1's windows.h !!!!!
Reply-To: avsht@sph.spb.su
Organization: WinNet Mailer Post at Alex's home
Date: Wed, 9 Dec 1992 02:12:39 GMT

Hi, people!

Trying to recompile my Windows project under BC 3.1, I was wondering
very much when compiler suddenly reported me that he doesn't know
the message WM_PAINTICON. I looked into windows.h and didn't find it!!!
Although nearest win30.h file (former windows.h from BC 3.0)
defines it.

1. Is it Borland mistake or mine?
2. What is the best way to avoid it:
   - to feed bcc the option -DWM_PAINTICON=0x0026
   - to change windows.h by adding #define WM_PAINTICON 0x0026
   - another way

Thanks in advance.

Regards,
/Alex

--
Alexander Shturm  ||  St.-Petersburg  ||  Internet: avsht@sph.spb.su
================  ||   Russia (xSU)   ||  FidoNet:  2:5030/8.18, /43.18
Tel.: +7-(812)-233-9148 (home)   +7-(812)-310-4631 (office)
Organization: K.U.Leuven - Academic Computing Center
Date: Wednesday, 16 Dec 1992 09:23:44 +01
From: Van Houtte Guy <FHCAA79@cc1.kuleuven.ac.be>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject:    classobject in BC++

In the documentation for the Borland 3.0 class libraries, it says that the
the new-operator is overridden for the base class Object. However, I find
no sign of this in either the Object.cpp file or the Object.h file ...
what is going on ? I wish to know because of the limitation in Windows
of the number of handles to dynamically allocated objects. I tried
allocating 10,000 associations and did not crash windows so I thought
the operator must be overridden but when I tried to allocate 100,000
I locked the system so now I am not sure.
From: jeff@igc.apc.org (Jeff Dean)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Application Sub-Classing?
Date: 12 Dec 92 23:50:00 GMT
Nf-ID: #R:1992Dec10.210452.19482@nmsu.edu:-579573182:cdp:1668700019:000:342
Nf-From: cdp.UUCP!jeff    Dec 12 15:50:00 1992


>  Can anyone help me find this reference?  I don't want to just subclass a
>window class, but rather an entire application. (Basically replacing an
>application's MainWindowProc with your own.)

If you're trying to subclass an entire application, you might want to
consider using a hook instead.


        Jeff Dean
        jeff@igc.apc.org
Newsgroups: comp.os.ms-windows.programmer.misc
From: doc@magna.com (Matthew J. D'Errico)
Subject: Desprately need help with 3.0 Global in DLL !
Organization: Magna Software Corporation
Date: Sat, 12 Dec 1992 17:04:20 GMT

I've got a DLL in which I have some global variables allocated using
GlobalAlloc(GHND) [and I've also tried GPTR]...  There are only 5
source modules in the DLL and only 3 of them use the globals.  They
are initialized in the source containing LibMain(), and allocated in
a second module where some data is copied into them.

The problem comes into play when I try to access them in the third
module...  I looks like they're empty !  I should point out that this
is working fine in Windows 3.1...  The problem only appears in 3.0
(which I *have* to support)...

I'm using MSC 7.0.1 (w/the patches), and Win 3.1 SDK...  The Globals
are basically LPSTR's which (as I said above) are then GlobalAlloc'ed
and GlobalLock'ed...

Anyone seen this before ?  Any ideas ?

I'm desparate and at a deadline   Please email with ANY ideas !

Thanx and regards --

-- Doc
Newsgroups: comp.os.ms-windows.programmer.misc
From: e3ucja@fnma.COM (Chris J. Allen)
Subject: Re: Windows NT
Reply-To: e3ucja@fnma.COM
Organization: Fannie Mae
Date: Wed, 16 Dec 1992 17:39:05 GMT

No you do not need a pure scsi CD-rom an even if you do it may not be recognized.
There is a routine that reads your cdrom under DOS and builds the setup diskette. As to Dos 5.0 there is still the dual boot built into this build of NT. If you mean can you install Dos 5.0 under NT NO it is already built into NT.

Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: Re: A sane editor to replace PWB ?
Keywords: emacs
Organization: Energy, Mines, and Resources, Ottawa
Date: Fri, 18 Dec 1992 22:17:54 GMT

In article <1992Dec17.183338.7269@kentrox.uucp> kress@kentrox.uucp (Bill Kress) writes:
>Actually, there are a few features in PWB that can't be replaced easily.  The
>makefile creation is something I've never seen anywhere else, and the source

	I'm not sure if this is what you're talking about, but Borland's
	PRJ2MAK can create a makefile from a *.PRJ project file.  It's
	very nice.

>browser would be difficult to duplicate.  Borland's IDE does the same thing,
>but not if you're running the Microsoft compilier, and borland isn't quite
>as flexible.
>
>PWB is a pain in the butt to use!  If you want something easy use whatever you

	Borland's IDE is wonderful, easy to use and runs in Windows!

>usually use just put it in a dos window.  If you're a professional programmer
>buy CodeWright from Premia, it can do almost everything except the Makefiles
>and Browsing, and can do a lot of other things too.
>
>If you're not a professional use borland or maybe Visual Basic :)

	I consider myself to be a professional and *I* use Borland.
	I don't really see any particular reason to use MicroSoft C.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
From: ipser@solomon.technet.sg (Ed Ipser)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: MS C++ ver. 7 Piece of Shit
Date: 15 Dec 92 01:58:00 GMT
Distribution: usa
Organization: TECHNET, Singapore

In article <1gilfkINNjmd@crcnis1.unl.edu> chaddan@cse.unl.edu (Christopher Haddan) writes:
>rmccown@world.std.com (Bob McCown) writes:
>
>>In article ... chaddan@cse.unl.edu (Christopher Haddan) writes:
>>>8910782@sunvax.sun.ac.za (Roger) writes:
>>[lots o' stuff deleted...]
>>>
>>>Ummmmm, why don't you run in a dos box? That way you have DPMI 
>>>support w/o 386Max and exec'ing your app is just a click away.
>
>>There's a problem with this.  I'm writing a DLL to be called from a VB
>>program, and it seems once I load the DLL once, until I unload windows
>>from the machine, it keeps the original copy in memory.
>
>This is true, I have encountered the same problem.

So how come I don't encounter this problem under Borland C++? I use the
ID and I've developed an application and two DLLs on which it depends.
I can make changes to the DLLs or the the application and then run the
application and test the results all within the same windows session.

Is the above perhaps a "feature" of MSC++?
Newsgroups: comp.os.ms-windows.programmer.misc
From: d88-jwa@dront.nada.kth.se (Jon Waette)
Subject: A sane editor to replace PWB ?
Keywords: emacs
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Wed, 16 Dec 1992 20:03:18 GMT

Is there a shareware or public-ware editor available for
Windows (or DOS, runnable under Windows) that resembles
EMACS more than PWB? (Or, indeed resembles ANYTHING SANE
including "vi" more than PWB)

Suggestions appreciated,

						/ h+

-- 
 -- Jon W{tte, h+@nada.kth.se, Mac Hacker Deluxe --

   There's no sex act that can't be made better with Yell-O.
From: muffy@remarque.berkeley.edu (Muffy Barkocy)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: where is my listbox horizontal scrollbar?
Date: 16 Dec 92 18:27:41
Organization: Natural Language Incorporated
Distribution: world
NNTP-Posting-Host: remarque.berkeley.edu


I have created an MDI child window which has a listbox as its child.
When I resize the MDI child window, I resize the listbox to fit in it.
The listbox is created with WS_HSCROLL and WS_VSCROLL.  The vertical
scroll bar is fine, but the horizontal one refuses to appear.  I tried
doing a "ShowScrollBar," and it flashes in briefly, but then goes away
again, even if I have resized the window so small that the listbox items
definitely do not fit.

Can anyone help?

Thanks...

Muffy

--

Muffy Barkocy                      | ~Can you tell me how much bleeding/it
muffy@mica.berkeley.edu            |  takes to fill a word with meaning and/
"amorous inclinations"? Aha! I'm   |  how much how much death it takes/to give
not "not straight," I'm *inclined*.|  a slogan breath?~ - Bruce Cockburn
Newsgroups: comp.os.ms-windows.programmer.misc
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: Force DLL to unload
Organization: Compaq Computer Corp.
Distribution: comp
Date: Fri, 18 Dec 1992 14:40:24 GMT

In article <DEREKL.92Dec18100741@watson.harlqn.co.uk> derekl@harlqn.co.uk (Derek Law) writes:
>Does anybody know how to FORCE Windows 3.1 to unload a DLL? I'm
>developing a DLL, but every time I change it I have to quit and
>restart Windows - otherwise Windows complains that the file is "still
>in use" and so write protected.
>

How are you loading it?  Try this...

HINSTANCE	hLib;

hLib = LoadLibrary("MY.DLL");
....program code....
FreeLibrary(hLib);

--
Ed McCreary                                               ,__o
mccreary@sword.eng.hou.compaq.com                       _-\_<,
"If it were not for laughter, there would be no Tao."  (*)/'(*)
From: tvp@gibdo.engr.washington.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Problems calling a DLL function from a VB app. PLEASE HELP!
Date: 15 Dec 92 13:58:09 GMT
Article-I.D.: u.1992Dec15.135809.5339
Organization: clearer than blir


Okay, I posted a few days ago about not wanting the screen to blank
for the few seconds it took me Shell() out to DOS to run an .exe
utility (written in C) that I was calling from inside my VB app.

I rewrote the inside of my C source to compile it into a .dll file.
Then I followed the instructions in the VB manuals to declare and call
the function inside the DLL that was replacing the standalone C app I
used to use under DOS. But when I hit F5 to test the VB app, and get
to the part where I push the command button that will cause the DLL
function to be called, it fails and tells me:

          "Function or sub undefined"

It also highlights the line where the function is called in the
source.  This is pretty maddening because the function IS defined
right there in the Declarations section of the form. And it's defined
correctly as far as I can tell too, it's of the proper type, with no
mispellings in the Function name or the Lib path. Does anyone know
what's up and how I can fix it? I'M STUCK!

Thanks in advance to anyone who can help me.

------------------------------------------------------------------------
Tad Perry      Internet:    tvp@gibdo.engr.washington.edu
               CompuServe:  70402,3020
               NIFTY-Serve: GBG01266
------------------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: RUESS_M@rzmain.rz.uni-ulm.de (Ruess Michael)
Subject: Re: Setup Utility for Windows Applications
Organization: University of Ulm, Germany
Date: Wed, 16 Dec 1992 13:07:14 GMT
X-News-Reader: VMS NEWS 1.24

In <Lj0KrAXCBh107h@olson.acme.gen.nz> stefan@olson.acme.gen.nz writes:

> Well I have written a fairly nice installation program that does the 
> above things and I have released it and it is FREE!!
> 
> ...Stefan
> 
> -- 
> ------------------------------------------------------------------------
>    Stefan Olson                     Mail: stefan@olson.acme.gen.nz
>    Kindness in giving creates love.
> ------------------------------------------------------------------------

Let me know where it is availiable. I use the Setup program which microsoft
has released on cica I think a year ago, but it is buggy, and it was a lot
time to find these bugs.

Thanks,
Michael Ruess
University of Ulm,
germany
From: kevin@execu.execu.com (Kevin English)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: 'model' window?
Date: 16 Dec 92 23:02:32 GMT
Organization: Execucom Systems Corp

In article <1992Dec15.172737.6229@desire.wright.edu> 
rocker@desire.wright.edu writes:
>
>	I have a window, actually as descendant  of a fairly complex window,
>act like a dialog, ie. lock out all other windows and menuu, aka 'model', but
>not system model.
>
>	I'm using TPW 1.0 (damm purchasing dept.) and OWL and any ideas are
>welcomed.
>

Dave Edson wrote an excelent article in the Oct. Microsoft Systems
Journal : "Dave's Top Ten List of Tricks Hints, and Techniques for
Programming in Windows" - One of his tricks covered just this. In
summarry if you process the messages destined for this window with
IsDialogMessage() just as if the window were a modeless dialog, presto,
your window will have dialog like behavior.
Newsgroups: comp.os.ms-windows.programmer.misc
From: walt@drd.com (Walt.Gaber)
Subject: DLL - floating point return values?
Organization: DRD Corporation
Date: Wed, 16 Dec 1992 14:17:11 GMT


I have been unsuccessful in writing a DLL function that returns either a
float or a double.  I cannot find anything in the documentation I've got
(including the MS Developer Network CDROM) that discusses problems or
solutions for doing this.  I have tried several memory model and floating
point (/FP_) options.

I have tried to determine what is happening via CodeView.  I believe that
floating point return values are placed at some address for retrieval by the
calling code (unlike integer returns which are conveyed via AX {and DX} if
necessary).  Does the DS!=SS behavior come into play here?

In the calling function:
     SS = 1197
     DS = 1197

In the DLL function:
     SS = 1197
     DS = 1D67

In the DLL function , the following code is executed (immediately before the
return):
    FLD DWORD PTR [BP-08]
    INT    3D ;fwait
    MOV    BX,WORD PTR [BP+06]
    NOP
    FSTP   DWORD PTR [BX]
    INT    3D ;fwait
    MOV    AX,WORD PTR [BP+06]
    MOV    DX,SS
    POP    DI
    POP    SI
    LEA    SP,WORD PTR [BP-02]
    POP    DS
    POP    BP
    DEC    BP
    RETF   0006

Upon return from the function, the following code is executed:
    MOV    BX,AX
    MOV    AX,WORD PTR [BX]
    MOV    DX,WORD PTR [BX+02]
    MOV    WORD PTR [BP-011C],AX
    MOV    WORD PTR [BP-011A],DX


If I manually and temporlarly change (within the debugger) the DS register
to use the DS of the DLL, I can successfully retrieve the stored value.

Is there some way that I can force the DLL to place the value in an
accessible location and coerce the calling code to locate it?

---
   walt.gaber@drd.com                                       (918) 743-3013
   DRD Corp., 5506 South Lewis Ave., Tulsa, OK 74105        (918) 745-9037 fax
Newsgroups: comp.os.ms-windows.programmer.misc
From: murf@spike.comet.ucar.edu (John Murphy)
Subject: Windows NT (again)
Organization: COMET/Univ. Corporation for Atmospheric Research, Boulder  CO
Date: Mon, 14 Dec 1992 16:29:39 GMT

I really aprreciate the responses to my prevois question, however the
answers have spawned two more:

1) How do I get NT to recognize a non SCSI cd-rom once NT is installed
and running?

2) I have installed TCP/IP and it is working (at least telnet is).  Is
it possible to configure NT so that it will allow telnet or ftp connections
from other computers on our ethernet?

Thanks!

--
John Murphy			murf@comet.ucar.edu
UCAR/COMET			(303) 497-8494
PO Box 3000
Boulder CO 80307-3000
Newsgroups: comp.os.ms-windows.programmer.misc
From: rioj7@fel.tno.nl (M.L.M.Veraart)
Subject: Re: Logical Units to pixel conversion?
Organization: TNO Physics and Electronics Laboratory
Date: Thu, 17 Dec 92 16:17:05 GMT

mboucher@cortex.prospect.com (Mike Boucher) writes:

>Hey there,

>Anyone know a good way to convert from Logical Units to pixels?
>I've got a list box which I want to horizontally scroll, and the LOGFONT
>structure gives me the width of a char in logical units, but the rect that 
>gives me the size of the list box is in pixels...

There are two window procedures called LPtoDP() and DPtoLP().
You must call them with right settings of the device context 
(the mapping mode). Where DP are the Device Points (pixels) and
LP are the logical points.

Mario
-- 
Mario Veraart                  TNO Physics and Electronics Laboratory
email: rioj7@fel.tno.nl        The Hague       The Netherlands
"If all else fails, show pretty pictures and animated videos, 
 and don't talk about performance",  David Bailey
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
From: whedon@netcom.com (Bill Whedon)
Subject: FAST TEXT SEARCH CODE FROM DDJ NEEDED
Followup-To: poster
Keywords: TEXT SEARCH
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Wed, 16 Dec 1992 06:59:57 GMT

I've received a request for assistance finding some DDJ text (not source),
and wonder whether any of you can help this guy out.  I have the magazines,
but they're in storage and not accessible.  Please reply directly to Alex.
I will try to look up some text-search info in my books here, as well.
Thanks,
Bill Whedon   whedon@netcom.com   (request follows)


I'm sorry to trouble you, but I have a question.
I have to write/find a fast text search utility, that I can call
from one of my windows programs.  I have found some interesting
stuff in Dr Dobbs journal, but I dont have these issues.
Would you have either....
1) A better idea, of where I can get/find some funcs. in C/C++ of
		text search, with indexing...
2) the few pages that I need from DDJ.???
Any suggestions would be very helpful.
Thanks in advance
Alex
axs9017@hertz.njit.edu
p.s. The DDJ articles are by Al Stevens, I have the source, but I wanted
		to read up on it. 12/89-3/90



-- 
-- If I ain't programmin' I ain't awake! --




Newsgroups: comp.os.ms-windows.programmer.misc
From: whedon@netcom.com (Bill Whedon)
Subject: Re: SDK 3.1 Cost? Source?
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Distribution: usa
Date: Sat, 12 Dec 1992 06:30:44 GMT

In article <1992Dec11.211554.1579@microsoft.com> dwightm@microsoft.com (Dwight Matheny) writes:
>The 3.1 SDK has a SRP of  $349, or is also included w/ MS C/C++ 7.0
>for a SRP of $499. Both are available retail. The SDK is harder to
>find at dealers and can be ordered direct from MS by calling MS
>Developer Services at 800-227-4679 x 11771.
>
You can also still find competitive upgrades to MSC/C++ 7.0 for $129, which
also includes the SDK.  Give Micro Warehouse a call at 1-800-367-7080.  I just
got one of their latest catalogs, and C/7 is still in there on page 33.  The
"upgrade" requirement just needs almost any old C compiler.
Cheers,
Bill Whedon   whedon@netcom.com


-- 
-- If I ain't programmin' I ain't awake! --




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