HDTenEightyP/NetNews huggingface dataset:
From: simon@guk.auspost.com.au (Simon Carter)
Subject: Re: Dynamic background screen
Organization: Australia Post
X-Newsreader: TIN [version 1.1 PL6]
Date: Mon, 11 Jan 1993 22:09:03 GMT

: Can someone let me know where I can find sample TPW code that allows
: the background screen to be updated dynamically.
: 

Thanks to all who responded.

The source code (I am told) can be found in owldemos\gdidemo.pas 
that comes with TPW.

Simon
--
+--------------------------------------------------------------+
| Simon Carter: 3rd Year Elec/Comp Sci, Monash Uni, Clayton    |
| @mail: 14 Canterbury Rd, Heathmont, Victoria 3135, Australia |
|   Net: simon@auspost.com.au                          ___     |
| /simon% find -greatquotes -print >> .signature      (o o)    |
+--------------------------------------------------ooO-(_)-Ooo-+
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Subject: Re: function TIMING in Windows: HELP 
Distribution: world
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Date: Tue, 12 Jan 1993 19:35:54 +0000

In article <1993Jan11.135908.11287@doug.cae.wisc.edu> ahrikenc@hprisc-12.cae.wisc.edu writes:

>
>Is there any way I can time an algorithm that is part of a Windows
>application?  For example, Unix allows finding the CPU time spent
>specifically on executing a given set of instructions.
>
>In Windows, I used the gettime function and computed the difference
>of the times at two points, and I get different results at different
>times, for the same points, the same data;  I believe this is due to
>the fact that Windows continuously executes other tasks in the 
>background, which explains the difference in the results.
>
>Please help! 
>
>
>

What you need is a good profiling tool.  This will show you the time
spent in the various parts of the application.  A very good one comes
with Microsoft C++, and I believe you get one with Borland C++, too.

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
From: khamsi@ll.mit.edu (Sarir Khamsi)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Use of STRICT def. in windows.h
Date: 6 Jan 93 16:17:34 GMT
Distribution: comp
Organization: MIT Lincoln Laboratory

Yo,

Does anyone know where I can find information on what the meaning of
the

#ifdef STRICT

statements in the windows.h file is? Does this have anything to do w/
NT, backward compatibility or what? Thanks in advance.

--
Sarir (Riri) Khamsi - khamsi@ll.mit.edu
MIT Lincoln Laboratoy
244 Wood St.
Lexington, MA 02173
USA
Xref: sparky comp.os.ms-windows.programmer.misc:4702 comp.lang.pascal:7948
From: andres@scf16.scf.loral.com (Jeff Andres)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.lang.pascal
Subject: DLL Procedure/Function Calls ???
Date: 7 Jan 93 18:43:04 GMT
Organization: Loral Space & Range Systems

Newbie question 

Target Compiler: BP7
Goal: Generate Windows Program

Problem/puzzle:

	Windows, likewise vendors and programmers, often supply .DLLs
for use by others. Is there a convient way to find out what the calling
convention is to utilize the procedures/functions contained ?  Is there
a way to get like a "directory" listing of available calls ? 

Cheers,


         _/  _/_/_/_/   _/_/_/_/ _/_/_/_/     Jeff Andres
        _/  _/         _/      _/        ---  Loral Space and Range Systems
       _/  _/_/_/     _/_/    _/_/       ---  1260 Crossman Ave.  MS-S37
 _/   _/  _/         _/      _/          ---  Sunnyvale, California  94089
  _/_/   _/_/_/_/   _/      _/           ---  e-mail: andres@scf16.scf.loral.com 

-- 

         _/  _/_/_/_/   _/_/_/_/ _/_/_/_/     Jeff Andres
        _/  _/         _/      _/        ---  Loral Space and Range Systems
       _/  _/_/_/     _/_/    _/_/       ---  1260 Crossman Ave.  MS-S37
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
From: twbrown@PE-Nelson.COM (Tom W. Brown)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: difference between STUFF *stuff & STUFF stuff[]???
Date: 6 Jan 93 22:42:34 GMT
Organization: PE-Nelson

