HDTenEightyP/NetNews huggingface dataset:
From: richard@proton.amd.com (Richard Relph)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Start TSR from Windows
Date: 28 Jul 92 20:05:02 GMT
Organization: Advanced Micro Devices, Austin TX.

We have a system of programs running under DOS that exist in basically a
master/slave relationship. When the master starts, if no slave is already
present, it will start one. Slaves, then, are TSRs. Masters locate slaves
via a search of some interrupt vectors and the memory they point at. We
now want to use the existing slaves with Windows applications as masters.
Masters simply call through real-mode far pointers that are in a table
pointed to by an interrupt vector. No software interrupts are necessary.
In the DOS world, of course, both slaves and masters appear to be real-
mode programs. I say appear, because we do have some slaves that are 386
protected mode executables - but even those use the real-mode interfaces.
In the case where a slave is started by a master, the slave is killed
before the master exits in order to reduce memory fragmentation.
Here are our questions:
1) How can the Windows program get a real-mode pointer to some memory
   so that it can pass it to the slave?
2) How can the Windows program start the slave if the slave was not
   started before Windows? I think this is easier in 286 mode than in
   386 mode, since 286 mode transistions to non-windows apps actually
   return to true real-mode. But 386 mode creates virtual machines for
   the non-windows app. How does the manipulation of the interrupt
   vector table by the VM affect the vector table windows uses? How can
   the master specify to the "call a real-mode function" which VM the
   function lives in? My guess is that these things don't work and that
   I have to figure out how to make the slave's VM be the "real" machine
   underlying the invocation of Windows. Is that right?
3) For those slaves that are 386 protected mode executables, we assume
   that if the package we use supports DPMI environments that we will
   have no real problems. If the slave starts before windows, however,
   how will it know to use DPMI instead of VCPI, for example? Even if
   we do get the slave to use DPMI, will it work when Windows takes
   over DPMI servicing?
Thanks in advance for the help.
Richard Relph
From: banshee@cats.ucsc.edu (Wailer at the Gates of Dawn)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: FLAME: BORLAND TECHNICAL SUPPORT
Date: 29 Jul 92 08:50:10 GMT
Organization: University of California, Santa Cruz
NNTP-Posting-Host: am.ucsc.edu


rjrichar@watserv1.uwaterloo.ca (Bob Richards) writes:

>Personally, I have been VERY flustrated with Borland's "free" support. 
>The lines have been impossible to get through plus once you do get through
>you end up waiting roughly 20-30 minutes in long distance waiting to talk to 
>somebody.   Once you do get to talk to somebody you are given all of the
>obvious suggestions/answers.
Fine -- YOU work Tech support and listen to people who can't get the shrink
wrap off the boxes.  Nothing is *free* and you are a bastion of anti-slack.

>It's pretty said that when you are paying near $900 for a product that
>you have to pay for "GOOD" support.     BORLAND LETS GET YOUR ACT TOGETHER!!
And your Microsoft support is better? HAhaHAhaHAAHAHaHaHaHAhaHahaHaHaha

-- 
The Wailer at the Gates of Dawn              | banshee@cats.UCSC.EDU       |
Just who ARE you calling a FROOFROO Head?    |                             |
DoD#0667  "Just a friend of the beast."      | banshee@ucscb.UCSC.EDU      |
2,3,5,7,13,17,19,31,61,89,107,127,521,607....| banshee@ucscb.BITNET        |
Newsgroups: comp.os.ms-windows.programmer.misc
From: dem21178@uxa.cso.uiuc.edu (Dan Montroy)
Subject: How to write a Win 3.1 screen saver
Organization: University of Illinois at Urbana
Date: Fri, 24 Jul 1992 13:30:41 GMT

I am considering writing a screen saver for Windows 3.1, and I was interested 
in how this is done.  The screen saver files have a .SCR extension, and I was
wondering about how I could make one.

