HDTenEightyP/NetNews huggingface dataset:
From: ken@minster.york.ac.uk
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Qns abt drag/drop & GlobalUnlock
Date: 14 Sep 92 17:14:09 GMT
Organization: Department of Computer Science, University of York, England
X-Newsreader: Tin 1.1 PL5

Vince Curley (vcurley@zeus.calpoly.edu) wrote:
: In article <1992Sep11.052535.1107@nuscc.nus.sg> twchan%Solomon.Technet.sg (Chan Tur Wei) writes:
: >
: >	(1) Supporting "Drag" besides "Drop"
: 
:   Begin a drag server (a la File Manager) is undocumented.  And where do
: we all go to get our undocumented and nasty workarounds?  That's right!
: Undocumented Windows by Schulman, et al, Addison-Wesley.  Great book.
: Get it.  Read it.  It will enlighten you on many things, including the
: drag and drop server necessities.

Ahem. It's actually documented in a short article in the Microsoft Systems
Journal, Vol 1 No. 3, June 1992. Still, it's an undocumented API call. One
wonders if it's semi-official if it's in the MSJ.

--
Ken Tindell             Internet      : ken@minster.york.ac.uk
Computer Science Dept., Local FTP site: minster.york.ac.uk
York University,        Tel.          : +44-904-433244         
YO1 5DD, UK             Fax.          : +44-904-432708
--
"The Gulf War won't be like a Rambo film; it will be long, bloody and terrible"
From: tanida@norns.css.gov (Tom Tanida)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Petzold, 3rd edition?
Date: 12 Sep 92 23:02:48 GMT
Reply-To: tanida@esosun.css.gov (Tom Tanida)

Anybody seen this yet?  There's an ad in the latest Windows magazine
(page 68 or so of the October issue).  I tried calling (800)-MSPRESS,
but was totally annoyed (and then disconnected) by their voice mail system.
I called one bookstore and they said "it's on order, should be any day
now", another said October.  Someone I know got an flyer in the mail,
but still no book in the store.

-Tom
tanida@esosun.css.gov
Newsgroups: comp.os.ms-windows.programmer.misc
From: olaf@tpki.toppoint.de (Olaf Schlueter)
Subject: Open PrePress Interface (OPI) documentation ?
Organization: Toppoint Mailbox e.V.
Date: Sat, 05 Sep 1992 13:19:04 GMT

I'm looking for a document describing the OPI supported by
PageMaker and Quark XPress. Any hints welcome.

Thanks in advance,

-- 
Olaf Schlueter, Sandkuhle 4-6, 2300 Kiel 1, Germany, Toppoint Mailbox e.V.
olaf@tpki.toppoint.de
Weibliche Logik: Die Kunst, aus Unwesentlichem Schluesse zu ziehen.
From: rohling@westwood.mech.ubc.ca (Gerry Rohling)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Using SetCapture(hWnd)
Keywords: Mouse SetCapture QuickC
Date: 11 Sep 92 17:22:09 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada

I hope this is not an FAQ but here is my problem:

