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 


Some one can help me please? - SOLVE

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


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Thu Jan 04, 2007 10:09 pm    Post subject: Some one can help me please? - SOLVE Reply with quote

Hi Smile

for a lot of time i have this trouble with vds5.1

when i include in my project a dsu unit when run project happen this error:
.
....
Err: Cannot open .....\xxx.dsu
....
.....

This happen with any dsu unit.

How I Can solve it?

Many thanks in advance for any info


Last edited by Tdk161 on Thu Jan 25, 2007 11:24 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Fri Jan 05, 2007 2:29 am    Post subject: Reply with quote

you have not included any code, so it makes it hard for us to see where the problem is Smile

the only things i can suggest at the moment are:

1. make sure that you are in the right directory in order to load your dsu files

2. make sure you use the right code to load your dsu files

both can be accomplished via:

Code:

directory change, @path(%0)
#include file.dsu


i would further suggest that you load your dsu at the very start of your program, even before the gui is displayed ... that's what i always do

hope this helps

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Fri Jan 05, 2007 12:41 pm    Post subject: Reply with quote

**--->added line : directory change,@path(%0)
#Include DynPos.dsu

Title SimpleDemo
DIALOG CREATE,DynPos Simple Demo,-1,0,240,159,RESIZABLE,CLASS SimpleDemoWn
DIALOG ADD,MENU,File
DIALOG ADD,COMBO,COMBO1,3,3,234,21
DIALOG ADD,EDIT,EDIT1,27,3,234,111,,,MULTI
DIALOG ADD,STATUS,STATUS1,STATUS1
DIALOG SHOW

# Syntax: Dynpos Initialize,<dialog's class name>
Dynpos Initialize,#SimpleDemoWn

# Syntax: DynPos Add,<element name>,<flags "TLWH">,{<parent element name> unless parent is main dialog}
DynPos Add,COMBO1,W
Dynpos Add,EDIT1,WH

:FileMENU
:Evloop
wait event
goto @event()

:Resize
# Syntax: DynPos ResizeDone,{<min width(int)>,<min height(int)> Optional}
DynPos ResizeDone
# Any other resizing code here
goto evloop

:Close
# "Free" Forces Cleanup (you could "Initialize" after Free to change main window)
DynPos Free
exit


For example, any of my old script work with included <dsu units Sad

Many thanks
Back to top
View user's profile Send private message Send e-mail
Hooligan
VDS Developer
VDS Developer


Joined: 28 Oct 2003
Posts: 480
Location: California

PostPosted: Fri Jan 05, 2007 1:51 pm    Post subject: Reply with quote

I've had problems in the past with runtime dlls being different versions. There are 3 versions of vds 5... V 5.0.0, V 5.0.1 & V 5.0.2. You may want to make sure your DSU is compiled under the same version as your script you're calling it from...

Hooligan

_________________
Hooligan

Why be normal?
Back to top
View user's profile Send private message
vdsalchemist
Admin Team


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

PostPosted: Fri Jan 05, 2007 2:50 pm    Post subject: Reply with quote

Tdk161,
Have you checked this screen. Take a look at attached screen shot. VDS will look in the include directory for your DSU. If no directory is there it should look in the directory where the *.dsp file is located.



projectdefaults.jpg
 Description:
Projects default screen...
 Filesize:  16.58 KB
 Viewed:  28595 Time(s)

projectdefaults.jpg



_________________
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
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Sat Jan 06, 2007 7:43 pm    Post subject: Reply with quote

Rolling Eyes Sorry Guyz but I used all your info but nothing change Mad
Many thanks to all

and I don't know what I can make to solve It.......

Crying or Very sad
Back to top
View user's profile Send private message Send e-mail
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Sun Jan 07, 2007 2:26 am    Post subject: Reply with quote

i noticed you had

Code:

**--->added line : directory change,@path(%0)
#Include DynPos.dsu


it should be