Dan Montroy
University of Illinois
d-montroy@uiuc.edu
From: romkey@asylum.UUCP (John Romkey)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: DLL's written in C++ to ObjectVision
Date: 22 Jul 92 16:04:29 GMT
Distribution: comp.os.ms-windows.programmer.misc

anders@ipcsun2.his.se (Anders Eklund) writes that he can't call C++ functions
in a DLL from ObjectVision.

Here's a *guess*: the names aren't what you expect. Borland's C++ compiler
(and many others as well) encode a functions return type and argument types
in the function name. This is a simple mechanism to allow functions (and
object methods) to be overloaded (the same name with different return values
and types, selected automatically by the compiler depending on what you
call it with). The reason ObjectVision probably can't call a function in your
DLL is probably because the function name in the binary is much different from
what you expect it to be. I don't know if BCC has an option to turn off
name mangling; I don't imagine it does, but it's got more options than
I want to scan just this minute. One workaround would be for you to 
figure out the mangled form of the name and use that in ObjectVision.
-- 
	- john romkey	  ELF Communications	 romkey@ELF.com
Newsgroups: comp.os.ms-windows.programmer.misc
From: mariusk@idt.unit.no (Marius Kjeldahl)
Subject: Re: Titlebar buttons and color listboxes
Keywords: titlebar button color listbox
Reply-To: mariusk@idt.unit.no (Marius Kjeldahl)
Organization: Div. of CS & Telematics, Norwegian Institute of Technology
Date: Thu, 30 Jul 92 06:18:23 GMT

In article <hhnmpw=.whedon@netcom.com>, whedon@netcom.com (Bill Whedon) writes:
|> I asked the following on another group and got zero response.  Maybe the
|> folks who read this one are smarter...
|> 
|> 1. How does one go about placing a button on the titlebar of a child window
|>    without resorting to bitmaps?
|> 
|> 2. How does one create a listbox or dropdown combo containing colored text
|>    in the strings?
|> 
|> I've seen both of these things before, and saw some code for the first one,
|> but can't recall where.  Any help would be appreciated.  Please post here
|> or send direct to me.  
|> 
|> Thanks for being smarter than I am!
|> Bill Whedon
|>  
|> 
|> 

For the listbox question, use a owner draw listbox. Then you can draw
your text in any colour and font.. 
Newsgroups: comp.os.ms-windows.programmer.misc
From: mboucher@cortex.prospect.com (Mike Boucher)
Subject: Re: Is it really this bad, or is it just me
Organization: Cortex Corporation, Waltham, MA, USA
Date: Fri, 31 Jul 1992 14:46:46 GMT
X-Posted-From: cortex.prospect.com
X-Posted-Through: sol.ctr.columbia.edu

In Message-ID: <1992Jul30.173531.14978@progress.com>, scott writes...

>>  OK, so what CAN you debug with a Windows debugger?   For instance, 
>>  it is clear that I can't set a breakpoint in the message handler
>>  for the scrolling messages.   But my WM_VSCROLL handler eventually
>>  makes calls which invalidate the rectangle, resulting in a WM_PAINT 
>>  message.  WM_PAINT is ordinarily a low-priority message but it
>>  can be given higher-priority or still happen quite quickly. 

>>  I've noticed if I'm debugging scrolling code that even if I 
>>  set my breakpoint in my WM_PAINT message handler I still some-
>>  times get "extra" WM_PAINT messages for a single click on
>>  the "up" or"down" buttons on the scrollbar  -- although the 
>>  problem is not nearly as bad as with WM_VSCROLL.   

>Your probably not going to like this suggestion but;  get yourself
>a secondary monochrome monitor and video card (total cost <$100).
>and then use CVW /2.  When you hit a break point your focus 
>shifts to the secondary monitor so you don't get spurious (sp?)
>messages sent to your WNDProc.  I use this setup on my machine