I am using QuickC 1.0 and am trying to gain control of all mouse input from a dialog
box so that I can manipulate a cursor on another video display. From looking through 
the manual I believe what you do is the following

	SetCapture(hWndDlg);
	:
	:
	(process all window messages WN_MOUSEMOVE, WM_LBUTTONDOWN that I am
	interested in. When the user sends a WM_RBUTTONDOWN I use a
	ReleaseCapture();
	:
	:
	Mouse messages are back to normal.

	Is this in any way correct or am I missing something?

	Thanks in advance for the assistance.
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools
From: indole@mace.cc.purdue.edu (Matthew Parker)
Subject: INP and OUT routines for Visual Basic needed
Organization: Purdue University
Date: Tue, 15 Sep 1992 18:51:14 GMT


I just bought a copy of Visual Basic becuase I wanted to write an application
for Windows which controls hardware directly through the PC's I/O ports.
Much to my annoyance, I find that I need routines not implemented in VBasic
to do this.  Can anyone help?

Thanks,
Matt
From: rjsparks@lstar31.tamu.edu (Robert Sparks)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: WinExec return useful?
Date: 8 Sep 92 15:04:25 GMT
Article-I.D.: tamsun.1992Sep8.150425.9484
Distribution: usa,world
Organization: none

In article <1992Sep8.111436.10411@bohra.cpg.oz.au>, daavid@bohra.cpg.oz.au (Daavid Turnbull) writes:
|> A problem that I am currently trying to solve (I have been successfully
|> putting it off so far), is how to obtain information about the exit code
|> of a dos app.  I know that I can set up the dos app to write a file etc.
|> but I would much rather not have to resort to suc a messy solution.  The
|> real problem is that the exit code of the app becomes part of the 
|> enviroment which In my case is essentially lost when the app terminates.

How about any non-file-based transfer mechanism from a DOS app kicked off
with WinExec?

RjS
From: kevinc@adp.uucp (Kevin Cherek)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Want more info on Windows & Netware programming
Date: 9 Sep 92 21:59:54 GMT
Organization: U of Wisconsin ADP

Hi,

I'm trying to write a Windows program that makes use of a Novell Netware
network.  My question is how do I make the network function calls.  Page
397 of the Overview in the SDK 3.1 talks about a NetwareRequest function
in the Netware DLL.  Does anyone know where I can get this dll and assoc.
documentation?  I assume (based on a response to a previous post) that I
could use the Netware DOS interface with the DOS3Call function, yes?

Has anyone written a good book about this sort of thing?

Thanks,
- kev -
-- 
Kevin Cherek
Programmer/Analyst
UW-Madison Dept. of Info. Technology
Ph (608)263-8035
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: read-only filename template in COMMDLG GetOpenFilename
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 16 Sep 1992 04:31:33 GMT

How can I make the filename template used in the Common
Dialog function GetOpenFilename non-editable, i.e. READ-ONLY!

Suppose an application only recognizes two file types:
     *.XYZ and *.ABC
I supply a table of those 2 templates to GetOpenFilename.  Yes the user
can select either of the templates from the table, but they can also
edit the template, i.e. *.* and choose a file which is NOT *.XYZ or 
or *.ABC.  This seems pretty silly.  Now when I return from 
GetOpenFilename, I have to parse the filename myself and ensure that the
filename extension is either .XYZ or .ABC.  If not, I have to pop up an
error message and call GetOpenFilename AGAIN!  Wouldn't it be a lot 
simpler if the template was READ-ONLY?  GetOpenFilename may as well not 
have user-supplied templates & just do *.* and require user to check it!

Plainly put, from the point of view of the application, if it isn't .XYZ 
or *.ABC then it is an unrecognized file! There is no room for creative 
file-naming or user-preferred names!  Imagine the confusion if people 
used names like XXX.ABC instead of XXX.BMP or XXX.ZAP instead of XXX.EXE?
Newsgroups: comp.os.ms-windows.programmer.misc
From: dtam@fraser.sfu.ca (Dominic Pok Man Tam)
Subject: use font resources created by SDK in Toolbook 1.5
Organization: Simon Fraser University, Burnaby, B.C., Canada
Date: Mon, 7 Sep 1992 18:19:50 GMT

Hello :
 
How to use the font reource (.FNT) created using SDK in ToolBook 1.5? In
toolbook, I can use the openscript command SET to choose fonts which is
installed with windows. However, how to use external font resource?
 
 
Regards.
From: gordy@endor.uucp (Robert Gordy)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Help needed with Borland C++ 3.1
Date: 13 Sep 92 00:49:00 GMT
Organization: Aiken Computation Lab, Harvard University

In article <1992Sep11.014350.1156@iti.gov.sg> kevin@iti.gov.sg (Kevin Patt (SE)) writes:
>Hi,
>
>    I am doing some Windows programming using BC++ 3.1 and I am facing some
>problems with compiling the source into a Windows executable.  The situation
>goes like this:
>
>    The application will run with no problem at all if I run it by making use
>of the "RUN" menu item in BC++3.1.  The problem arises when I run it as a
>stand-alone after compiling and I keep getting the error message "-5" everytime
>I attempts to open any dialogs (those done using the Resource Workshop>. The
>documentation says the error means "Window is invalid because Create did not
>succeed".
>
>    Can anyone help me in this? Thanks!

Welcome to the wonderful world of Borland/Windows programming!

I believe that error comes from OWL actually (I assume you're 
using the OWL library).  The usual reason is that you mistyped
the name of a resource (perhaps a dialog box name or something)
when creating the appropriate object.  My only advice is to
check your names very carefully.

Rob Gordy
Newsgroups: comp.os.ms-windows.programmer.misc
From: d88-rjo@nada.kth.se (Rickard Jonsson)
Subject: What to use for items in a DDE conversation w/ Word?
Originator: d88-rjo@dront.nada.kth.se
Reply-To: d88-rjo@nada.kth.se (Rickard Jonsson)
Organization: Royal Institute of Technology, Stockholm, Sweden
Date: Tue, 15 Sep 1992 11:11:05 GMT

Here is the problem: I want to set up a DDE link with a WORD document.

I need the service name, fine: WINWORD.
I need a topic name. That's also ok: my document name.
But then I need an item name... Items makes sense with applications
like Excel where you have data ranges i.e. A4:E13. But in a text document???

Please reply by e-mail.

/Rick

Newsgroups: comp.os.ms-windows.programmer.misc
From: dem21178@uxa.cso.uiuc.edu (Dan Montroy)
Subject: Max memory for Win 3.1?
Organization: University of Illinois at Urbana
Date: Tue, 8 Sep 1992 14:08:52 GMT

How much memory can Windows 3.1 handle at one time?  16MB, or even more?

Dan

-- 
Dan Montroy
University of Illinois
d-montroy@uiuc.edu
Xref: sparky comp.os.ms-windows.programmer.misc:1815 alt.hypertext:755
From: mikef@syacus.acus.oz.au (Mike Floyd)
Newsgroups: comp.os.ms-windows.programmer.misc,alt.hypertext
Subject: Re: Testing MS Windows Help
Date: 14 Sep 92 02:18:08 GMT
Article-I.D.: syacus.1992Sep14.021808.11040
Organization: ACUS Australian Centre for Unisys Software, Sydney

kstout@medieval.East.Sun.COM (Kate Stout - Sun PC Network Engineering) writes:

>I'd like to get a sense of how people are testing OnLine Help systems
>in Windows. Are you using tools? If so what, and how good are they?

>What other ideas do you have? We'd like to test 

>1) completeness -- all jumps/popups go to the right thing
>2) flow --- browse sequences are right, for example
>3) all hotspots (.shg) show the right topics

