I just had one heck of a time trying to get the DDE working between
Delphi and WinFax Pro.	There is precious little documentation and
what little there is was written for Visual Basic.	Since I had such
a hard time, I thought other of you might be in the same boat so I
decided to pass along enough of an example to at least get you
started.

What you need:

	WinFax Pro (I used Version 4.0) up and running on your system.
	In order to establish a DDE connection between WinFax and Delphi,
	WinFax MUST be running before you start the demo.
	I could have put code in to check to see if WinFax was running and
	if it wasn't, start it up, but that's another topic.  For this demo
	you need to have it running.

	You need Delphi 1.0 to compile the files.  I could have sent the
	EXE but then, if you don't have Delphi, why would you downlaod this
	file?  Except for the string handling this should work in 2.0 as well.

I've commented the code enough so that you should be able to see what's
going on.  Basically, the flow of the DDE goes in this outline:

1. Establish the DDE conversation between the Server (WinFax) and the
	 client (Delphi).  You set a couple of parameters and then call either
	 SetLink or OpenLink depending on your connection type.
2. Once the connection is established, you send some information to the
	 Server (WinFax) via the DataPoke method.  WinFax only accepts commands
	 that are related to the Sendfax item.	Modifiers to the Sendfax command
	 include Recipient, SetCoverPage, FillCoverPage, Attach, Resolution and
	 ShowSendScreen.	I've included examples for Recipient, FillCoverPage and
	 ShowSendScreen but the others work identically so there isn't any
	 additional mystery.
3. In addition to the DataPoke method, you can also use the ExecuteMacro
	 method to execute a 'command' that changes WinFax's state.  I've
	 included a sample of one of these called sendfaxui, which sends the
	 fax without doing a Print (for applications that have no Print method).
	 All of the commands work the same way as the example.
4. Another DDE capability is a query using the RequestData method.	I
	 provide a sample of this to query the current status of WinFax.

If you have any questions about DDEing with WinFax and Delphi, you can eMail
me at:
							 Dennis Courtney
							 DENNISC@IADB.ORG
							 CIS 76357,3314

