HDTenEightyP/NetNews huggingface dataset:
From: ngorelic@speclab.cr.usgs.gov.cr.usgs.gov (Noel S. Gorelick)
Subject: Re: How does Windows draw the "ghost frame"?
Reply-To: ngorelic@speclab.cr.usgs.gov
Organization: MercWorks, Denver
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 17 Nov 92 02:37:29 GMT

Jan Schiefer (jan@nasobem.stgt.sub.org) wrote:
> Hi,
> 
> I am trying to draw a frame similar to the "ghost frame" Windows draws
> when you move a window by dragging the caption bar. I am having problems,
> however.

We had to do this.  The absolutly easiest way is to draw the ghost frame
yourself using an XOR pen and DrawRect().  Force a WM_Paint of the thing
you are drawing on top each time you draw your rectangle and you wont
get any mouse jumping.  (if you dont force it, the WM_Paints happen whenever
they feel like it and they jump pretty badly.)

If anyone has a better way, PLEASE let me know.  I spent more than a good man 
week on this problem.

--
"You want it should sing too?"   | /*  Yeah we got dogs and Valvoline
  ngorelic@speclab.cr.usgs.gov   |     Its a pretty damn good time.    */
"Life is pain. Anyone that tells you different is trying to sell you something"
From: jca17@phx.cam.ac.uk (J.C. Ashworth)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: OWL - is it possible...?
Keywords: Borland, OWL
Date: 23 Nov 92 18:23:22 GMT
Organization: U of Cambridge Computer Lab, UK

I have been trying to use the following code to construct an OWL Window that contains some text when it is
first displayed.
(Similar code could be used for lots of other GDI functions - lines, circles, etc).



class TTestWindow : public TWindow
{
public:
  TTestWindow(PTWindowsObject AParent, LPSTR ATitle);
}

TTestWindow::TTestWindow(PTWindowsObject AParent, LPSTR ATitle)
  : TWindow(AParent, ATitle)
{
  HDC TheDC = GetDC(HWindow);
  TextOut(TheDC, 20, 20, "Please work", 11);
  ReleaseDC(TheDC, HWindow);
}

void TTestApp::InitMainWindow()
{
  MainWindow = new TTestWindow(NULL, "Test Window");
}

...



As you can see, the code that draws the text is included in the window constructor.  And this is where the
difficulty lies.  When attempting to get a DC, it appears that the HWindow data member passed to GetDC()
does not have the value of the TTestWindow being constructed.  Indeed, the text actually gets drawn in the
window from which the program is executed!

I have tried experimenting a little with SetupWindow() member functions, but to no avail.  It seems such a
straightforward thing to want to do, that it must be possible.  Surely??  Please?!?

If anyone has any advice on how to get round this problem, I'd be very grateful.


----------------------------------------------------------------
Jules Ashworth
"There is an art to being pathetic..."

jca17@phx.cam.ac.uk
----------------------------------------------------------------
Newsgroups: comp.os.ms-windows.programmer.misc
From: okolbu@ifi.uio.no (Olav Kolbu)
Subject: Simultaneous file access on a network under MS Windows  
Organization: Dept. of Informatics, University of Oslo, Norway
Date: Sat, 21 Nov 1992 18:12:32 GMT
Originator: okolbu@driva.ifi.uio.no


Hello!

I'm going to attemt to write a small application that will run on several
Windows sessions simultanously on a network (Novell). The applications
should use a file to communicate, and they would all update this file at
irregular intervals. Each instance of the program is only interested in 
its own part of that file, but a different program will read the whole file 
at fixed intervals (5-10 secs). My questions are therefore:

One problem is locking the file, theoretically blocking some
of the programs off "forever". 

1. Are there any libraries for easily maintaining what could be 
   considered a tiny (minute...) database like this? (Record locking
   instead of file locking etc)

2. Does any of the major compilers have anything that might
   resolve this in an efficient way?

3. Are there better ways of communicating data across a network under 
   windows? We're talking tiny amounts of data here, say 80 chars every
   5 mins - 1 hour per application.

Language/compiler not decided yet, could be anything from VB2 to BC++
depending on what might have the right tools/libraries for this task.

Answers by email preferred, although I read this group as well. Just
hoping I won't miss any of the replies. (So many newsgroups, so little
time... :-)

				Olav Kolbu
From: nevstan@ec.uwa.oz.au (NevStan - B Murphy Nevstan A Tulloch - other)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: VB: format of strings
Date: 20 Nov 1992 04:03:40 GMT
Organization: The University of Western Australia
Distribution: world
NNTP-Posting-Host: decel.ecel.uwa.edu.au
Summary: How are strings stored in visual basic?
Keywords: visual basic windows

I'm writing a DLL which will be called by a visual basic program.
As part of its work, the DLL needs to modify a string which is owned
by the visual basic program.

For fairly intricate reasons, I cannot pass the string to the DLL as
a C-type (null terminated) string.  Instead I want to pass it as a standard
visual basic string.  That is, I do not want to pass the string with the 
ByVal keyword to my DLL.  Instead, I want to pass the string to my DLL in
the same way as I would pass it to a normal visual basic subroutine.
Unfortunately I need to know how visual basic stores its strings if I
am to do this.

I was wondering if anyone knows if there is a reference describing the format
of strings in visual basic.  Are there any ftp sites containing this info,
or do I have to buy the Visual Basic Control Development Kit?

Reply by eMail, and I'll summarise.  Thanks in advance,
Adrian.
Newsgroups: comp.os.ms-windows.programmer.misc
From:  hady@isi.itfs.nsk.su (Hapugin Andrey)
Subject: DLL format description needed
Date: Mon, 16 Nov 1992 08:03:13 GMT
Reply-To: hady@isi.itfs.nsk.su
Organization: Institute of Informatics Systems
Keywords: DLL format

Can anybody help me to find description of .DLL
files format for MS/DOS,OS/2 & Windows? I need
it to implement dynamic loader/linker for DLLs and
unfortunately I can't find its description here.
Any help well be greatly appreciated.

Thanks in advance,
Andy D. Khapugin (Hady),
hady@isi.itfs.nsk.su


Newsgroups: comp.os.ms-windows.programmer.misc
From: ngorelic@speclab.cr.usgs.gov.cr.usgs.gov (Noel S. Gorelick)
Subject: Re: HELP with user draw buttons
Reply-To: ngorelic@speclab.cr.usgs.gov
Organization: MercWorks, Denver
X-Newsreader: TIN [version 1.1 PL6]
Date: Tue, 17 Nov 92 02:51:40 GMT

Talib K. Morgan (tmorgan@andromeda.rutgers.edu) wrote:
: I would like to create a user draw push button that would appear clear to the 
: user of the program until they click on that button.  Could someone tell if 
: this is possible.  The userbutton, to the user, would only appear to contain
: text.  It would be really nice if I could make the pushbutton any color that I
: chose.  Is this possible?
: 
: Talib
: tmorgan@andromeda.rutgers.edu

If its not in a dialog box, it is trivial...  Just put up a window where you
want it, with whatever you want in it, and no border...  It can be made
to appear transparent.  Then just process mouse messages.

If its in a dialog, you will need a custom control...  Outta my experence.
(If you are using borland, though, their custom controls allow this
 quite easily.)

--
"You want it should sing too?"   | /*  Yeah we got dogs and Valvoline
  ngorelic@speclab.cr.usgs.gov   |     Its a pretty damn good time.    */
"Life is pain. Anyone that tells you different is trying to sell you something"
Newsgroups: comp.os.ms-windows.programmer.misc,comp.windows.ms.programmer,bit.listserv.win3-l
From: wwn8108@cs.tamu.edu (Trey Nash)
Subject: Stacker 3.0
Organization: Computer Science Department, Texas A&M University
Date: Sat, 21 Nov 1992 00:31:05 GMT

Does anyone out there have Stacker 3.0?  If so, please help!!!!  The file
STAC2.EXE on my second installation disk (for 5 1/4, I have no idea where it's
at on 3 1/2) is corrupted.