Code:

directory change,@path(%0)
#Include DynPos.dsu



also, have you tried (not sure if use of capitals is a problem when filename could be in lower case) ... just a thought

Code:

directory change,@path(%0)
#include dynpos.dsu


serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
DaveR
Valued Contributor
Valued Contributor


Joined: 03 Sep 2005
Posts: 413
Location: Australia

PostPosted: Sun Jan 07, 2007 4:25 am    Post subject: Reply with quote

Serge wrote:
Code:

directory change,@path(%0)
#Include DynPos.dsu

Does this actually work Question Exclamation Question

Directory change is a runtime command, while #include is a compiler directive.

From the help file re #include:
Quote:
If a full path is not specified, the compiler looks first in the project's main directory, and then in a special include folder that can be set using the IDE Options menu.


So to use #include you have 3 choices.
1.) Place the file to be included in the project's main directory.
2.) Place the file to be included in the project's 'include' directory (as setup via 'View menu > Project Manager > Folders'
3.) Specifiy the full path to the file to be included. e.g. #include C:\myincludes\my.dsu

_________________
cheers

Dave
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 Jan 07, 2007 4:36 am    Post subject: Reply with quote

dragonsphere wrote:
Tdk161,
Have you checked this screen. Take a look at attached screen shot. VDS will look in the include directory for your DSU. If no directory is there it should look in the directory where the *.dsp file is located.



This sets the default include folder for all projects.

I always use 'View menu > Project Manager > Folders' to set each project's own include folder.

_________________
cheers

Dave
Back to top
View user's profile Send private message
Serge
Professional Member
Professional Member


Joined: 04 Mar 2002
Posts: 1480
Location: Australia

PostPosted: Mon Jan 08, 2007 2:39 am    Post subject: Reply with quote

Quote:
Does this actually work


good question ... i must say that i never tried it any other way ... from memory, i started doing this when i noticed that EXTERNAL sometimes did and sometimes did not work and i found out that i had to make sure to be in the correct/home folder for it to work

since then, i also do it that way ... may be you are right Smile

serge

_________________
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
jules
Professional Member
Professional Member


Joined: 14 Sep 2001
Posts: 1043
Location: Cumbria, UK

PostPosted: Mon Jan 08, 2007 9:31 am    Post subject: Reply with quote

He quite categorically is right. The directives that start with # are processed by the compiler. The compiler does not execute the directory change command, it only compiles it. It works with EXTERNAL because that is a command, executed at runtime, not a compiler directive.
_________________
The Tech Pro
www.tech-pro.net
Back to top
View user's profile Send private message Visit poster's website
vdsalchemist
Admin Team


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

PostPosted: Mon Jan 08, 2007 2:46 pm    Post subject: Reply with quote

Tdk161,
Please goto http://www.dialogscript.com and install the latest build of VDS. I think this is part of the issue.

_________________
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
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Thu Jan 18, 2007 6:45 pm    Post subject: Reply with quote

Very Happy Very Happy Very Happy Wave Wave Wave Wave Big Smile Very Happy Razz Worship Worship Dancing Banana
WORK!!!!!!!!!!!!!!!!!!
MANY MANY MANY THANKS
Back to top
View user's profile Send private message Send e-mail
vdsalchemist
Admin Team


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

PostPosted: Thu Jan 18, 2007 10:02 pm    Post subject: Reply with quote

Tdk,
I am very glad to hear that it is working for you but can you tell us what fixed the issue you were having?

_________________
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
Tdk161
Valued Contributor
Valued Contributor


Joined: 08 Feb 2005
Posts: 399
Location: ITALY

PostPosted: Thu Jan 25, 2007 11:23 am    Post subject: Reply with quote

well, but I don't know this, I think that some WinXp Update is incompatibily with vds 5 and ver of vds 5.2 resolve it......maybe Rolling Eyes
Back to top
View user's profile Send private message Send e-mail
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