Funny, this is the setup I have and I have the same problem that started this
thread.  I don't get mouseup messages (thanx for explaining this!!), and I get
WM_PAINT messages.  I think the extra WM_PAINT messages are because removing or
adding scroll bars changes the size of the window, causing a new WM_PAINT.  One
WM_SIZE can cause 3 (or if it's just right, and infinite loop) WM_PAINT
messages.  A second monochrome monitor makes life a little cleaner, no screen
flicker from app to debugger, etc, but it does not remove the underlying
problem!

>>  I don't have this problem debugging graphics apps with the Apollo 
>>  debugger "dde" on Domain Workstations (Unix) here at work.  Granted

Likewise with the Mac...

>>  this is a "real" OS, not a toy one, but still, it doesn't seem like

I love this quote!!

Good luck,  I've been programming windows for about 5 months now, and It will
only get more fun!!   NOT!!!

c'ya
-- 
Mike Boucher			mboucher@cortex.prospect.com
Cortex Corp			"Don't take life too seriously, you'll never
Waltham, MA, USA		 get out of it alive!"
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: How to deactivate a check-box control
From: stefan@olson.acme.gen.nz (Stefan Olson)
Date: Fri, 24 Jul 92 07:36:59 +12

heathh@cco.caltech.edu (Heath Ian Hunnicutt) writes:

> 	How can I "deactivate" a check box control in a dialog
> box from within the dialog procedure?  I mean turn it gray and
> unresponsive, not just uncheck it. 

EnableWindow (hwndCheckBox, FALSE) ; // To gray it.
EnableWindow (hwndCheckBox, TRUE)  ; // To put it back to normal

...Stefan



------------------------------------------------------------------------
   Stefan Olson                     Mail: stefan@olson.acme.gen.nz
   Kindness in giving creates love.
------------------------------------------------------------------------
From: jkn@ohm.york.ac.uk (John Nicoll)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: beginner query: reentrant WinProc?
Date: 29 Jul 92 15:58:04 GMT
Organization: Electronics Department, University of York, UK

Hello all,
	I'm modifying someones very dodgy windows code
to add functionality such as multiple zoom windows
of a structure containing spectrum information. Am I right
in understanding that the WinProc window handler
must be reentrant - ie. no static variables? Petzold &
the other books I have don't mention anything about this.

Am I further correct in thinking that the best way to do this
is to allocate extra bytes in the Window Class, and use these
to point to my structures, initialising as WM_CREATE time etc?

	any information gratefully received - email or otherwise

	thank you
		john N

-- 
john nicoll (jkn@ohm.york.ac.uk)
Department of Electronics  University of York
Heslington   YORK YO1 5DD U.K
Tel +44 (904) 432381   Fax +44 (904) 432335
From: anders@ipcsun2.his.se (Anders Eklund)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: DLL's written in C++ to ObjectVision
Date: 22 Jul 92 13:56:36 GMT
Distribution: comp.os.ms-windows.programmer.misc
Organization: University of Skoevde


Hi there!

  I have some problems to write DLL's to ObjectVision. If I write DLL
in pure C, there are no troubles. If I try to write a DLL in C++,
ObjectVision is unable to register the functions. The same thing happend
when I used the C-code and compiled it in C++ mode. The code
was very simple with a single extra exportable function, and the code
compiled to a DLL just fine. Then I tried to tell the compiler that it
was a C function by using extern "C" {...} and that did not help either.
Has anyone any idea why it doesn't work, or should it work? Is there
anything special with C++ DLL's? I'm using Borland C++ 3.0 & AF and
ObjectVision 2.0.

I would appreciate any answer

--

 |\/\/\/|
 |      |           -- Anders Eklund  anders@his.se --
 |      |           -- Connectionist Research Group --
 | (o)(o)           -- Computer Science  Department --
 C      _)          -- University of Skovde, Sweden --
  | ,___| 
  |   /        Hi! I'm Bart Simpson, the ultimate sig virus.	 
  /---\      Just throw away your sig and copy this one instead. 