Could someone please send me a copy of it.

Thanks...

				-Trey

wwn8108@tamsun.tamu.edu

Newsgroups: comp.os.ms-windows.programmer.misc
From: stever@netcom.com (Steve Riggins)
Subject: Need compressed DIB
Organization: Netcom - Online Communication Services (408 241-9760 guest)
Date: Thu, 19 Nov 1992 23:46:16 GMT

Hi!  We need a compressed DIB to run through an application we are
writing on a different platform.  If you can point us to where we
might find some compressed and uncompressed DIBs, I'd be most
appreciative!

Thanks!

Steve
-- 
Steve Riggins                  Internet: stever@netcom.com
AOL:      RigginsS             "Wacky things have I done"                 
Newsgroups: comp.os.ms-windows.programmer.misc
From: card@sybus.com (James Card)
Subject: Windows fonts
Organization: Sybus Corporation, Largo, FL
Date: Thu, 19 Nov 1992 14:29:08 GMT

I am working on a graphics package (running under non-Windows) and
would like to make use of Windows font libraries since there are
so many of them and they are easy to obtain in computer
software stores.

The problem comes in as to were to find out information on
the file formats of these font libraries.  Ultimately,
what I would like to do is come up with a method that
would allow end users of this package to go out and
buy their own scalable font packages or create them themselves
and include them into their programs.  This package
would run on a 386 system but not running DOS (it is an
embedded system and the fonts would become part of the system).

Thanks, in advance, for any help any of you are able to
give me.

James Card
card@sybus.com
-- 
  __/o___~_                 James Card (Firmware Engineer)
 (________|  Nothin' like   Sybus Corporation
   @    @    top down       2300 Tall Pines Dr. Suite 100
             weather...     Largo, Fl  34641  (813) 535-6999
Newsgroups: comp.os.ms-windows.programmer.misc
From: qian@eta.uleth.ca (Howard Chien)
Subject: how to link? _2_
Summary: help
Keywords: help
Organization: University of Lethbridge
Date: 18 Nov 92 04:48:41 GMT

Just want to add a few detail, the compiler I'm using is BC++3.0, and the 
actual linker error messages saying all the methods and functions defined
in the mainmodule(.CPP) is duplicated in the mainmodule(.CPP), which was
I couldn't understand.

If you have any solutions, please post it or mail to me.

Thanks a lot.

qian@sigma.uleth.ca

--
.............................................................................
<<<<<<<<<<<<<<<<<<<  Internet Address:  qian@beta.uleth.ca  >>>>>>>>>>>>>>>>>>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I know that you believe you understand what you think I said, but I'm
not sure you realize that what you heard is not what I meant.
From: hodge@iccgcc.decnet.ab.com
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: How to get Windows to load DLLs that are not in PATH, etc.
Date: 23 Nov 92 07:52:29 EST
Distribution: na

In article <By2wC2.1s7@gpu.utcs.utoronto.ca>, jinli@gpu.utcs.utoronto.ca (Jin Tonic Li) writes:
> [...]
> Is there a way to instruct Windows to look for DLLs in a user-supplied dir?
> Any other method to get around this problem?(aside from putting all my custom
> DLLs in windows system dir)
>      

  How about temporarily adding your dll directory to the PATH environment
variable?

++++  Bob Hodge  +++++++++++++++++++++++++++++++++++++++++++++++++++
+  I'm looking for Jim Meerbot! Please email me if you know him!   +
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Newsgroups: comp.os.ms-windows.programmer.misc
From: schwan@rbg.informatik.th-darmstadt.de (Guenter Schwaninger)
Subject: Edit control > 32K in TPW
Date: Thu, 19 Nov 1992 09:54:51 GMT
Organization: TH Darmstadt
Keywords: TPW, TEdit

Hi,
I'm looking for an edit control that can handle more than 32 KB.
I know that the standard edit control needs to be rewritten.
Does anybody have already done this, especially in Turbo Pascal for
Windows ?

ANY help is greatly appreciated.
Thanks, Guenter
-- 
   __&__      
  /     \     Windows is from the company that brought us EDLIN. 
 |       |    
 |  (o)(o)    
 C   .---_)   
  | |.___|    
  |  \__/     Guenter Schwaninger 
  /_____\     schwan@rbg.informatik.th-darmstadt.de 
 /_____/ \    
