DDE Help 
Author Message
 DDE Help

Help:

I'm calling Word for Windows with DDEInitiate('winword','test.doc') and I
receive the message 'Remote data not available - load application
winword.exe anyway?'.. I then get a -1 response from DDEInitiate and my
request doesn't go through.. The same thing happens with
write,paint,excel,etc.  It doesn't seem to matter what the "topic" of the
Initiate call is - System, etc... Is there something I'm missing? Do I
need to initialize something else first?  If I choose 'yes' to the dialog
it gives me, it loads the app. but I can't communicate with it (no
channel open)...

                                        Doug Frank



Mon, 23 Dec 1996 12:42:06 GMT
 DDE Help

Quote:


>Subject: DDE Help
>Date: 6 Jul 1994 21:42:06 -0700
>Summary: Error - remote data not available
>Help:
>I'm calling Word for Windows with DDEInitiate('winword','test.doc') and I
>receive the message 'Remote data not available - load application
>winword.exe anyway?'.. I then get a -1 response from DDEInitiate and my
>request doesn't go through.. The same thing happens with
>write,paint,excel,etc.  It doesn't seem to matter what the "topic" of the
>Initiate call is - System, etc... Is there something I'm missing? Do I
>need to initialize something else first?  If I choose 'yes' to the dialog
>it gives me, it loads the app. but I can't communicate with it (no
>channel open)...
>                                        Doug Frank

From FoxPro Help:

DDEInitiate( ) returns -1 if the channel cannot be established.  If the server application isn't open,
FoxPro asks if you would like to open it.  If you choose Yes, FoxPro attempts to open the application.  
(You can use DDELastError( ) to determine why a channel cannot be established.)  
To avoid being asked whether you want to open the application, set the DDESetOption( ) SAFETY
option.  You can also use RUN with the /N option to start the application.



Mon, 23 Dec 1996 19:43:38 GMT
 DDE Help

Quote:



> >Subject: DDE Help
> >Date: 6 Jul 1994 21:42:06 -0700
> >Summary: Error - remote data not available
> >Help:
> DDEInitiate( ) returns -1 if the channel cannot be established.  If the server application isn't open,
> FoxPro asks if you would like to open it.  If you choose Yes, FoxPro attempts to open the application.  
> (You can use DDELastError( ) to determine why a channel cannot be established.)  
> To avoid being asked whether you want to open the application, set the DDESetOption( ) SAFETY
> option.  You can also use RUN with the /N option to start the application.

I know this, but why would it error with every single application I try
to link to?
                                        Doug


Tue, 24 Dec 1996 01:29:20 GMT
 DDE Help

Quote:


>Subject: Re: DDE Help
>Date: 7 Jul 1994 10:29:20 -0700



>> >Subject: DDE Help
>> >Date: 6 Jul 1994 21:42:06 -0700
>> >Summary: Error - remote data not available
>> >Help:
>> DDEInitiate( ) returns -1 if the channel cannot be established.  If the server application isn't open,
>> FoxPro asks if you would like to open it.  If you choose Yes, FoxPro attempts to open the application.  
>> (You can use DDELastError( ) to determine why a channel cannot be established.)  
>> To avoid being asked whether you want to open the application, set the DDESetOption( ) SAFETY
>> option.  You can also use RUN with the /N option to start the application.
>I know this, but why would it error with every single application I try
>to link to?
>                                        Doug

Are your Apps open or closed when you begin the ddeinitiate?  If they're
closed, you'll always get the error unless, as said above you set safety off
via ddesetoption.

I'm not sure about this, but do you have to set a ddesetservice to make word
listen to dde commands?  I know this is the case if you want Fox to be a
server.

Dave



Tue, 24 Dec 1996 05:29:35 GMT
 DDE Help

Quote:
> Are your Apps open or closed when you begin the ddeinitiate?  If they're
> closed, you'll always get the error unless, as said above you set safety off
> via ddesetoption.
> I'm not sure about this, but do you have to set a ddesetservice to make word
> listen to dde commands?  I know this is the case if you want Fox to be a
> server.
> Dave

That was the problem. Thanks. I needed to do a RUN /n command for the
application before Initiating.  
                                        Doug


Tue, 24 Dec 1996 11:25:51 GMT
 
 [ 5 post ] 

 Relevant Pages 

1. DDE Help

2. dde help

3. DDE help please

4. VB6/VB5 DDE Help an Idiot

5. DDE help needed

6. DDE HELP on PARADOX 7.0

7. Please DDE Help

8. DDE help

9. OLE and DDE Help needed

10. Help for dde winword / demande d'aide sur dde winword

11. VFP5 as DDE Server HELP!HELP!HELP!

12. Excel VB DDE to VC++ DDE server in NT


 
Powered by phpBB® Forum Software