Re: DDE by Matthew

new topic     » goto parent     » topic index » view thread      » older message » newer message

> -----Original Message-----
> From: Ck Lester

> I started the client first, then connected (there's no
> confirmation that
> connection was made!), then sent some text and it worked!

Yeah, I didn't put a whole lot into the demo.  It was more a proof of
concept than anything.  To confirm the connection, you can trap the
XTYP_CONNECT message on the 'server' end (it already does that to tell DDEML
to accept the connection) in the callback, and look for XTYP_CONFIRM_CONNECT
on the 'client' callback (I think that's the correct message).

> I'm going to consider moving our forms to a EUPHORIA program
> and using MS
> Word as a print engine... I've been able to run Word from
> Filemaker using
> DDE commands, so I figure I can the same with this.

You should be able to.  You'll probably have to use XTYP_EXECUTE
transactions.  All the constants you'll need should be in there.  I think I
got them all from the ddeml.h header file, although there are a lot of other
functions that I didn't include.

> Just out of curiosity, is there a different route to using
> Word as a print
> engine other than DDE (for instance, OLE)...?

OLE is probably the preferred method (that's what the other Office app's use
to talk to each other--OLE Automation).  I've looked into wrapping OLE stuff
before (mainly for drag and drop), but everything I was able to find seems
to be C++ based (which makes sense: *Object* Linking and Embedding), which
would indicate the need for an intermediary DLL to wrap the OOP stuff.  I
wasn't really able to make heads or tails of the VC++ docs regarding OLE.

Matt Lewis

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu