[comp.windows.ms] Word for windows

gt3070b@prism.gatech.EDU (Jeff Watkins) (08/18/90)

Well,
I am trying to write a DDE application that will work with Word 4 Windows.
That is on the surface a simple thing.  However, when my program receives the
WM_DDE_INITIATE, it PostMessage's a WM_DDE_ACK to the client specified
by wParam.
THIS IS NOT A VALID WINDOW!  I've run a spy program that lists all the windows,
with their handles and the window that I receive as the client (ie the app. that
is sending the WM_DDE_INITIATE) is not valid.

To explain I will give a code fragment...

long FAR PASCAL WindProc( HWND hWnd, unsigned Mesg, WORD wParam, LONG lParam )
{	switch ( Mesg )
	{ 
	.
	.
	.
		case WM_DDE_INITIATE:
			PostMessage( wParam, WM_DDE_ACK, hWnd, lParam );
			break;
	.
	.
	.
	}
	return (0L);
}

Yes, i know that this acknowledges any DDE initiate.  It is just a sample.
For DDE to work, the client must post its Handle in the wParam field so that
the server may respond.  The Handle that I am getting is not valid. 
It is not Word. It is not ANY window belonging to ANY application. 
And it is NOT constant.  If I leave the same copy of Word running, the Handle 
changes randomly.  Not frequently but randomly.

Well, enough of the problem.  Does anyone have any code or experience that they
could offer me for assistance?!?!  It is Friday evening and MS is probably 
closed on weekends, so I can't ask them.  I am not registered on online support
yet.  AND MY BOSS IS EXPECTING A DEMO BY MONDAY. This is all based on my thought
that Word would behave properly.  HA HA HA HA HA Ha Ha Ha ha ha ha (fading
maniacle laughter)....

Well, my system setup is as follows:
	80386/20
	8Mb Ram
	1 Seagate 65Mb RLL harddisk (damn piece of trash, I'm returning it soon)
	1 Bus MS Mouse
	MS DOS 4.00
	No TSR's
	SHARE.exe
	HIMEM.sys

thanks for the help (in advance)...

ciao
jeff

-- 
Jeff Watkins                       gt3070b@prism.gatech.edu
Convergent Media Systems           (404) 315-0105 voice  (404) 315-0231 data
"I speak for no-one. AND NO-ONE SPEAKS FOR ME... oh, yes, _dear_...I gotta go..."

stephenc@cunixf.cc.columbia.edu (Stephen Chung) (10/10/90)

Hi, I am running Word for Windows, and whenever I am typing in a
printer font, the screen output does not match the printout (I
mean even the preview show much shorter lines that fill up to
only half the page).  If I pick a larger pitch, the lines get
even shorter (it will print fine on the printer though) while
the font size on the screen stays the same.  What is WYSIWYG 
then?  Any pointers?

- Stephen

YTHRROUS@MTUS5.BITNET (Roger Rouse) (10/20/90)

The problem is that you have printer fonts available for what you want,
but not the windows screen fonts to match them.  Windows will try to
match your requested font best it can, but that's likely to be off a bit.

wk0x+@andrew.cmu.edu (William Stephen Kish) (10/31/90)

     I have encountered some strange behavior from Microsoft word for Windows.

I've been trying to insert a .pcx file into a document and print it.  I get
the .pcx file inserted alright, but when I print the document, the picture
is missing.  It appears correctly on the print preview, and it gives no error
messages.  When I try the same thing with a small picture it works fine, so I
guess the picture I'm trying to print is too big.
     The really weird part occurs when I exit Word and check free memory
(under the program manager ABOUT).  It tells me I have only 9 Megs free, when
previously I had over 15 Megs free (4 Megs Ram + 12 Meg swap file).  I have no
other apps running.  What happend to the other 6 or so Megs??
   Is there some type of memory unallocation problem with windows?

Just wondering if anyone could shed some light...

Thanks,
Bill Kish