Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!stat!sun13!prism!gt3070b From: gt3070b@prism.gatech.EDU (Jeff Watkins) Newsgroups: comp.windows.ms Subject: Word for Windows Message-ID: <12717@hydra.gatech.EDU> Date: 18 Aug 90 01:02:58 GMT References: <12716@hydra.gatech.EDU> Organization: Georgia Institute of Technology Lines: 60 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..."