/         \   
Newsgroups: comp.os.ms-windows.programmer.misc
From: allenli@cs.tamu.edu (Wei-Lun Li)
Subject: Petzold's Book 3rd ed. for sale
Organization: Computer Science Department, Texas A&M University
Distribution: usa
Date: Thu, 19 Nov 1992 06:03:06 GMT

Programming Windows 3.1, 3rd edition, Charles Petzold
Published by Microsoft Press
Includes one 3.5" HD disk which listed all source codes.
Requires MSC/C++ 7.0 or BC++ 3.1 to compile the examples.

This is the new edition of the classic Windows programming book. 
The book is new.  The disk pack is unopened.

Cover price: $49.95
I have 3 copies.  Highest bids take them.  I can sell them 
separately.

Please reply by e-mail.
From: malcolm@muir.demon.co.uk ("Malcolm S. Muir")
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: SUMMARY: accessing real mode memory
Date: 15 Nov 92 16:49:45 GMT
Reply-To: malcolm@muir.demon.co.uk
Organization: Muir
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.18)


In article <1992Nov11.095107.6433@rhrk.uni-kl.de> baum@kirk.es.go.dlr.de writes:

>Hi!
>
>I originally posted a question on accessing real mode memory (the first MB)
>directly. This is needed to read/write to memory located on add on boards
>as frame grabbers grafics cards, etc. The solution is relatively simple and
>was supplied to me first by nar@math.wayne.edu (Mark Narduzzi) and then by
>brad@huey.jpl.nasa.gov for use with Borland C++ 3.1. 
>
>The Windows kernel supplies selectors for 64KB size memory pages, which are
>called __A000H, __B000H, ... These are used in the following manner to access
>memory D0000-DFFFF:
>
>extern WORD _D000H;
>LPBYTE fp = MAKELONG(0, &_D000H);

There is also a _0000H, _0040H and _ROMBIOS - very useful...

-- 
=============================================================================
Malcolm S. Muir                              EMAIL: malcolm@muir.demon.co.uk
Sunderland                                   CIX: mmuir BIX: mmuir
England                                      CSERVE: 100012,31
======================= PGP 2.0 Public Key Available ========================
From: brisson@philmtl.philips.ca (Pierre Brisson)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: __aseg{hi|lo} not defined; using model L MFC
Date: 21 Nov 92 04:34:51 GMT
Distribution: comp
Organization: Philips Electronics Limited, St. Laurent QC, Canada

In article <1992Nov17.211146.27916@kth.se> d88-jwa@byse.nada.kth.se (Jon Wdtte) writes:
>Yo,
>
>I'm using the Microsoft Foundation Classes that came with
>version 7.00 of the compiler. However, after creating a
>Large version of the library AFX, each one of my class
>modules give errors that __aseghi and __aseglo are undefined.
>
>Making the "phone book" demo in large model works though.
>What am I doing wrong?
>
.... stuff deleted...


Maybe... try to disable stack checking ? (use option /Gs)

Pierre
From: sundquis@xerox.com (Doug Sundquist 73618 - RIC)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Windows Device Drivers
Date: 20 Nov 92 19:08:29 GMT
Reply-To: sundquis@xerox.com
Organization: Xerox Corporation, Webster NY

I am looking for a good book or article that covers information on writing device drivers for Windows.
Thanks,
Doug
Organization: SAS Institute Inc.
Date: Wednesday, 18 Nov 1992 16:57:40 EDT
From: <SASTPH@vm.sas.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Visual Basic questions (Thanks!)

Thanks for all the replies!  I think I've got a good handle on how to
do the things I said "couldn't" be done.
From: ssuhouns@csug.cs.reading.ac.uk (Paul Marshall Hounslow)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: BWCC.DLL QUESTIONS...
Date: 16 Nov 92 12:28:49 GMT
Reply-To: ssuhouns@csug.cs.reading.ac.uk
Organization: Dept. of Comp. Sci., University of Reading

