Using (startapp..) function in Visual Lisp

Rakesh Rao

Usenet Archive
Joined
Jan 9, 2000
Messages
134
Reaction score
0
I just tried the (startapp) function in plain Lisp and it works fine to open a pdf file using Acrobat Reader.

The same function fails when used inside a compiled vlx file.

The error: no function definition "startapp"

Any clues why this is happening?

Regards
Rakesh
 
How about using the sendcommand method?

Why would you want to start an app in a separate
namespace? Shouldn't it be started in the activedocument?
 
Hi all:
If using a separate namespace, include (vl-arx-import 'startapp) as the
*very first line* in your code.
Regards,
Reinaldo
 
OK,
Got it. Reinaldo may have a solution. Whether
you use the sendcommand method or do
it internally in the separate namespace should
make little difference.
 
Thanks Luis and everyone else who resoinded. The (vl-arx-import 'startapp) worked. But I wonder why this was needed. The manual does not mention this function to be any different from other Lisp functions.

Regards
Rakesh

Luis said:
must be a separate-namespace vlx use:

(vl-arx-import 'startapp)
 

Latest threads

Back
Top