Newsgroups: comp.os.ms-windows.programmer.misc
From: mats@infolog.se (Mats Lordin)
Subject: Interpreter
Organization: Infologics AB
Date: Wed, 29 Jul 1992 06:29:07 GMT

I would appreciate ideas from anyone that has know-how on how to 
implemented an interpreter. Any good books you could recommend? 
Are there any examples or source code that I might get my hands on?
I will most propably do the work in C.

As I mentioned, any ideas, tips or tricks are greatly appreciated!

Thanks.

Mats Lordin
Infologics AB
P.O. Box 91
S-191 22 Sollentuna, SWEDEN

E-mail:mats@infolog.se

Newsgroups: comp.os.ms-windows.programmer.misc
From: s2212530@techst02.technion.ac.il (Oded Malky)
Subject: How can I sense mouse moves from within a minimized program
Organization: Technion, Israel Inst. of Technology
Date: Thu, 30 Jul 92 11:15:21 GMT

  I have to run a program, minimized (using "load= <program name>" in win.ini).
 
  Dose anybody know how can I do that?  (sense and react to mouse moves 
 
   Thanks,
 
    Oded.
Date: Thu, 30 Jul 1992 11:05:14 GMT
Apparently-To: post-to-news@wang.com


Newsgroups: comp.os.ms-windows.programmer.misc
From: nelson_p@apollo.hp.com (Peter Nelson)
Subject: Re: Is it really this bad, or is it just me
Date: Thu, 30 Jul 1992 15:27:41 GMT
Organization: Hewlett-Packard Corporation, Chelmsford, MA

In article <1992Jul29.155112.7877@microsoft.com> gregde@microsoft.com (Greg Demichillie) writes:
>In article <1992Jul28.134522.11108@usenet.ins.cwru.edu> turnbull@ces.cwru.edu (John Turnbull) writes:
>>In article <1992Jul28.090409.1@cortex> mboucher@cortex.prospect.com (Mike Boucher) writes:
>>>
>>>I've been having some screwy scroll bar problems as well, and Microsoft's
>>>Codeview does the same thing with multiple messages from one click.  
>>
>>	I think you'll find the problem is that windows never gets a mouse
>>up event, so it thinks you're holding down the mouse on the scroll down. I.e.
>>pressing the mouse button generates the linedown, and you then break, so 
>>windows never see you releasing the mouse button.
>>
>
>This is exactly what happens.  The context switch into the debugger happens
>after the mouse down and so the mouse up event is given to the debugger.
>
>This happens with every Windows debugger I've seen (including Codeview,
>TDW and Multiscope.)  The only work around I'm aware is to use
>OutputDebugString to print lots of messages in your mouse tracking
>code.  Using debuggers to step through mouse handling code just isn't
>my idea of fun. 


  OK, so what CAN you debug with a Windows debugger?   For instance, 
  it is clear that I can't set a breakpoint in the message handler
  for the scrolling messages.   But my WM_VSCROLL handler eventually
  makes calls which invalidate the rectangle, resulting in a WM_PAINT 
  message.  WM_PAINT is ordinarily a low-priority message but it
  can be given higher-priority or still happen quite quickly. 

  I've noticed if I'm debugging scrolling code that even if I 
  set my breakpoint in my WM_PAINT message handler I still some-
  times get "extra" WM_PAINT messages for a single click on
  the "up" or"down" buttons on the scrollbar  -- although the 
  problem is not nearly as bad as with WM_VSCROLL.   

  I mean a GUI is a mouse-event driven environment, so it would
  seem that this would make LOTS of things hard to debug!   Is
  this true?

  Is there a systematic way for me to know when this is a problem?
  As a beginner Windows programmer I expect to make lots of problems
  for myself but I don't want to have to try to guess when it's 
  something *I'm* doing wrong and when it's someing *it* is doing
  wrong.

  I don't have this problem debugging graphics apps with the Apollo 
  debugger "dde" on Domain Workstations (Unix) here at work.  Granted
  this is a "real" OS, not a toy one, but still, it doesn't seem like
  it should be that hard a problem for Microsoft or Borland to fix.
        

