forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


only 29 includes possible in vds5 ??

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
attreus
Valued Newbie


Joined: 30 Jul 2002
Posts: 46
Location: Berlin/Germany

PostPosted: Thu Jun 05, 2008 10:13 pm    Post subject: only 29 includes possible in vds5 ?? Reply with quote

i always get an error "circular reference in include commands" if i try to compile a script with 30 or more includes this error appears. all scrippts are working well with each other if i put them together in one large script.

i'd like to build a multiunit-maker to which i compile functions and commands according to demand.

greetings

edit:
oh, i see it's the miscellaneous-forum. it should be moved to general questions i think, but i don't know how to do.
Back to top
View user's profile Send private message
Garrett
Moderator Team


Joined: 04 Oct 2001
Posts: 2149
Location: A House

PostPosted: Fri Jun 06, 2008 7:47 pm    Post subject: Reply with quote

Wow, 30 includes! I've never gone beyond 10 includes myself. Sorry, I don't have an answer for you, just commenting on my amazement at 30 includes. Smile
_________________
'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.)
Back to top
View user's profile Send private message
attreus
Valued Newbie


Joined: 30 Jul 2002
Posts: 46
Location: Berlin/Germany

PostPosted: Sat Jun 07, 2008 3:09 pm    Post subject: Reply with quote

for every additional function or command i wanna have a separate script. when programming i just include multiunit.dsu which should check the script and only compile functions and commands that are used in the script. all others are #rem out. thats the plan. i hope i explained it understandable.
Back to top
View user's profile Send private message
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sun Jun 08, 2008 2:27 pm    Post subject: Reply with quote

There is character limit for the #define function and #define command lines. If you have lots of defined functions, or commands, you may need to shorten the length of each command and function.

Example: Instead of #define command,FindFirstFile use #define command,FindFirst or #define command,FFF

_________________
cheers

Dave
Back to top
View user's profile Send private message
attreus
Valued Newbie


Joined: 30 Jul 2002
Posts: 46
Location: Berlin/Germany

PostPosted: Mon Jun 09, 2008 3:37 pm    Post subject: Reply with quote

oh, that's a bad message, 'cause sooner or later the limit will be reached. i'll have to think of another way for my multiunitmaker. nevertheless thanks dave.

ps: does this limit exist in vds6 too?
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Mon Jun 09, 2008 3:52 pm    Post subject: Reply with quote

What I found is that you have to split up the #DEFINE COMMAND/FUNCTION on multiple lines. I found this when trying to define all the commands and functions that my GadgetX.dll has.
_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Wed Jun 11, 2008 2:32 pm    Post subject: Reply with quote

dragonsphere wrote:
What I found is that you have to split up the #DEFINE COMMAND/FUNCTION on multiple lines.

Does that really work for you? I'm sure when I tried that it did not help.

I seem to remember that it doesn't matter whether they are all on one line or split into multiple lines because the compiler effectively puts them all on the one line anyway.

_________________
cheers

Dave
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Jun 12, 2008 6:39 pm    Post subject: Reply with quote

Dave,
I will try it again since it was over a year ago when I ran into that. My help file and demos was going to list out all the functions and commands for my DLL on 2 lines but then I ran into the issue and decided against #define all commands/functions in every demo. However I do believe I got it to work by putting them on different lines. Now this was with VDS 5.02 so Jules may have tightened up the code since then or maybe I was just lucky that day Razz

_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
vdsalchemist
Admin Team


Joined: 23 Oct 2001
Posts: 1448
Location: Florida, USA

PostPosted: Thu Jun 12, 2008 6:49 pm    Post subject: Reply with quote

Ok I just tried it in VDS 6 and there is a limit Shocked
_________________
Home of

Give VDS a new purpose!
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group