PDA

View Full Version : Macro in Unix & Windows


fcoexposito
04-26-2004, 01:03 AM
I want to create a macro that it works properly in Unix and Windows, but I want only one file for both. Is there any way to do it?

Thanks

dorothea
04-26-2004, 03:48 AM
Hi,
What kind of macro do you want to create? If you generate code using the OneSpace Designer Developers Kit then the code is working on unix and windows. There are small differences. But everything is documented in the developers kit documentation. So you should not have any problem with the code running on both platforms.

Dorothea

fcoexposito
04-26-2004, 04:40 AM
I have a macro done and that works in Unix. Now I want that it works in Windows, too. It is written in LISP and has been done manually, without Cocreate developers kit.
Is there any instruction in LISP that you can difference between Unix and Windows?

dorothea
04-26-2004, 04:49 AM
Hi,

I see no need to differenciate between unix and windows if you are working with LISP. Then your code should run in windows.
DId you run already into problems when you tried toi run your code on windows? The only differences I'm aware of are file and pathname related.

Dorothea

fcoexposito
04-26-2004, 04:53 AM
ok. I want to differentiate between windows and unix, because I use pathnames and files and I must change the path.

Thanks

dorothea
04-26-2004, 05:04 AM
Hi,

Did you have a look into the Developers Kit documentation? The following link could be helpful:
.../documentation/integration_kit/reference/filing_and_os.html

Can you find everything you need or do you have more questions?

Dorothea

fcoexposito
04-26-2004, 08:15 AM
I haven't found that page....

John Scheffel
04-26-2004, 01:20 PM
If you need to make a function do different things in HP-UX and Windows, you can use a LISP structure similar to the following.
(case (oli:sd-inq-platform)
(:nt (my-windows-function))
(:hp-ux (my-hpux-function))
)
However, you don't have to do this if the only difference in the path is the direction of the slashes. You can use the forward slash "/" to specify a path in SolidDesigner/Modeling, and it should work in any OS.

dorothea
04-26-2004, 10:20 PM
Originally posted by fcoexposito
I haven't found that page....

Tell me the version you are working with and I can check where you find it in your installation. Without version I can't help you.

Dorothea