---peter





  



Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer
From: mccreary@sword.eng.hou.compaq.com (Ed McCreary)
Subject: Re: hiding scrollbars when not needed
Organization: Compaq Computer Corp.
Date: Thu, 23 Jul 1992 14:32:11 GMT

In article <620@irst.UUCP> dz@irst.UUCP (Massimo Dal Zotto) writes:
>
>I would like to know if it's possible to hide the scrollbars in a window,
>created with the style attributes WS_VSCROLL and WS_HSCROLL, when the 
>entire document fits in the window so that scrolling is not needed.
>I know that I could create the scrollbar controls explicitly, but this
>requires also positioning and controlling them, so I would prefer to use
>the standard window scrollbars if possible.
>Thanks in advance.
>
>Massimo  Dal Zotto
>

Use SetScrollRange with nMinPos and nMaxPos set to zero.  This will hide
them.


--
McCreary@sword.eng.hou.compaq.com     Computers are like Old Testament gods;
Me? Speak for Compaq?  Yeah, right.   lots of rules and no mercy.
"By this time my lungs were aching for air..."               Joseph Campbell
Newsgroups: comp.os.ms-windows.programmer.misc
From: geretyk@prism.cs.orst.edu (Kevin M. Gerety)
Subject: Wanted: Location of Truetype font development kit
Keywords: TrueType, Development
Organization: Oregon State University, Computer Science Dept
Distribution: US
Date: Fri, 24 Jul 1992 23:51:23 GMT

I am looking for a program that will help me develop truetype fonts.  If
you know of a company name and phone number I would appreciate the info.

Thanks.

PS. I appologize if this is not the correct group for this.  Please tell me 
what the correct group is and I'll go there.

------------------------------------------------------------------------------
Kevin M. Gerety                         geretyk@storm.cs.orst.edu
Appr. Head Consultant                   Lab: (503) 737-2435
OSU Computer Science Lab                Home: (503) 752-5614
From: ak10+@andrew.cmu.edu (Andrew Joseph Kompanek)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Dynamically changing Window attributes
Date: 23 Jul 92 09:24:38 GMT
Article-I.D.: andrew.YePihKi00WB4QR=1Y5
Organization: Carnegie Mellon, Pittsburgh, PA

I have two very simple questions -- sorry if they're inappropriate for
this bboard.. My manuals failed me.. or at the very least my ability to use
manuals failed me!

1. Is it possible to dynamically hide/show a window border, title bar, system
menu button, etc... given its handle (ie., after the window's been opened)?

2. Is there an easy way to change a Window's attributes so that it will
always be the top child window in its parent (but not always active).
As I recall, I could just bring it to the front everytime it's obscured
without activating it... but I thought there might be a way to make
Windows do the work for me.

Thanks ahead of time,
Drew

Andrew Kompanek
Dept of Human Genetics
University of Pittsburgh
e-mail: drew@chimera.hgen.pitt.edu
From: jwu@zeus.calpoly.edu (John Shih Jen Wu)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: VB Question - Position and Size
Keywords: VISUAL BASIC QUESTION
Date: 28 Jul 92 17:31:25 GMT
Distribution: usa
Organization: California Polytechnic State University, San Luis Obispo

Is there an API call that I can make in VB to position and size
other applications which I have loaded with the Shell function? 

-- 
=========================================================================
John S. Wu (Engr Mgt. / Mech Engr) ===>  jwu@nyx.calpoly.edu
California Polytechnic State Univ., School of Business, MBA Program 
San Luis Obispo, CA 93401
Newsgroups: comp.os.ms-windows.programmer.misc
From: tdyer@cs.ulowell.edu (Tom D.)
Subject: help beginner
Organization: U. Mass. at Lowell
Distribution: comp
Date: Tue, 28 Jul 1992 15:33:02 GMT


Hi,

I want to start writing window 3.1 applications. I'm looking for the
least expensive package to start with. I have a Borlands C++ ver2.0 
compiler in one of the machines at work. Any good books?

Thanks
--
Tom Dyer
tdyer@cs.ulowell.edu
From: mfredett@genesis.nred.ma.us (Matt Fredette)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Help using DPMI "Allocate DOS Memory Block"
Date: 24 Jul 92 17:23:44 GMT
Organization: Genesis Public Access Minix  +1 508 664 0149

In article <BrwrI5.FGG@news.udel.edu> radel@bach.udel.edu (Todd Radel) writes:

>I'm trying to use the DPMI services in Windows 3.1 to communicate with
>a DOS program running in a window.  The DOS program is a server which
>communicates with a couple of transputer boards installed in the system.
>The transputers support DMA transfers, but only as long as the server
>is running.  Thus, if I want to bring data into my Windows program,
>I have to start the server, allocate some memory, tell the server
>where to find it, and wait for data to come in.
>
>Of course, giving the server the value of a pointer won't work
>because of the way Windows handles virtual memory in VDM's.  The
>DPMI function "Allocate DOS Memory Block" (AX= 0100h) seems to be
>what I need.  But what is a "selector", and how do I use it? I
>know I can pass the transputer server the real-mode segment of the
>allocated block (or can I?), but how do I access the allocated
>memory from within my program?

Sharing memory across virtual machines (VMs) in Windows is tricky,
if not impossible.  Memory allocated for use in one VM simply cannot
be seen by another VM, unless you use the shared memory functions
defined in DPMI 1.0, which unfortunately aren't supported under Windows.

The only possible solution to your problem would be to create and install
a TSR /before/ you start Windows that allocates a chunk of DOS memory.
/This/ memory is then global to all VMs when Windows is running.  What you
would have to do in your Windows program is find the location of this chunk,
and then use it to communicate with this server.  Another call that you may
find useful is a call that lets you call a procedure in another VM, which I 
can provide the info on.

Hopefully this will give you some kind of start,

Matt
From: hliao@zeus.calstatela.edu (Henry Liao)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: API to access network resources
Keywords: api, network resource
Date: 28 Jul 92 00:31:32 GMT
Organization: Cal State University, Los Angeles

Excuse me, if this turns out to be another FAQ.

What Windows API/functions do you use to 'link/mount' a shared printer/
directory from the network?  WM_NET*??

Any pointers/hints would be greatly appreciated.

-Henry Liao
California State University, Los Angeles
Networks & Distributed Systems Group
VOICE:	(213) 343-4537, 343-4530	hliao@calstatela.edu
FAX:	(213) 343-4575			hliao@csula.bitnet
#include <std.disclaimer.h>
From: banshee@cats.ucsc.edu (Wailer at the Gates of Dawn)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Borland charges before delivers
Date: 22 Jul 92 02:07:08 GMT
Organization: University of California, Santa Cruz; Committee for Open Access Computing
NNTP-Posting-Host: am.ucsc.edu


leying@alpha (Leying Zhao) writes:

>I ordered BC++ 3.1 on June 21 (BEFORE THEIR SHIPPMENT BEGAN) and I
>have not get it now (today is July 20). But I get the BILL! It billed
>on June 24 throug Master Card. I called them again. A rep told me
>that I have 2 choices:  1) just wait. 2) cancel the order, they
>reverse the charge and reorder again. But I will lose my position on
>the waiting line. It sounds that I made a mistake!

Is it just me or do you post this every week or so?  I wish I could
have kill files by login name.

-- 
The Wailer at the Gates of Dawn              | banshee@cats.UCSC.EDU       |
Just who ARE you calling a FROOFROO Head?    |                             |
DoD#0667  "Just a friend of the beast."      | banshee@ucscb.UCSC.EDU      |
2,3,5,7,13,17,19,31,61,89,107,127,521,607....| banshee@ucscb.BITNET        |