In article 21714@kakwa.ucs.ualberta.ca, jimmy@namao.ucs.ualberta.ca () writes:
>
>Borland's BWCC.DLL contains glyphs (bitmaps) of icons that appear in
>message boxes in Borland's own products - a red hand, "?", "!" and "i".
>Yet I can't find any documented way of using them.  I've designed
>a custom message box class that uses the grey "bordlg" style, and these
>icons would look better than the Windows standard ones (which I'm also
>not sure of how to access).
>
>Are these BWCC glyphs documented, or just transient things that may go
>away in a future release?
>
>I'd rather not mess with figuring out the monitor resolution, then
>deciding which glyph to yank directly out of the DLL (there appear to
>be VGA, EGA and CGA versions in there).  Is there a better way?
>
>Many thanks.
>Jimmy
>Please email to jimmy@namao.ucs.ualberta.ca
>--
>jimmy@namao.ucs.ualberta.ca

If you wish to use these bitmaps on your own buttons in a dialog box:

  The bitmaps are in sets of six, to allow for VGA/EGA, pressing the button, and selecting.

  So for IDOK, the buttons are 1001, 2001, 3001, 4001, 5001, 6001.

  To use the bitmaps on the buttons for IDOK, use the button from the BWCC tools in
  workshop.  On setting the ID to IDOK (or 1), you should see the bitmap on the button.

  To define your own buton bitmaps, you need to provide one each of the 1xxx, 2xxx, ...
  6xxx where xxx is your ID for that button.

Of course, you must also ensure that your program starts the BWCC.DLL as well.  I don't
know if you need to have the dialog as a bordlg type though.


Paul

----
73's de Paul                         The smelling pistakes are all my own.
Packet: G4YFY@GB7BEQ                 I have no employer (I retired ;-).
EMail:  ssuhouns@susssys1.rdg.ac.uk  1990 16 valve K100LT        DoD #0573
Newsgroups: comp.os.ms-windows.programmer.misc
From: mitch@giesy.mitch.b17a.ingr.com (Mitch Giesy)
Subject: Dual-mode isr question
Organization: Mapping & Energy, Intergraph Corp., Huntsville, AL
Distribution: comp
Date: Wed, 18 Nov 1992 20:10:11 GMT

Hello,
        I'm trying to use a dual-mode isr for data acquisition under
windows as per Roy Furman's series of articles appearing in Personal
Engineering and Instrumentation News. 

One major component of the technique that I don't grasp is the method
by which my program can access the data acquired by the isr. Under DOS
one can use expressions directly involving variables declared in an
application (typically one of the functions of my data-acq DOS
applications would be to take care of installing any special isrs).

However, I didn't notice any explanation of how to get data from a
[buffer maintained by] dual-mode isr. He seemed to assume that it
would be used in the context of a DOS device driver (a topic about
which I know little), but I don't want to bother with a device driver
- I just want to provide the data to my program directly from the isr.

Is there a reliable way to do this? Does anyone have any experience
regarding Furman's routines, or other approaches? 


Thanks,
Mitch
--
Mitch Giesy	 | WK: (205) 730-1773		|  DISCLAIMER:
Intergraph Corp. | EMAIL:			|  When all is said and done,
1 Madison I.Pk   | mitch@giesy.b17a.ingr.com    |  its your fault if you done
Huntsville, AL	 | uunet!ingr!b17a!giesy!mitch 	|  what I said. :-)
From: espee@csv.warwick.ac.uk (Mr H M Wong)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Windows Help!
Date: 20 Nov 1992 23:36:48 -0000
Organization: Computing Services, University of Warwick, UK
Distribution: world
NNTP-Posting-Host: clover.csv.warwick.ac.uk

Hi,

        I have a question about Windows capability. Do you know if there is a
maximum number of programs that Windows can be run simultaneously? If so what
is the number and where can I get the information? Any reply will be
appreciated and please send email to espee@csv.warwick.ac.uk. Thank you in
advance.