>As a side note, has anyone created a .dll or a macro for help that
>lets you print all the topics in one file with one command? If not,
>Microsoft... are you listening???? It would be great to go paper free.


There are two issues here: testing the software and testing the content of
the help itself. We use Autotester for Windows for testing that all links work
correctly in the file, though if it's a small file and you won't need to do
much in the way of regression testing, you'd be better off testing the links
manually.

From the authoring point of view, what needs to be tested is not that links 
work but that the destination of each link is the logically correct topic.
Currently we do this manually (groan). Anyone know of a program that can search
a compiled help file and identify synonyms between hotwords and destination
topic titles?

Autotester for Windows is available from Software Recording Corporation in
Dallas TX, Ph 214-368-119.
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.os.ms-windows.programmer.win32
From: tad@wrq.com (Tad Marshall)
Subject: Re: How to change color of a .bmp file upon loading 
Keywords: Change color of a bitmap file
Organization: Walker Richer & Quinn, Inc., Seattle, WA
Distribution: na
Date: Sat, 12 Sep 1992 16:05:49 GMT

In article <1992Sep12.051058.16495@nuscc.nus.sg> shah@cherry.NoSubdomain.NoDomain (shahrin abdullah) writes:
>I would like to know whether is there a function in the SDK which allows me
>to change the color of a bitmap after loading.

