Creating automated help system

Subject: Creating automated help system
From: "D.M." <dam -at- esrd -dot- com>
To: "TECHWR-L" <techwr-l -at- lists -dot- raycomm -dot- com>
Date: Wed, 2 Jul 2003 16:14:00 -0500


Greetings,

I've used FrameMaker to insert a named destination with the
name "error" in a .pdf file. Now I would like to navigate to that
location programmatically using DDE and Acrobat Reader, but
DdeClientTransaction fails with DMLERR_NOTPROCESSED.
Following is the code:

const char *DDE_CMD_STRING = "[FileOpenEx(\"D:\\Temp\\TestFile.pdf\")]";
const char *DDE_CMD_STRING1 =
"[DocGoToNameDest(\"D:\\Temp\\TestFile.pdf\",\"M8.newlink.error\")]";
char ddeCmdBuf[64];
char ddeCmdBuf1[100];

strcpy (ddeCmdBuf, DDE_CMD_STRING);
strcpy (ddeCmdBuf1, DDE_CMD_STRING1);

// Omitted DDE initialization and other setup
DdeClientTransaction ((unsigned char *)ddeCmdBuf, (DWORD)strlen(ddeCmdBuf),
(HCONV)hConversation, NULL, (UINT)CF_TEXT, (UINT)XTYP_EXECUTE, (DWORD)1000,
&dwResult);
// No problem here file opens

DdeClientTransaction ((unsigned char *)ddeCmdBuf1,
(DWORD)strlen(ddeCmdBuf1), (HCONV)hConversation,NULL, (UINT)CF_TEXT,
(UINT)XTYP_EXECUTE, (DWORD)1000, &dwResult);
// This call fails

Is there something I'm missing?

Thanks,
Drew


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.490 / Virus Database: 289 - Release Date: 6/17/2003


^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ANNOUNCING ROBOHELP STUDIO
Create professional Help systems that feature interactive tutorials and
demos with all new RoboHelp Studio. More at http://www.ehelp.com/techwr-l2

Mercer University's online MS Program in Technical Communication Management:
Preparing leaders of tomorrow's technical communication organizations today.
See www.mercer.edu/mstco or write George Hayhoe at hayhoe_g -at- mercer -dot- edu -dot-

---
You are currently subscribed to techwr-l as:
archive -at- raycomm -dot- com
To unsubscribe send a blank email to leave-techwr-l-obscured -at- lists -dot- raycomm -dot- com
Send administrative questions to ejray -at- raycomm -dot- com -dot- Visit
http://www.raycomm.com/techwhirl/ for more resources and info.



Previous by Author: big trouble with .chm file/MS HTML Help Workshop
Next by Author: Re: Learning to code on the cheap
Previous by Thread: Robohelp context-sensitive help question
Next by Thread: Another annoying little Word peccadillo


What this post helpful? Share it with friends and colleagues:


Sponsored Ads