Computer Hope

Software => Computer software => Topic started by: JimMorcombe on November 29, 2004, 10:54:35 PM

Title: Problem with Winfax PRO DDE
Post by: JimMorcombe on November 29, 2004, 10:54:35 PM
I wrote a very simple Visual Basic program on Windows 95 which calls Symantec's Winfax PRO using DDE Pokes.  I copied the code straight out of a Symantec example and it worked.

I have upgraded to Windows XP and the program no longer works.  It crashes with :

Run-time error '285':

Foreign application won't perform DDE method or operation.


Where do I go to get help on this?

Here is a snippet of my code.  


Private Sub Command1_Click()
FAXNumber$ = "9242 3333"
SendTime$ = "06:00:00"
SendDate$ = "11/12/03"
FAXName$ = "Clare"
Company$ = "Ampac"
Subject$ = "Joy of Faxing"
Keyword$ = "fax, joy"
BillingCode$ = ""
Mode$ = "Fax"
CoverPage$ = "C:\Program Files\WinFax\COVER\TEST.CVP"
CoverText$ = "Do enjoy this seasonal message."
Attachment$ = "C:\jim\test.doc"

MsgBox ("Starting")

'This is the start of the DDE to WinFax.

'Create the link and disable
'automatic reception in WinFax.

Label1.LinkTopic = "FAXMNG32|CONTROL"
Label1.LinkMode = 2
Label1.LinkTimeout = -1
Label1.LinkExecute "GoIdle"
Label1.LinkMode = 0
MsgBox ("Automatic reception has been disabled")

'Create a new link with the TRANSMIT topic.

Label1.LinkTopic = "FAXMNG32|TRANSMIT"
Label1.LinkMode = 2
Label1.LinkTimeout = -1
Label1.LinkItem = "sendfax"

'Start DDEPokes to control WinFax.

recip$ = "recipient(" & Chr$(34) & FAXNumber$ & Chr$(34) & "," & Chr$(34) & SendTime$ & Chr$(34) & "," & Chr$(34) & SendDate$ & Chr$(34) & ","
recip$ = recip$ & Chr$(34) & FAXName$ & Chr$(34) & "," & Chr$(34) & Company$ & Chr$(34) & "," & Chr$(34) & Subject$ & Chr$(34) & ","
recip$ = recip$ & Chr$(34) & Keyword$ & Chr$(34) & "," & Chr$(34) & BillingCode$ & Chr$(34) & "," & Chr$(34) & Mode$ & Chr$(34) & ")"
Label1.Caption = recip$
Label1.LinkPoke

MsgBox ("The first LinkPoke has been done!")

'setcoverpage
Label1.Caption = "setcoverpage(" & Chr$(34) & CoverPage$ & Chr$(34) & ")"
Label1.LinkPoke
MsgBox ("The setcoverpage LinkPoke has been done!")




The message ("The first LinkPoke has been done!") is displayed, and then the program crashes on the next LinkPoke.

Any ideas?



Title: Re: Problem with Winfax PRO DDE
Post by: merlin_2 on November 30, 2004, 02:07:24 AM
could be a conflict between your progam and this one>http://www.microsoft.com/windowsxp/using/setup/learnmore/crawford_02october21.mspx

info>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdbug/html/sdbug_9.asp