In article <1993Jan6.084522.25921@emr1.emr.ca>, jagrant@emr1.emr.ca (John Grant) writes:
|> So, can someone tell me the difference between the following 2
|> statements:
|> 	extern STUFF *stufftable;
|> 	extern STUFF stufftable[];
|> with respect to the code generated when I reference stufftable, i.e.:
|> 	stufftable[i].xxx=...
|> and explain why it is so dangerous here, but it's perfectly ok
|> to use a pointer or a [] in a function declaration.

extern STUFF *stufftable;
   This declares 'stufftable' to be a variable of type "pointer to STUFF".
   There will be a region of the data segment large enough to hold this
   pointer reserved for the variable.  The variable stufftable is a reference
   to the location in memory that in turn contains an address in the heap
   where a STUFF object (or array of STUFF objects) has been created.

      stufftable              /-----------\
      /---------\             |           |
      |      o--|-----------> |   STUFF   |
      \---------/             |           |
                              \-----------/


extern STUFF stufftable[];
   This declares 'stufftable' to be a variable of type "array of STUFF".
   There will be a region of the data segment large enough to hold some
   number of contiguous STUFF objects.  The variable stufftable is a
   reference to the first of these contiguous STUFF objects.

      stufftable
     /-----------\/----------\/-----------\/----/
     |           ||          ||           ||    \
     |   STUFF   ||   STUFF  ||   STUFF   ||    / . . .
     |           ||          ||           ||    \
     \-----------/\----------/\-----------/\----/


So, if stufftable is declared in the second way but defined in the first
the code is going to think the actual STUFF objects lie in the data segment
where the pointer is rather than somewhere off in the heap.

For function declarations and calls you don't have this problem; a pointer
argument supplies the value in the pointer (the address of the heap based
array), an array argument is in a value context and is turned into the 
address of its first element and therefore both look the same to the 
function.