A .BMP file is a device independent bitmap (DIB) with a BITMAPFILEHEADER at
its start.  This header is followed by some bitmap parameters, a palette,
and the actual bitmap bits.  It's all quite well documented -- in the win31
sdk, look in volume 3 on pages 236-241 under BITMAPFILEHEADER, BITMAPINFO
and BITMAPINFOHEADER.  To change the colors in a bitmap, load the DIB into
memory, modify or copy the header, palette and/or bitmap bits as you wish
and then use SetDIBits, SetDIBitsToDevice or StretchDIBits to display the
resulting DIB.

Tad Marshall
Newsgroups: comp.os.ms-windows.programmer.misc
From: adavis@mcl.bdm.com (Arthur Davis x4675)
Subject: Re: Petzold, 3rd edition?
Date: Sun, 13 Sep 92 04:53:14 GMT
Organization: BDM International, Inc.

I just asked for the 3.1 edition of Petzold today at Borders Books
in Vienna, Virginia.  They said it would be arriving on Monday (14th).

They ALSO said that the sucker costs $50 !!!
From: grant@pentagon-gw.army.mil (Pete Grant)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Error Code -5
Date: 12 Sep 92 17:06:55 GMT
Organization: U.S. Army Artificial Intelligence Center, The Pentagon

In article <UedWMNq00UhWA2T31y@andrew.cmu.edu> dh4h+@andrew.cmu.edu (David A Hanekamp) writes:
>I'm getting a dialog box that pops up and says "Error code = -5 Ok to
>proceed", whenever I try to bring up one of my dialog boxes in BC++ 3.1.
> Does anyone know what causes this?
>
There are three common reasons:

1.  Your dialog ID number is not the same in your program as in your
    resource file.

2.  ID number discrepancy in one of the controls within that dialog.

3.  One or more of the controls are being incorrectly initialized.

Keep looking at your code and check everything.  Error code -5 means that
the system was unable to create the dialog as requested.

Good luck.

Pete
From: pitaro@joker.sanders.lockheed.com (Michael Pitaro)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Norton example code uncovers possible windows bug?
Date: 8 Sep 92 19:19:59 GMT
Reply-To: pitaro@rocket.sanders.com
Followup-To: comp.os.ms-windows.programmer.misc
Distribution: na
Organization: Lockheed Sanders, Inc.
In-reply-to: pitaro@joker.sanders.lockheed.com's message of 8 Sep 92 19:01:42 GMT

In article <PITARO.92Sep8150142@joker.sanders.lockheed.com> pitaro@joker.sanders.lockheed.com (Michael Pitaro) writes:
From: furballs@sequent.com (Paul Penrod)
Subject: Re: Recursion and Windows programming
Organization: Sequent Computer Systems Inc.
Date: Wed, 9 Sep 92 07:28:27 GMT

In article <1992Sep8.111139.8820@iccgcc.decnet.ab.com> schmidtg@iccgcc.decnet.ab.com writes:
>
>
>I am in the process of converting a DOS program to run in the MS Windows
>environment and I am having some difficulties.  The program uses a recursive
>search routine to find the solution to a problem.  The program also must do
>some screen output along the way.  The problem that I am having is in breaking
>up the recursive algorithm so that it can be executed piece-meal in the
>Windows event driven execution paradigm.  I want to run the algorithm
>during idle time processing and so I must only execute a portion each time.
>Since a recursive algorithm uses the machine stack, I don't know of an easy
>way to save context and restore it between processing without getting down
>and dirty.  I'm sure I'm not the only one who has encountered this problem.
>How have others solved it?
>
>
>I hope this isn't an FAQ, my humble apologies if it is.
>
>
>Regards,
>
>
>-- Greg Schmidt		schmidtg@iccgcc.decnet.ab.com
>

Try using a state machine to describe the process, since that is
much closer to Windows programming than Recursion is. (No acedemic
arguments on theory please!). From a practical stand point, I have
been able to break up and parcel out for execution most any
algorythym I have needed in the past, especially for real time
process control, and background processing.

Paul

