TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: rugaroo on October 26, 2003, 12:52:54 PM

Title: VLX Files
Post by: rugaroo on October 26, 2003, 12:52:54 PM
You guys know why when I take a vlx to/from somewhere, I try using the commands that I know are associated with that vlx, but they don't work....am I missing something?

Rug
Title: VLX Files
Post by: SMadsen on October 27, 2003, 09:33:51 AM
Rug, I have no suggestions to make, sorry. Could be numerous things. Maybe the VLX is missing some files? Maybe commands are not commands but functions? Maybe the number of arguments are not what you'd expect.

Are there any error messages?
Title: VLX Files
Post by: Mark on October 27, 2003, 10:06:07 AM
Isn't there something you HAVE to do when installing ACAD to get ActiveX support?
Title: VLX Files
Post by: SMadsen on October 27, 2003, 10:33:11 AM
When installing ACAD? I'm not sure.

But when compiling there's explicit choice for ActiveX support. Maybe Rug's VLX was compiled without ActiveX support.
Maybe it was compiled with maximum optimization. That will cause VLX to juggle with addresses instead of names, which will make functions inaccessible to the outside world. But functions defined as commands should be available as normal.
Title: VLX Files
Post by: JohnK on October 27, 2003, 11:14:00 AM
Ive never heard of anything like that before.
Title: VLX Files
Post by: rugaroo on October 27, 2003, 12:57:36 PM
Well, I am gonna try to recompile everything, and see if that works. If not, the I am just going to protect my lisp files. :)

Rug
Title: VLX Files
Post by: daron on October 27, 2003, 01:25:50 PM
Quote from: rugaroo
Well, I am gonna try to recompile everything, and see if that works. If not, the I am just going to protect my lisp files. :)

Rug
This comment seems off topic to you original question. The easiest way I've found to compile your code is to just make a .fas file. If you have dcl or multiple files to combine then you'd want to make a vlx, but for individual files, just make a fas file. If I understand correctly, you'd need to do that before creating vlx's anyway.
Title: VLX Files
Post by: rugaroo on October 27, 2003, 02:24:30 PM
A FAS file is created when I do my VLX, but It still does not work. Let me take some time and see if I can locate the problem on my end and see if I was just slacking a bit.

Rug
Title: VLX Files
Post by: daron on October 28, 2003, 02:02:55 AM
Are you sure it creates a fas file for you? If so, what type? Or, do you get to choose? There are about three types of fas files to choose from. The way I understand VLX's is that they are merely a container for the compiled code, dcl's and other pertinent info. The fas file is the compiled lisp code.
Title: VLX Files
Post by: Dave on November 10, 2003, 10:23:03 AM
Make sure you are NOT compiling to a separate namespace VLX.  If you do, you must expose your commands and functions to make them accessible from outside the program.  I have seen where vlx code compiled on 2004 had trouble running in 2000, but only with respect to things like (vl-arx-import) or (vlax-add-cmd).
Title: VLX Files
Post by: Keith™ on January 06, 2004, 01:57:00 PM
Rug.. did you ever figgure this one out..... If not, then lemme ask...are you using VisualLisp commands? If so make sure you have (vl-load-com) in the VLX proggie...otherwise it will never work unless someone accidentally loads it...

Remember "The Daron Act"