HDTenEightyP/NetNews huggingface dataset:
From: David Long <davidl@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: FP error message?                                                              
Date: 21 Nov 92 07:10:45 GMT
X-MSMail-Message-ID:  702A8686
X-MSMail-Conversation-ID:  702A8686
X-MSMail-WiseRemark:  Microsoft Mail -- 3.0.729
To: netnews

You need to call "cinit" in the DLL.  Using C7, you'll need to link 
with *ITS* startup code rather than the normal LIBENTRY startup code.  
In the C7 DETAILS.TXT file:

"Because the startup functionality previously provided by LIBENTRY.OBJ 
(and LIBENTRY.ASM) is now provided by the standard run-time libraries 
that support DLLs for Windows, do not link with LIBENTRY.OBJ." then 
blah blah in a section called "Library Initialization Code in Windows DLLs".

Hope this helps,
David Long
Microsoft Developer Network
(I don't normally read this forum)
From: tmorgan@andromeda.rutgers.edu (Talib K. Morgan)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: HELP with user draw buttons
Summary: help with user draw buttons
Date: 16 Nov 92 21:15:19 GMT
Organization: Rutgers Univ., New Brunswick, N.J.

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
From: axs9017@hertz.njit.edu (Alexander Shinkar)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Text Search
Summary: Looking for a text search using an index
Date: 17 Nov 92 19:27:12 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

I remember a few months ago, some one was looking for a text search
program.  This program should work similar to the Lotus Magelin
program, where it would create a compressed file of words for
documents on the system...
Im wondering if any one has found such a system...(library)
I am hoping to include this in a small application that I am
developing.
I would appreciate ANY leads.. or suggestions
Thanks in advance
Alex.

Please email direct. If anyone is interested, I will upload a summary
of what I find.
Thanks

===============================================
axs9017@hertz.njit.edu
From: kbrooks@ut-emx.uucp (kevin brooks)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Displaying metafile
Keywords: MS Windows Metafile Client Window
Date: 23 Nov 92 17:44:49 GMT
Organization: The University of Texas at Austin, Austin, Texas

I need some help with regard to working with metafiles.  I am trying to
output a report that includes fonts and graphics to 3 devices: client window,
default printer, and disk file.  To create the report, I am first writing
the information to a metafile I get from the function CreateMetaFile().

The problem that I am encountering is when I try to display it on the
OWL client window.  To display it, I am overloading the TWindow::Paint()
member function.  In this function, I am calling the function PlayMetaFile().
This works fine for shorter metafiles.  But for very long metafiles, when
I have to scroll the client window, it takes a very very long time to 
execute the TWindow::Paint() member function.

Is there any way to control the play back of the metafile so that it only
paints the portion that would be visible within the client window?

thanks in advance,

kevin brooks
kbrooks@emx.utexas.edu


Newsgroups: comp.os.ms-windows.programmer.misc
From: mehran@monet.uwaterloo.ca (Mehran Farimani)
Subject: Re: who reads UNDOCUMENTED WINDOWS
Keywords: Undocumented windows
Organization: University of Waterloo
Date: Mon, 23 Nov 1992 12:20:18 GMT

In article <1992Nov21.180313.10195@mnemosyne.cs.du.edu> ebergman@nyx.cs.du.edu (Eric Bergman-Terrell) writes:
>
>The functions are so powerful, they can cause your application to stop
>working when the next version of Windows is developed!
>

For many people that is not a concern! Even for those who it is a concern, there
are many undocumented functions that are either likely to become documented
(like some that did from 3.0 to 3.1) or will persist for a while at the least.

Undocumented Windows is a great book for anyone who wants to know what windows
is really about.

--Mehran

P.S. I am not associated with the authors and/or publisher of 
     Undocumented Windows.
From: jan@nasobem.stgt.sub.org (Jan Schiefer)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: How does Windows draw the "ghost frame"?
Date: Sat, 21 Nov 92 0:40:33 GMT
Distribution: world

ngorelic@speclab.cr.usgs.gov.cr.usgs.gov (Noel S. Gorelick) wrote:
> Jan Schiefer (jan@nasobem.stgt.sub.org) wrote:
> > 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.

I did this, too, but it was a bit slow sometimes (I just drew the rectangle
inside WM_MOUSEMOVE processing, as I captured the mouse anyway).

In the meantime I found a solution, which works better for me: now I use
DrawFocusRect(HDC, LPRECT), which seems quite a bit faster. It draws just
a thin outline, but is in XOR mode automatically. As I just have to move
a child window, the thin outline is ok for me.

Thanks to all who answered!

Jan

--
             Jan Schiefer, DL5UE, jan@nasobem.stgt.sub.org
                 "Oracle et laboracle!"   - Fritz Hohl
From: gt2438b@prism.gatech.EDU (ShadowBoxer)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Visual Basic questions
Summary: Answer question 3.
Date: 18 Nov 92 01:40:54 GMT
Organization: Georgia Tech, The real University of Georgia

In article <92322.092615SASTPH@vm.sas.com>, SASTPH@vm.sas.com writes:
> Well, I thought I'd try converting a small Windows app written in C to
> Visual Basic 1.0, but it appears I can't.  Here's some things I that
> apparently can't be done in VB, or that I can't find in the doc:

> 2.  Send messages between forms.  My app uses three windows.   Clicking
>     on a control in the main window causes immediate changes to the
>     other two windows.

One way is to make a control, change the visible property to false, and use it's event procedures to transmit the message.

For example, a hidden textbox can be used.  Then the Text1_Change event sub
 can be used to interpet the message.  (The last thing it should to is
 empty itself.)

> 3.  Detect when the form is iconized. My app draws on its icon, which
>     I understand can be done in Visual Basic, but when?  In C I just
>     call IsIconic() whenever I get a WM_PAINT message and paint the
>     icon when it (IsIconic) returns TRUE.  While I'm aware that I
>     can call IsIconic from VB, surely I don't need to for such a
>     simple thing?

The property Form.WindowState gives this information.  (0 = Normal,
 1 = Minimized {iconic}, 2 = Maximized.)

Jon.

-- 
SAGER,JON EDWARD (ShadowBoxer)     |  Happy, Happy, Joy, Joy, Happy, Happy,
Internet: gt2438b@prism.gatech.edu |    Joy, Joy, Happy, Happy, Joy, Joy, Joy! 
Georgia Tech- The real University  | 
	      of Georgia           |           -Ren and Stimpy 
Newsgroups: comp.os.ms-windows.programmer.misc
From: moss@soldev.TTI.COM (Les Moss)
Subject: Re: Serial Communications and Windows ?
Reply-To: moss@soldev.TTI.COM (Les Moss)
Organization: Citicorp/TTI
Date: Tue, 24 Nov 1992 01:51:12 GMT

You don't need the interrupt srvicing and buffering stuff from 
your DOS program. The Windows Comm API takes care of all this.
Just process the data using ReadComm when it is available (based
on a WM_TIMER, or the new 3.1 notification message.)

Les Moss                      moss@tti.com
Citicorp TTI
3100 Ocean Park Blvd.   (310) 450-9111, ext. 2982
Santa Monica, CA  90405
Newsgroups: comp.os.ms-windows.programmer.misc
From: wongl@nuge115.its.rpi.edu (Lance)
Subject: combo-listbox help needed
Reply-To: wongl@rpi.edu
Organization: Rensselaer Polytechnic Institute, Troy, NY.
Date: Sat, 21 Nov 1992 19:12:06 GMT

hello, how do i get a vertical scroll bar in my dropdown list box?
I thought that was the default becuase there is a child window modifier
that disables this scroll bar if there are too many items in the listbox.

thanks!
Keywords: 

Newsgroups: comp.os.ms-windows.programmer.misc
From: tflin@csie.nctu.edu.tw (Tsung-Fan Lin.)
Subject: who reads UNDOCUMENTED WINDOWS
Keywords: Undocumented windows
Organization: National Chiao-Tung Univ.
Date: Sat, 21 Nov 1992 06:40:47 GMT

Hi:
  In these days, BYTES and PC magazine both talked about a new book,called "
Undocumented windows". There are some companies to criticize Microsoft to 
hide these calls and let their applications have more chances to win 
markets. Maybe it is unfair. But I want to know who to read this book. I 
there is , can you tell me about the powers of these calls and functions.
Best regards

						Horace
Newsgroups: comp.os.ms-windows.programmer.misc
From: ncc1701@madoka.its.rpi.edu (Mark O. Chadwick)
Subject: Visual Basic Question: How to Kill "foreign" task
Reply-To: ncc1701@acm.rpi.edu
Date: Mon, 16 Nov 1992 18:59:27 GMT

Hi,

I'm trying to write a program that does the following:

Invokes an external program, not related to the one I'm writing
(For example, we'll assume I'm trying to run sol.exe)

When certain conditions exist, it terminates that program.

The way I do it now is to AppActivate "Solitaire"
then SendKeys "%{F4}" (Alt-F4) to kill it.

This works great if the program is still running, but
if the user has exited solitaire before the conditions are
met, some OTHER program gets terminated (sometimes
PGM MGR itself!)

Is there some way to use the number VBasic returns
when you Shell the program?
(i.e. something=Shell("C:\win\sol.exe",1) ???

HELP!

(Please email-I don't do a lot of windows pgming, and
don't have time to peruse this group a lot)  THANKS!

-- 
---
Mark "Emerson" Chadwick -- ncc1701@acm.rpi.edu    chadwickmo@space.laafb.af.mil
Newsgroups: comp.os.ms-windows.programmer.misc
From: ezachris@iroquois.ucs.indiana.edu
Subject: 256-color dialog bitmaps
Keywords: bitmaps 256 colors dialogs
Organization: Indiana University
Date: Fri, 20 Nov 1992 20:11:09 GMT


Hi!

I'm trying to display 256-color bitmaps in a dialog using TC++ and the  
Resource Workshop. Some kind souls on this group told me to create a  
bitmap control in the dialog and give it the Control ID (of the bitmap)  
minus 1000. It works, except the graphics is only displayed using 16  
colors. 

I've set the 2-16-256-color switch correctly. The help system tells me  
that my program must provide support for 256 colors. Any ideas?

Thanks in advance!!!


Espen Zachrisen
Indiana Universiy
ezachris@arapahoe.ucs.indiana.edu
From: David Long <davidl@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: VxD in 'C' ?                                                                   
Date: 21 Nov 92 06:43:52 GMT
X-MSMail-Message-ID:  623183FC
X-MSMail-Conversation-ID:  623183FC
X-MSMail-WiseRemark:  Microsoft Mail -- 3.0.729
To: netnews

Over on CompuServe's Microsoft "DDK/WIN386 Peer Help" forum, I saw a 
posting by Vladimir G Shmunis (CIS ID 70303,3720) saying that he 
recently managed to do this using Metaware High-C version 3.02.  He 
said that MetaWare told him that they don't know of anybody else doing 
this.  One complication was that they couldn't link to MASM5 output 
without modifying the segments put out by High-C.

David Long
Microsoft Developer Network
(I don't normally visit this forum)
Newsgroups: comp.os.ms-windows.programmer.misc
From: paul@iti.gov.sg (Paul Phang (AIM))
Subject: Transparent Windows in MFC
Keywords: MFC, Microsoft Foundation Classes, transparent window
Organization: National Computer Board, Singapore
Date: Fri, 20 Nov 1992 14:59:37 GMT

Hi !

I've tried to create transparent windows (ie those windows which you can
place ontop of other windows without obscuring it or its contents ) using MFC
without much success.  

What I tried was to use CWnd::CreateEx().  However, I notice that 
the documentation in MFC does not mention that you can use
WS_TRANSPARENT_EX as an extended window style, although this function
is supposed to be equivalent to ::CreateWindowEx().  
I also created a class to use the null brush and use this class 
in the CreateEx() as an argument.  The window is created but it does
not appear to be transparent.

Also, if a program gives an address like 0003:1234 as the place
where an error occurs, how does one know which statement does it
translate to in the MFC source code. 
 

Can some kind soul please advise?   Thanks in advance.

-- 
                             Paul Kah Heng Phang
 Advanced User Interface Group, Computer and Communications Laboratory
 Information Technology Institute, National Computer Board, Singapore
     Email: paul@iti.gov.sg   Phone: (65) 7720908 Fax: (65) 7773043
From: David Long <davidl@microsoft.com>
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Windows DLLs                                                                   
Date: 21 Nov 92 07:13:55 GMT
X-MSMail-Message-ID:  74501A56
X-MSMail-Conversation-ID:  74501A56
X-MSMail-WiseRemark:  Microsoft Mail -- 3.0.729
To: netnews

Why would you want to do this?  Does your DLL carry out some passive 
activity based on interrupts or some other asynchronous event?

One way to achieve this effect is to list your DLL on the LOAD= line in 
WIN.INI so that it gets loaded as Windows boots and stays there until 
Windows shuts down.  Another way is for your DLL to be loaded by some 
application, then to immediately do a LoadLibrary() on itself to 
increase its usage count from 1 to 2.  Then when the app that used it 
terminates, Windows decrements your DLL's usage count from 2 to 1 and 
leaves it in memory.

David Long
Microsoft Developer Network
From: cm@cmm.ovum.ka.sub.org (Christoph Mueller)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Books on OLE?
Keywords: upgrade on books
Date: Mon, 16 Nov 92 22:14:21 CET
Distribution: world
Organization: Christoph's PC, Karlsruhe, Germany

daveb@usho91.hou281.chevron.com (D.F.Butcher) writes:

> I was about to order Petzold 3.1 by mail since I haven't been able to
> find it in a bookstore.  If it doesn't include OLE or D&D, and I already
> have the 3.0 version, is it worth the money?

I will not get the new Petzold anymore.  What for when you have the 3.0
version?  Too much money for too little new information.  I preferred
spending my money on either advanced books or at least on the docs of Win 3.1

>
> By the way, WHY DON'T publishers offer upgrade prices on books like
> these, like the software companies do?  Do we need a national boycott to
> avoid paying full price for one or two new chapters?

That sounds like a very interesting idea.  I kind of do that already, I guess
(see above).  I just never thought abouth confronting the publishers with the
reason why.  Is some publisher listening here?  If you guys want owners of
the old books to buy the new ones, think about offering those books at prices
that reflect the level of information counting from the old one, not from 
zero.
Just following up on D.F.'s thoughts...


---Christoph, Germany    ---   cm@cmm.ovum.ka.sub.org
-------------------------------------------------------------------------
Dysklaemours?  What's that?  How do you spell that?  Do I need that?
I  *AM*  the  SYSTEM,  the  EMPLOYER,  and  the  ORGANIZATION  !!
Newsgroups: comp.os.ms-windows.programmer.misc
From: clintp@world.std.com (Clinton a Pierce)
Subject: Quick Startup to Win Programming
Followup-To: poster
Summary: Want to learn a bit about Windows programming, $0 Investment
Keywords: WINDOWS
Organization: VERSYSS Incorporated, Westwood MA
Date: Thu, 19 Nov 1992 18:41:54 GMT

HI there!  I'm a fairly experienced C programmer and I'd like to learn
about Windows programming using C--but with little or no $ investment.
(Time, I've got, money--none.)  
 
I understand that there is a Library necessary to link with to run
Windows applications, is a PD version of this library available?
 
Or better yet, if there's a FAQ online somewhere that answers all of my
questions, could someone be so kind as to give me the FTP location?
Please reply in E-Mail, as I normally do not read this newsgroup.  (It's 
usually waaaaay over my head!)
 
Thanks in Advance!

-------------------------------------------------------------------------------
  Clinton A. Pierce  | "Get your cotton pickin hands of my gin!"
clintp@world.std.com | 			-- Eli Whitney
-------------------------------------------------------------------------------
From: recker1763@iscsvax.uni.edu
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: VB Scale & Bitmaps
Date: 20 Nov 92 11:50:01 -0600
Organization: University of Northern Iowa


I have a form that has the scale set to ( 0, 0 ) - ( 280, 240 ).
After drawing a series of lines on the screen, I want to draw a bitmap
directly over the lines ( the lines are basically an outline of the bitmap).
The problem is the different resolution screens position the bitmap
differently.
How can I make the bitmap stay in the exact same place and stay the exact
same size as the lines on all screens?

HELP!!!! please

recker1763@iscsvax.uni.edu
From: kim@Software.Mitel.COM (Kim Letkeman)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: How do you scroll (part of a) window??
Date: 19 Nov 92 14:19:10 GMT
Organization: MITEL Public Switching, Kanata, Ontario, Canada
In-reply-to: rlswent@leland.Stanford.EDU's message of 18 Nov 92 20:47:42 GMT

In article <1992Nov18.204742.9936@leland.Stanford.EDU> rlswent@leland.Stanford.EDU (Richard Swent) writes:

| I can't figure out how to implement scrolling in a sensible
| manner. I want to have a window that has some header information
| and some buttons at the top, then a long list below that can
| be scrolled via a scroll bar. The part of the window that scrolls
| can be a child window if that is easier. 
| 
| I've looked at the scrolling functions (ScrollWindow, ScrollDC) and
| can't make them work right. If I use ScrollWindow it scrolls the
| bitmap but as soon as my Paint procedure is called, it paints stuff
| just the way it had been. I tried ScrollDC and it didn't do anything
| at all. The problem is really my Paint procedure which doesn't know
| anything about the scrolling. What is the "right" way to do this?

This is one of the areas that Petzold handles very well IMO. Read that
section of the book if you haven't already.
--
Kim Letkeman	kim@Software.Mitel.COM
From: rla@media03.UUCP (Raymond van der Laan)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: DLL's and PeekMessage
Keywords: waiting for message in DLL
Date: 20 Nov 92 10:36:13 GMT
Organization: Mediasystemen, Netherlands


I have a question regarding DLL's. What is the best way in a
DLL to give back control to Windows by using PeekMessage/GetMessage?

Is it ok to just do this:

while not ready do
  PeekMessage
  if it's ours
    do something
  else
    TranslateMessage
    DispatchMessage
  end
end

or are there special considerations? I looked for examples, but I couldn't
find one.
Thanks in advance.
-- 
Raymond van der Laan           Email: sun4nl!media01!rla
Mediasystemen BV               Tel. : +31 23-319075            
Haarlem                        Fax  : +31 23-315210
The Netherlands                                   
                                    'There is no masterplan.
                                     This is what we do now.'
                                            - Stuart Adamson
From: cs92njc@brunel.ac.uk (Nicholas J Clayton)
Newsgroups: comp.os.ms-windows.programmer.misc
Subject: Re: Visual Basic questions
Date: 18 Nov 92 11:24:08 GMT
Organization: Brunel University, West London, UK

In article <92322.092615SASTPH@vm.sas.com> SASTPH@vm.sas.com writes:
>1.  Append an item to the system menu and get notified when it's
>    selected.  My app doesn't need a full-scale menu bar, so I just
>    append my "About FOO..." menu item to the system menu.

Have VB call the Windows procedure othat does this. I don't have the 
code to hand, but if you look in the IconDraw sample program that comes
with VB, and some of the dialog boxes (sic) that are with it, they remove
all but the 'move' and 'close' options from the system menu. It can work
in reverse.

>2.  Send messages between forms.  My app uses three windows.   Clicking
>    on a control in the main window causes immediate changes to the
>    other two windows.

To alter controls on other forms just preface the control name with the form name,
form1.OKButton for example will refer to the OKButton on form1. You can use global
or shared variables to communicate data between the forms.

>3.  Detect when the form is iconized. My app draws on its icon, which
>    I understand can be done in Visual Basic, but when?  In C I just
>    call IsIconic() whenever I get a WM_PAINT message and paint the
>    icon when it (IsIconic) returns TRUE.  While I'm aware that I
>    can call IsIconic from VB, surely I don't need to for such a
>    simple thing?

I forget whether you can paint the icon from within VB. I've never tried, but I
don't see any reason why you can't. Anyway, I'm digressing. The file
"constant.txt" defines 3 values, MINIMIZED, MAXIMIZED and NORMAL which you can use
in conjunction with the WindowState property.

if Form1.WindowState = MINIMIZED Then...

Rgds, Nik

PS: Not having VB to hand (and not using it in 2 months) means that the example
above may be a touch off. I'm fairly certain the property is called WindowState,
if not then its something similar and fairly easy to recognise.
Newsgroups: comp.os.ms-windows.programmer.misc,comp.os.ms-windows.programmer.tools,comp.windows.ms.programmer
From: schao@monet.uwaterloo.ca (Stewart Chao)
Subject: Help with SAVEBITS class style
Keywords: SAVEBITS class style
Organization: University of Waterloo
Date: Tue, 24 Nov 1992 04:49:27 GMT

Has anyone used the CS_SAVEBITS class style?  When I create a class with this
attribute, the Windows does not save the overwritten part of the screen, as it
should.  When my window is moved, the window under my window is sent a WM_PAINT
message.  I am trying to mimic the POPUPMENU class which uses CS_SAVEBITS.

I am using BC++ 3.1 and WinSight to track the window messages.  Can anyone
help me?  Thank you.

(PS.  The POPUPMENU class, any of the windows of a popmenu, saves whatever
      it covers to a bitmap and when the windows is destroyed the bitmap is
      used to restored the region obscured, instead of giving the covered
      windows a WM_PAINT message.  CS_SAVEBITS supposely tells windows to 
      treat my windows in this manner, but does not (according to WinSight)).
Newsgroups: comp.os.ms-windows.programmer.misc
From: ebergman@nyx.cs.du.edu (Eric Bergman-Terrell)
Subject: Re: who reads UNDOCUMENTED WINDOWS
X-Disclaimer: Nyx is a public access Unix system run by the University
	of Denver for the Denver community.  The University has neither
	control over nor responsibility for the opinions of users.
Keywords: Undocumented windows
Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
Date: Sat, 21 Nov 92 18:03:13 GMT

In article <tflin.6.0@csie.nctu.edu.tw> tflin@csie.nctu.edu.tw (Tsung-Fan Lin.) writes:
>Hi:
>  In these days, BYTES and PC magazine both talked about a new book,called "
>Undocumented windows". There are some companies to criticize Microsoft to 
>hide these calls and let their applications have more chances to win 
>markets. Maybe it is unfair. But I want to know who to read this book. I 
>there is , can you tell me about the powers of these calls and functions.

The functions are so powerful, they can cause your application to stop
working when the next version of Windows is developed!

Terrell


>Best regards
>
>						Horace