Hope this helps (or, more to the point, that I haven't misspoken myself :-)


----------------------------------------------------------------------------
Tom Brown               |  "She turned me into a newt...
PE Nelson Systems       |                                  ... I got better"
twbrown@pe-nelson.com   |                    Monty Python and the Holy Grail
----------------------------------------------------------------------------
From: blue@sequent.com (Gil Delavous)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: How to make sprites on Windows
Date: 8 Jan 93 13:27:21 GMT
Article-I.D.: sequent.1993Jan8.132721.5227
Followup-To: comp.os.ms-windows.programmer.misc
Organization: Sequent Computer Systems, Inc.

Hi,

I started to program on Windows few weeks ago. As a first project I would
like to develop for fun a little program which displays several bugs
running and hiding behind the opened windows. Do do that, I should be able to 
move graphic elements (also called sprites) anywhere on the screen. I must say
that I've not finished to read my book on Windows Programming so I don't
know if it's doable or not. If there is a way to do it could you please
send me an email saying how I should handle this and what libraries should be
used.

Thanks a lot,
Gil Delavous.
From: equine@eng.umd.edu (Melinda L. Gierisch)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Graphics cut/copy/paste
Summary: Looking for C/C++ code to grab a region of the screen and put
Date: 7 Jan 93 20:08:49 GMT
Organization: University of Maryland, College Park


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.

Thanks in advance,
Melinda
Newsgroups: comp.os.ms-windows.programmer.misc
From: markt@rocky.ndhm.gtegsc.com (Mark Tsombakos)
Subject: VB, Arnet, and .DLLs
Organization: GTE/SCSD - Needham Heights, MA
X-Newsreader: TIN [version 1.1 PL7]
Date: Mon, 4 Jan 1993 17:48:22 GMT


I am relatively new to Visual Basic, so kindly bear with me.  We've recently
purchased an Arnet "Smartport Lite" serial comm card with 8 serial ports.  We
also bought the Communication Developer's Kit that lets you develop 
applications under Windows.

My question:  The Comm Developers Kit comes with a .DLL file, but VB refuses
to access it ("Error loading DLL" or something like that).  According to the
tech support at Arnet, they do not support Visual Basic, but they DO support C.
As I understand it, VB should be able to use it anyway.

Their Tech Support also told me they DO have clients who have been able to
get the board to work with Visual Basic and without the SDK.  (This is exactly
what I'm hoping to do).

Any help?  Anyone?  I have been able to execute other functions in the Windows
DLL files, so at least I have some idea how to declare and access DLLs.

Replies via Posting are welcomed, email encouraged.

Thanks, 
Mark

--
Mark Tsombakos
GTE - Special Systems
markt@rocky.ndhm.gtegsc.com

Newsgroups: comp.windows.ms.programmer,comp.windows.ms,comp.os.ms-windows.programmer.misc
From: Peter.Hug@bbs.actrix.gen.nz
Subject: Direct printing of lines of text
Organization: Actrix Information Exchange
Date: Thu, 7 Jan 1993 00:18:55 GMT

One of the features of my alarm-monitoring MS-Windows app I am currently
developing is to process messages from hardware devices connected to COMM
ports and output them concurrently to a window and a printer (the printed
output is a hardcopy of the sequence of events, called "Event-Log"). While
dumping messages to a window is a breeze, the same cannot be said about the
printer.

The only way I managed to rout an event immediately to the printer
(complying with MS-Windows printing procedures) was by using StartDoc(),
Escape(...PASSTHROUGH...) and EndDoc(). A single event is sent with
PASSTHROUGH and formated with CR\LF control characters. The application
knows how many lines fit on the printer and the last event that fits on
a page is terminated with a FF control character.

While this approach works, it has some nasty side effects:

- If I use another application to print documents, this document does
  not start on a new page (my app isn't aware of this and doesn't
  send a FormFeed to the printer). Furthermore, my app does no longer
  propper page advances since it has invalid information about the page
  position.

- Also, numerous events can occur simultaneously. Since each event causes
  a seperate document be sent to the printer, the print manager complains
  as soon as more than 100 documents (events) are queued. If I buffer events
  mayself (eg. if many events arive and I send as many events as possible
  within a single document to the spooler), the log prints only once the
  EndDoc() function is called. However, since the user can see all ariving
  events appearing in the event window but nothing appears on the printer,
  she/he gets the impression that something is wrong.

Does anyone know how this can be accomplished propperly? Or do I have to
Newsgroups: comp.os.ms-windows.programmer.misc
From: dhaliwa@ecf.toronto.edu (DHALIWAL BIKRAM SINGH)
Subject: Turbo Debug in Win3.1
Organization: University of Toronto, Engineering Computing Facility
Distribution: na
Date: Thu, 7 Jan 1993 07:30:13 GMT

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.
 
-- 
 
.............................................
 Bikram Dhaliwal (dhaliwa@civ.toronto.edu) 
 Toronto        (dhaliwa@ecf.toronto.edu) 
Newsgroups: comp.os.ms-windows.programmer.misc
From: osyjm@cs.montana.edu (Jaye Mathisen)
Subject: Any GIF display routines for windows 3.1? DLL?
Organization: CS
Date: Fri, 8 Jan 1993 20:17:28 GMT



I am needing to be able to display simple GIF's under windows, but I'd
rather not fire off another program to do it.

Speed isn't important.

I use Borland C++ 3.1, but under protest would use MSC with the 3.1 SDK.

Any help much appreciated.
-- 
 Jaye Mathisen, COE Systems Manager                (406) 994-4780
 410 Roberts Hall,Dept. of Computer Science
 Montana State University,Bozeman MT 59717	osyjm@cs.montana.edu
From: jca17@cl.cam.ac.uk (J.C. Ashworth)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Toolbar Support Available (C++)
Keywords: toolbar, OWL, Borland
Date: 7 Jan 93 14:58:45 GMT
Organization: U of Cambridge Computer Lab, UK

Whoa!

There's a lot of people out there wanting to use a toolbar, aren't there!
I'll post my code, documentation and example to a downloading site in the
very near future and write again when I've done so.

'Til then, NO MORE MAIL PLEASE!

I'll probably post to ftp.indiana.cica.edu as soon as I work out how to
do this. There are still one or two problems that need sorting out (see
my posting entitled Help! Memory Model Genius Required) so I won't post
until these are fixed (hopefully, a day or two should suffice).

Currently, the library only works with large memory model applications
(so OWL apps are safe anyway!)
-- 
           ______________ 
          /             /\ 
         /_____    ____/ /
          \___/   /\ __\/ 
             /   / /    
            /   / /  _________ 
  __       /   / /  /        /\ 
 /  \_____/   / /  /   _____/ /
 \           / /  /   /\____\/
  \_________/ /  /   / / 
   \________\/  /   /_/___ 
               /         /\ 
              /_________/ /
              \_________\/
Newsgroups: comp.os.ms-windows.programmer.misc
From: act@softserver.canberra.edu.au (Andrew Turner)
Subject: Re: Windows programs and text output  HELP!
Organization: University of Canberra
Date: Wed, 6 Jan 93 21:49:14 GMT

jcp29389@uxa.cso.uiuc.edu (I Spike - Therefore I Am) writes:
>is there any way to display text in a window besides using TextOut?
Well er, yes.
>perhaps even a way to display formatted text, or is the window always in 
>graphics mode therefore making me to create my own functions for displaying
>such text and updating the current position (even working with newlines)?

You might want to look at Barry Kaulers book 'Windows tm Assembly Language
and Systems Programming', Prentice Hall, ISBN 0 13 020207 X.  That's 
assuming you're not a purist however.  If you really must he even shows and
tells how to access video memory from protected mode!  Disk included.  Besides
being a book for the non-purist it also provides an excellent look at
Windows tm and DPMI internals and all with lots of documented assembler.  A
perfect compliment to Undocumented Windows.

-- 
Renrut Werdna			Probable-Possible, my black hen,
				She lays eggs in the Relative When.
				She doesn't lay eggs in the Positive Now
act@ss.canberra.edu.au		Because she's unable to postulate how
Newsgroups: comp.os.ms-windows.programmer.misc
From: hlam@bnr.ca (Hayward Lam)
Subject: NeXT User Group Of Ottawa Meeting on January 7 th
Reply-To: hlam@bnr.ca (Hayward Lam)
Organization: Bell-Northern Research Ltd.
Date: Tue, 5 Jan 1993 20:20:10 GMT


NeXT User Group of Ottawa Meeting on January 7th
------------------------------------------------


When : Thursday, 7:00pm
Where: ComputerActive
       21 Antares Dr., Unit 112,
       Ottawa, Ontario, Canada


Topics: 
***  Database on NeXT  ***
Demo and discussion on databases and development tools 
available on NeXT.
Inlcude Parabase, Sybase, Oracle, DBkit, Objective DBtool kit etc.
Topic will be oriented for users and developers alike.
Demo machine is a NeXTcube with NeXTdimension board.

(A guest will talk about their experience with database 
development. Not confirmed yet.)


***  General discussion  ***
CD-ROM drive available for 3.0 upgrade.
Software packages discount for user group members.
NeXTWorld Expo etc.


Please pass the news around to whoever might be interested.
Feel free to contact me if you have any questions.


Regards,
Hayward

phone: 613-763-3663
email: hlam@bnr.ca
From: jagrant@emr1.emr.ca (John Grant)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: difference between STUFF *stuff & STUFF stuff[]???
Date: 7 Jan 93 20:23:12 GMT
Organization: Energy, Mines, and Resources, Ottawa

In article <726351962snz@chrism.demon.co.uk> chris@chrism.demon.co.uk writes:
>In article <1993Jan6.084522.25921@emr1.emr.ca> jagrant@emr1.emr.ca writes:
>
>>At the risk of appearing stupid again, I have another (perhaps
>>obvious, but not right now at 3:30 AM) question...
>> [ Lots of stuff deleted]
>>
>>So, can someone tell me the difference between the following 2
>>statements:
>>        extern STUFF *stufftable;
>>        extern STUFF stufftable[];
>>with respect to the code generated when I reference stufftable, i.e.:
>>        stufftable[i].xxx=...
>>and explain why it is so dangerous here, but it's perfectly ok
>>to use a pointer or a [] in a function declaration.
>>-- 
>>John A. Grant                                           jagrant@emr1.emr.ca
>>Airborne Geophysics
>>Geological Survey of Canada, Ottawa
>>
>
>The difference is very simple:
>
>    extern STUFF *stufftable
>
>tells the complier that you have a global variable which is a POINTER to
>a "stufftable".  ie, the global quantity is a 2 or 4-byte pointer.
>
>    extern STUFF stufftable[]
>
>tells the compiler that you have a global ARRAY of STUFFs.
>
>The two things are totally different.  The reason that it doesn't matter
>in a function declaration is that passing the name of an array to a function
>is the same as passing a pointer to the start of the array.
>
>Hope this helps,


		Yes, it's me again and less stupid...
		Thanks to all you responded.  The essential
		difference is that:
			extern STUFF stufftable[];
		assumes that stufftable resides in the current
		data segment, when in fact it is a pointer to
		the stuff on the heap.
-- 
John A. Grant						jagrant@emr1.emr.ca
Airborne Geophysics
Geological Survey of Canada, Ottawa
From: lssong@matt.ksu.ksu.edu (Livingstone Song)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Menu Problem
Date: 8 Jan 1993 00:26:30 -0600
Organization: Kansas State University
NNTP-Posting-Host: matt.ksu.ksu.edu

Is there a way to find when the menu gets the focus?

What's the easiest way implement a code that will tell
me which menu item is currently being highlited either
by the mouse or keyboard.

Any hint will be greatly appreciated.

Please email or post.

Thanks,
lssong@matt.ksu.ksu.edu

Newsgroups: comp.os.ms-windows.programmer.misc
From: nectar@world.std.com (Jacques A Vidrine)
Subject: WinSock API?
Organization: The World Public Access UNIX, Brookline, MA
Date: Tue, 12 Jan 1993 15:39:33 GMT

Could someone point me to a specification of the
WinSock API?
-- 
Jacques A. Vidrine...	   |
nectar@world.std.com	   | What man has made,
			   | man can destroy.
			   |
From: gtd543a@prism.gatech.EDU (death)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Windows 3.1 LZEXPAND DLL
Date: 9 Jan 93 01:32:03 GMT
Organization: Purgatory
X-Newsreader: Tin 1.1 PL5

John Grant (jagrant@emr1.emr.ca) wrote:
: In article <1993Jan07.185848.23956@microsoft.com> dwightm@microsoft.com (Dwight Matheny) writes:
: 	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?


NO - it is not compatible with the unix version, nor was it intended
to be.  A most of the DOS users in the world DO NOT use unix, and are
therefore not confused.  
-- 
=========================================================================
WANTED:  Position for experienced Matrix runner.  Demanding and ambitious
positions welcome.  Must have support for a FUCHI XNN1-11-22 cyberdeck.
=========================================================================
Newsgroups: comp.os.ms-windows.programmer.misc
From: hafey@capitol.com (Rob Hafey)
Subject: Install Example Program??
Organization: Capitol Disc Interactive
Date: Tue, 5 Jan 1993 13:36:49 GMT

I would like to code examples for an install program for windows which creates
all the groups and icons for an application.  It seems like a straight forward
task however I can't seem to find one.  I am using the Borland environment.

Please EMAIL.

Thanks in advance, Rob
-- 
 Rob Hafey
 Capitol Disc Interactive (CD-I) 
 2121 Wisconsin Ave NW, Washington D.C. 20007   (202)625-0141 
 hafey@capitol.com
From: std_u22c@uni-duesseldorf.de (verehrte(r) Benutzer(in))
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: toolbar and mdi-window, turbo-pascal/ win
Date: Mon, 4 Jan 1993 15:37:58 GMT
Organization: Universitaetsrechenzentrum, Heinrich-Heine-Universitaet Duesseldorf
NNTP-Posting-Host: 134.99.8.52

It's just simple - create a window whose Parent isn't the mdi child-window
but the mdi frame-window. This gives you the ability to chose every
window-style (even without WS_SIZE) and to control every mouse-click etc.
You also should add the WS_TOPMOST style which prevents the window from
being hidden behind the mdi child-windows.
If you dont feel equal to do this, create an owned window which belongs to
the mdi frame-window.

Olli