Ian.
From: ae302@cleveland.Freenet.Edu (Peter Haller)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Faking re-entrancy with second copy of DLL?
Date: 15 Nov 92 16:27:20 GMT
Article-I.D.: usenet.1e5tp8INN4g2
Reply-To: ae302@cleveland.Freenet.Edu (Peter Haller)
Organization: Case Western Reserve University, Cleveland, OH (USA)
NNTP-Posting-Host: slc4.ins.cwru.edu


In a previous article, mbk@netcom.com (Miles Kehoe) says:

>OK, imagine you had a DLL from company X called X.DLL.
>Company X says it is not reentrant, so you know you cannot
>have two programs active which use X.DLL.
>
>If you rename X.DLL to Y.DLL, and tell your program to
>access Y.DLL instead of X.DLL, is anything else going
>to bite you? It *looks* like 'x' is stored in X.DLL
>and simply renaming the DLL file does NOT do the
>complete trick. 
>
>Suppose now that you had a copy of the DLL source; can
>you simply rename and relink it?
>
>I know it's wierd.... just trying to fake it!
>
>Miles
>
>
A non-reentrant DLL? Must be using a lot of static allocations or
Global buffers. Nasty stuff. What you are talking about though
should work fine since an new copy of the DLL is used.

PCH
-- 
Peter C. Haller                         |       'If you do what you
Lorain Products                         |       have always done,
ae302@cleveland.Freenet.Edu             |       expect what you have
"Are we having fun yet?"                |       always received.'
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.setup
From: plaut@sc2a.unige.ch (Olivier PLAUT)
Subject: *** Still need **HELP** with EXCEL3/4 and cell formatting!! ***
Organization: University of Geneva, Switzerland
Date: Sat, 21 Nov 1992 11:49:56 GMT


Hello.

I repost this message, since I received only two answers which
didn't solve my problem.

I need some help with EXCEL. I'm running EXCEL 3.0 and EXCEL 4.0
under WINDOWS 3.1. The problem is exactly the same with Excel 3 and 4.

I have differences between what I see on the worksheet and what appears
on the PrintPreview (the printed size corresponds to the preview).

Let's say I write in a cell:

 |         |         |
 |This is a long text|
 |         |         |

This text is 2 cells wide. It fills exactly 2 cells on the worksheet.

What I have on the preview is:

 |           |           |
 |This is a long text    |
 |           |           |

The cells are actually wider. This is very uncomfortable when I use
Format Border Outline around the two cells.

I'm using True Type Fonts. The problem is the same with all sorts of fonts.

Using another PC, I didn't had this problem. I copied the file to my
PC and I have the problem again.

I was using the same EXCEL version under WINODWS 3.0 with Adobe ATM 2.0 and I
hadn't this problem.

I have the same problem with 3 PC and 3 different printers.
For each printer, I have the latest version of the printer driver.

HAS SOMEONE AN IDEA WHICH COULD SAVE ME OUT OF THIS NIGHTDREAM ?

Thanks.
Olivier.

-- 

-------------------------------------------------------------------
 Olivier Plaut                   |  
 Institute of Forensic Medicine  |   Phone:    +41 (22) 702.56.12  
 Toxicology Unit                 |   Fax:      +41 (22) 789.24.17  
 University of Geneva            |
 Av. de Champel 9                |   E-mail:  plaut@sc2a.unige.ch  
 CH-1211 Geneve 4                |            plaut@cgeuge52.bitnet
 Switzerland                     |   
-------------------------------------------------------------------
From: dove+@pitt.edu (Daniel L Dove)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Looking for the FAQ for this group
Date: 18 Nov 92 16:53:29 GMT
Organization: University of Pittsburgh
Originator: dove@unixd1.cis.pitt.edu


	Hello, I'm lookinf for the FAQ file, etc.. for this group.

Any help would greatly be appriciated.


		Thanks in Advance

			Dan Dare


			dove@unix.cis.pitt.edu
			dove@vms.cis.pitt.edu