-- 
--------------------------------------------------------------------
            Bureaucracy: noun, plural - Bureaucracies.
         The process of turning energy into solid waste.
---------------------------------------------------------------------
From: dh4h+@andrew.cmu.edu (David A Hanekamp)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Custom Controls and Tabstop
Date: 9 Sep 92 21:49:37 GMT
Article-I.D.: andrew.gefi7lG00UhW49I7Yk
Organization: Sophomore, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA

I'm writing a program in BC++ 3.1 with a dialog box that contains some
custom controls that I wrote myself.  I give these controls the
WS_TABSTOP style, and that works.  However, all my controls are added to
the end of the control list.  Thus the tab sequence is kinda out of
order.  Does anyone know a way to fix this?  If there were a way that I
could put my custom class's name in the .RC file (at the places where I
want the tabstops) that would solve it, but the microsoft resource
compiler doesn't allow this.  
  Any help will be appreciated.

  Dave
From: gulcu@masg1.epfl.ch (Ceki Gulcu)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Qns abt drag/drop & GlobalUnlock
Date: 11 Sep 92 12:32:25 GMT
Organization: Ecole Polytechnique Federale de Lausanne

In article <1992Sep11.052535.1107@nuscc.nus.sg>, twchan%Solomon.Technet.sg (Chan Tur Wei) writes:
|> 
|> Dear netters,
|> 
|> I'm posting the questions below on behalf of a friend who's having 
|> trouble with some Windows programming problem.  Appreciate if someone
|> could help!
|> 
|> 	(1) Supporting "Drag" besides "Drop"
|> 

    Sorry, I can't help you on this one.

|> 	(2) Lock and Free Memory problem
|> 
|> 	When an application calls GlobalUnlock() and receives zero in
|> 	return, it means that the lock count of the memory handle has
|> 	reduced to zero.  However, when the application immediately
|> 	tries to free it, it receives a GP fault saying that the
|> 	application is trying to free a locked memory object.  This
|> 	problem can be worked around by calling another GlobalUnlock()
|> 	before GlobalFree().  Therefore, it seems that when
|> 	GlobalUnlock() returns a zero, it does not necessarily mean that
|> 	the lock count is already decremented to zero.  Is this true?
|> 

I have massively used GlobalAlloc/GlobalLock/GlobalUnlock functions. Here is
a simplified version of what I usually do:


void foo(void)
{
   HANDLE testHandle;      /* memory handle */
   LPSTR  stringPointer;   
   char   sampleString[] = "Hello World!";

   /* Allocate sufficient space to accomodate the "Hello World" string */
   /* WARNING: The GMEM_MOVEABLE and GMEM_NONDISCARD constants may contain 
      typos as I am writing code from the back of my head. */
   testHandle = GloabalAlloc(GMEM_MOVEABLE | GMEM_NONDISCARD,  
			     (strlen(sampleString) + 1) * sizeof(char));

   stringPointer = (LPSTR) GlobalLock(testHandle);
   strcpy(stringPointer, sampleString);
   GlobalUnlock(testHandle);
   
} /* foo */

I have encountered no problemes with the preceding memory management scheme. I 
have used to it create multi-MB sized linked lists.

I recommend that your friend uses the malloc/free fuctions at the early stage
of the developement cycle in order to make sure that the logic of his code 
is correct. Only then should he switch to global memory allocation functions.

Hope that helps,

GULCU Ceki
gc@lbdsun6.epfl.ch

ps: Allow me mention that OS/2 lets you simply use malloc() and free() to 
    access upto 512 MB of memory. Also, as Windows and PM are very similar
    from the GUI programmers view, maybe your friend should try OS/2.
    Personally, I rather program for OS/2 but my boss does not see it the
    same way... <-- EOW  (End of whining)
    
Newsgroups: comp.os.ms-windows.programmer.misc
From: jagrant@emr1.emr.ca (John Grant)
Subject: can I do mouse function 11 (delta x,y) from Windows 3.1?
Organization: Energy, Mines, and Resources, Ottawa
Date: Wed, 16 Sep 1992 04:30:21 GMT

