|
2 registered members (Quad, AndrewAMD),
1,007
guests, and 6
spiders. |
|
Key:
Admin,
Global Mod,
Mod
|
|
|
Migrating to Lite C
#142978
07/23/07 18:37
07/23/07 18:37
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
OP
User
|
OP
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi! I can’t start my project after migrating the Cscript files to LiteC
I read the notes on “Migrate step by step” and I believe that this part is done. I’ve also done ReplaceEm (worked very well...thanks) I’ve searched the manual .
Here’s the message
Compiling MENU.C... Error in 'MAIN' line 18: 'PATH' undeclared identifier < PATH "..\\prefabs"; >
Working with ver Pro Edition V7.04.2
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Migrating to Lite C
[Re: Ottawa]
#142979
07/23/07 18:46
07/23/07 18:46
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
You cannot use the path statement in a .c file. Create a file with the same name as you main .c file and replace the file extension from .c to .wdl. In this file you should place your PATH statements.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Migrating to Lite C
[Re: Uhrwerk]
#142980
07/23/07 23:21
07/23/07 23:21
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
OP
User
|
OP
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Hi Zeitwerk  Thanks for the information. That was the solution...:) Do you know of other situations where we have to open a .wdl file. Presently I am working my way through my scripts and correcting the case-sensitive variables.
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
Re: Migrating to Lite C
[Re: Ottawa]
#142981
07/23/07 23:28
07/23/07 23:28
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
Expert
Joined: Jan 2002
Posts: 4,225
Germany / Essen
|
Yes, there are even some other cases: Quote:
In a lite-C project, .wdl files are now only for defining paths, resources, folders, the startup window etc. They can not be used for code, variables, includes, etc. A .wdl file is automatically read at startup if it has the same name as the .c file. For instance, if your project is named "test.c", have your PATH, RESOURCE, SAVEDIR, PLUGINDIR, WINDOW etc. statements in "test.wdl"
This is from http://www.conitec.net/beta/litec_migration.htm. You can find a detailed description of everything you have to change in order to port your scripts to A7.
Always learn from history, to be sure you make the same mistakes again...
|
|
|
Re: Migrating to Lite C
[Re: Uhrwerk]
#142982
07/23/07 23:40
07/23/07 23:40
|
Joined: Apr 2006
Posts: 737 Ottawa, Canada
Ottawa
OP
User
|
OP
User
Joined: Apr 2006
Posts: 737
Ottawa, Canada
|
Ha  That's where I read it! Thanks again.
Hope this helps! Ottawa  Ver 7.86.2 Pro and Lite-C
|
|
|
|