I want to move a rectangle around on a 'virtual' screen (NO size limit)
with both arrow keys & mouse.  I use the following:
	ShowCursor(FALSE);
	ClipCursor(NULL);
	SetCapture(hwnd);
	hdc=CreateDC("display",NULL,NULL,NULL);
& I draw the rectangle myself in XOR mode.  The cursor keys generate
(dx,dy) values of +1 or -1, depending on key. The rectangle is drawn
at (x+=dx,y+=dy) whether visible or not: let GDI clip it!  The keyboard 
works fine, but the mouse doesn't:  WM_MOUSEMOVE will only return (x,y) 
values of (0-639,0-479) therefore confining the rectangle to the screen 
boundaries.  Also the rectangle position is dependent on which part
(centre, corner) is 'tied' to the mouse (x,y).

I did all of this quite easily in my DOS apps, using mousefunc 11 which
returns DELTA (x,y) instead of using mousefunc 3 which returns POSITION
(x,y).  In that sense, it worked exactly like the keyboard, providing
me with amount & direction of motion, which is all I really need.

Does Windows use mousefunc 3 (i.e. to report WM_MOUSEMOVE)?  Is there
a formal way to access mousefunc 11 via Windows?  Can I use
int86(0x33,...) to do it myself (it doesn't seem to work: returns 0
every time) & if so, should I use 'int86x' (I don't understand
SEGREGS)?  If I do use 'int86', am I talking to the MOUSE.SYS in my
CONFIG.SYS or the one that Windows starts up?  Are they the same?

Why would I want the rectangle to move on a 'virtual' screen (if you
can't see it, how can you select it)?  I want it to work like the
zoom/pan rectangle on a Tektronix 41XX graphics terminal (does that
mean anything to anyone?).  The idea is to allow zoom/pan on a picture
without actually having to SEE the area being selected. This means
you don't have start over with the unzoomed overview, just so you
can zoom in again on a section immediately adjacent to the current zoom
view.  Trust me, it's intuitive.
From: steveo@mel.dbce.csiro.au (Stephen Oakes)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Hot New Windows Programming Books, Free Passes
Date: 10 Sep 92 22:38:50 GMT
Organization: CSIRO, Div. Building Constr. and Eng'ing, Melb., Australia

In article <BuD5sz.9EE@world.std.com> quanbook@world.std.com (Quantum Books) writes:
>Quantum Books will be first in the country to have ...

Which country is that then?

> { Ad deleted }

Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.misc,comp.os.ms-windows.programmer.tools,comp.os.ms-windows.setup
From: gregde@microsoft.com (Greg Demichillie)
Subject: Re: What's the best setup for compiling in a DOS window?
Date: 14 Sep 92 16:58:56 GMT
Organization: Microsoft Corporation

In article <1992Sep11.145258.12566@Warren.MENTORG.COM> stu@Warren.MENTORG.COM (Stu Brown) writes:
>I have MS C/C++ 7.0 and am trying to set up my Windows DOS shell window
>to get good compile time. I have tried to set the PIF for exclusive
>and the time slice to 10000, but when I compare compiling in DOS
>Vs. compiling in a Windows DOS shell (windowed or full screen),
>the Windows compile takes 2X longer no matter what I do.
>
>Any solutions to get Windows to give my process exclusive CPU?

A few ideas...

The "Exclusive" bit is only effective when running in full-screen
mode.  Also running in a full-screen virtual machine (VM) is faster
than running in a windowed VM.  So for the best performance, set
the Exclusive bit and compile in a full-screen session.  

You should also check the size of your SmartDrive cache.  It may be
set to a smaller size when running Windows than when running DOS.  This
can have a *LARGE* effect on compilation speed.  I used to run with
a RAM disk and SmartDrive but I found that I got faster compiles by
dropping the RAM disk and increasing the cache by the same amount. 

-Greg

-- 
Greg DeMichillie          
gregde@microsoft.com      -- All opinions are mine, not Microsoft's -- 
Newsgroups: comp.os.ms-windows.programmer.misc,alt.hypertext