| View previous topic :: View next topic |
| Author |
Message |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Wed May 26, 2004 9:21 pm Post subject: Compiling scripts incorporating DSU Files. |
|
|
I'm having problems compiling one of my programmes after I include a neat little Calendar DSU. I'm using XP home edition on my Laptop and VDS 5.0 has any one else had similar problems and found out what is going wrong.
Codescript,
If your watching, Do I need to call in the VDSUG.dll and define commands and Functions before using the #Include TBLCTRL.dsu
Thanks all for any help
Regards
Andy F |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Thu May 27, 2004 6:01 am Post subject: |
|
|
What are the problems you're encoutering?
Does the compiler say 'Cannot compile'? If so, you'll have to scroll a few
lines up in the compiler status list-thingy. It mostly gives an error (like
undefined function at line 232), and then terminates the compling process.
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu May 27, 2004 11:39 am Post subject: |
|
|
Hi Andy
As Vic said U can lok at the error messages - it may throw some light where things are going wrong.
Most importantly make sure you run the dsu in the VDS 5.01 folder only if you have VDS 5.1 installed (I strongly recommend U install VDS 5.1 or higher) as this will remove the need of having to use vdsug.dll.
Another thing i can think of is that you have somewhere on the path an older version of vdsrun50.dll. If so you need to replace it newer one.
BTW I compiled the dsus in the package again with VDS 5.2 and both of them work fine.
As for your loss of the exe - It is a well known VDS IDE deletion bug. You need to periodically backup all your files in the directory in which you have the .dsc to avoid any catastrophe. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Thu May 27, 2004 1:31 pm Post subject: |
|
|
| CodeScript wrote: | | As for your loss of the exe - It is a well known VDS IDE deletion bug. You need to periodically backup all your files in the directory in which you have the .dsc to avoid any catastrophe. |
Have a look at CodeBackup to protect your scripts against the big, heary, script-eating IDE
Regards,
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu May 27, 2004 2:53 pm Post subject: RE: Compiler error message. |
|
|
Hi Vic and also Codescript. Thanks for your advice. totally understood.
I did look at the messages before the end statment the only thing that is thrown up is "Undable to open ****.DSU, This happened when I used the INET.dsu and moved it to a sub folder of my application, but when I put it back to the root folder of the application it sorted that out.
But The latest problem with the Calendar and Table control DSU's simply will not open during compiling.
Interesting you mentioned upgrading to 5.1 from 5.0 to avoid the need for using vdsUG.dll. TRouble is I'll probaly have to pay yet another fee and I have only have 5.0 for about 10 months.
Or isd it a free upgrade
What are the file attributed for the Old and new versions of vdsrun50.dll so that I can check this out.
Yerp no problems with backups it's in my nature to do so and I was easily able to recover.
Regards guys.
Look forward to your help later if possible.
AndyF
| CodeScript wrote: | Hi Andy
As Vic said U can lok at the error messages - it may throw some light where things are going wrong.
Most importantly make sure you run the dsu in the VDS 5.01 folder only if you have VDS 5.1 installed (I strongly recommend U install VDS 5.1 or higher) as this will remove the need of having to use vdsug.dll.
Another thing i can think of is that you have somewhere on the path an older version of vdsrun50.dll. If so you need to replace it newer one.
BTW I compiled the dsus in the package again with VDS 5.2 and both of them work fine.
As for your loss of the exe - It is a well known VDS IDE deletion bug. You need to periodically backup all your files in the directory in which you have the .dsc to avoid any catastrophe. |
|
|
| Back to top |
|
 |
Vic D'Elfant Past Contributor


Joined: 26 Jun 2002 Posts: 673 Location: The Netherlands
|
Posted: Thu May 27, 2004 4:18 pm Post subject: |
|
|
There are no upgrade costs involved when upgrading from 5.0 to 5.1; just
download the newest VDS version from dialogscript.com, and you're done.
And one thing I had problems with before; #include submap\mydsu.dsu
with a backslash is incorrect, you must use a forward slash to let it work,
so #include submap/mydsu.dsu works Perhaps this is the same problem
as you're having.
Regards,
Vic _________________ phpBB Development Team |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu May 27, 2004 4:28 pm Post subject: |
|
|
Ahhh good news I'll do that this evening Vic.
Even bigger Ahhhhh! I see. not \ but / strange I woander why that is unless its an interpreter thing maybe.
Take care now, Ill let you know how this all works out tonight.
Regards
AndyF
| Vic wrote: | There are no upgrade costs involved when upgrading from 5.0 to 5.1; just
download the newest VDS version from dialogscript.com, and you're done.
And one thing I had problems with before; #include submap\mydsu.dsu
with a backslash is incorrect, you must use a forward slash to let it work,
so #include submap/mydsu.dsu works Perhaps this is the same problem
as you're having.
Regards,
Vic |
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu May 27, 2004 4:36 pm Post subject: |
|
|
I can only see 5.02 on the VDSdialog.com site. Can we upgrade straight to 5.02 without charge ?
| Vic wrote: | There are no upgrade costs involved when upgrading from 5.0 to 5.1; just
download the newest VDS version from dialogscript.com, and you're done.
And one thing I had problems with before; #include submap\mydsu.dsu
with a backslash is incorrect, you must use a forward slash to let it work,
so #include submap/mydsu.dsu works Perhaps this is the same problem
as you're having.
Regards,
Vic |
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Thu May 27, 2004 5:18 pm Post subject: |
|
|
Hi Andy
As far as I know - all the minor upgrades to a given version of VDS are free to that major version user - like VDS 5.xx upgrades are free for VDS 5.0 reg users. So I advice you to try the new version. _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu May 27, 2004 6:26 pm Post subject: |
|
|
Thanks CodeScript, done that now so going to try the dsu again and see what happens.
Did you say with version 5.02 I don't need vdsug.dll any more
| CodeScript wrote: | Hi Andy
As far as I know - all the minor upgrades to a given version of VDS are free to that major version user - like VDS 5.xx upgrades are free for VDS 5.0 reg users. So I advice you to try the new version. |
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Thu May 27, 2004 7:05 pm Post subject: |
|
|
Hi, Yep the tablecontrol works fine infact did not need the dsu scripts at all, to apply lines to the table.
But I want Grids and whole row selection all at once and it seem like the @sendmsg function replaces one characteristic with another. Is why we need the dsu ?
Haven't tried to compile the Calendar dsu script yet. tring to rebuild my next door naighbours computer at the moment.
Regards
AndyF
| CodeScript wrote: | Hi Andy
As far as I know - all the minor upgrades to a given version of VDS are free to that major version user - like VDS 5.xx upgrades are free for VDS 5.0 reg users. So I advice you to try the new version. |
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Sat May 29, 2004 2:06 pm Post subject: |
|
|
I moved the Calelm.dsu file to the VDS 5.2 directory and tried to compile my application and it through up error. "Cannot Open Calelm.dsu" in fact do dsu workes when I move them to VDS. It seems that they can only be opened if you keep in the root directory of you application. or do I have to specify the path as /progra~1/Visual~1/Calelm.dsu
Also when I compile with #Include Calelm.dsu my compiler reports error
"Duplicate Label Line 4" and "Duplicate Label Line 70". When I rem out the #Include dsu statment the script compiles.
Any ideas what this could be
Regards
AndyF
| CodeScript wrote: | Hi Andy
As Vic said U can lok at the error messages - it may throw some light where things are going wrong.
Most importantly make sure you run the dsu in the VDS 5.01 folder only if you have VDS 5.1 installed (I strongly recommend U install VDS 5.1 or higher) as this will remove the need of having to use vdsug.dll.
Another thing i can think of is that you have somewhere on the path an older version of vdsrun50.dll. If so you need to replace it newer one.
BTW I compiled the dsus in the package again with VDS 5.2 and both of them work fine.
As for your loss of the exe - It is a well known VDS IDE deletion bug. You need to periodically backup all your files in the directory in which you have the .dsc to avoid any catastrophe. |
|
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Sat May 29, 2004 2:34 pm Post subject: Duplicate Labels |
|
|
Hi Vic,
I have finally sorted out the problem with DSU's not compiling with the Slash switch from \ to / but when I try to include the Calelm.dsu
the script compiler reports a Duplicate label error and fails to complete.
I have checked the line and there is no Duplicate.
Any ideas
AndyF
| Vic wrote: | What are the problems you're encoutering?
Does the compiler say 'Cannot compile'? If so, you'll have to scroll a few
lines up in the compiler status list-thingy. It mostly gives an error (like
undefined function at line 232), and then terminates the compling process.
Vic |
|
|
| Back to top |
|
 |
CodeScript Moderator Team

Joined: 08 Jun 2003 Posts: 1060 Location: India
|
Posted: Sun May 30, 2004 2:53 pm Post subject: |
|
|
| Andy_Fletcher wrote: | Also when I compile with #Include Calelm.dsu my compiler reports error
"Duplicate Label Line 4" and "Duplicate Label Line 70". When I rem out the #Include dsu statment the script compiles.
Any ideas what this could be
Regards
AndyF
|
what is on line 4 of your script ? _________________ Regards
- CodeScript
Give your application a professional look with the VDSGUI Extension |
|
| Back to top |
|
 |
Andy_Fletcher Contributor

Joined: 10 Jun 2003 Posts: 90 Location: Somerset, United Kingdom
|
Posted: Tue Jun 01, 2004 9:14 am Post subject: |
|
|
| CodeScript wrote: | | Andy_Fletcher wrote: | Also when I compile with #Include Calelm.dsu my compiler reports error
"Duplicate Label Line 4" and "Duplicate Label Line 70". When I rem out the #Include dsu statment the script compiles.
Any ideas what this could be
Regards
AndyF
|
what is on line 4 of your script ? |
Here is the first part of the script up to the #Incluse statement for Calelm.dsu. Thanks CodeScript.
| Code: | #INCLUDE /Program Files/Visual DialogScript 5/Inet.dsu
%T = @shortname(%0)
If @equal(%1,Manager)
Goto Manager
End
title Security logon
DIALOG CREATE,Security,-1,0,362,131,NOSYS,NOMIN
DIALOG ADD,STYLE,STYLE1,Arial,10,L,,BLACK
REM *** Modified by Dialog Designer on 18/05/2004 - 21:15 ***
DIALOG ADD,EDIT,EDIT2,20,36,218,19
DIALOG ADD,EDIT,EDIT1,60,36,217,19,,,PASSWORD
DIALOG ADD,BUTTON,Enter,8,270,64,33,,,DEFAULT
DIALOG ADD,BUTTON,Cancel,44,270,64,21,Close
DIALOG ADD,BITMAP,BITMAP1,-1,0,363,114,/rems/resources/company.bmp,,STRETCH,INVISIBLE
DIALOG ADD,TEXT,TEXT2,4,36,91,21,User ID:
DIALOG ADD,TEXT,TEXT1,43,36,109,16,Enter Password:
DIALOG ADD,STATUS,STATUS3,Enter User ID and Password
DIALOG ADD,BITBTN,BITBTN1,69,271,63,26,C:\Program Files\Visual DialogScript 5\demos\webbrowser\Bitmaps\home.bmp,,,,HELP
DIALOG SHOW
Option Errortrap,Err
EXTERNAL /rems/vdsmysql.dll,Andrew Fletcher|********
#DEFINE COMMAND,MYSQL
#DEFINE FUNCTION,MYSQL
%J = 0
%%FTPADD = @REGREAD(ROOT,REMS,FTPADD)
%%FTPPORT = @REGREAD(ROOT,REMS,FTPPORT)
rem decided to embedd ftp server User and pasword in code for simplicity and then treat
rem dialog text as test of Database access
%%USER_1 = @dlgtext(EDIT2)
%%ID_1 = ****
%%PWD_1 = ****
EXTERNAL /Rems/Resources/VDSIPP.DLL,*********|Andrew Fletcher
#DEFINE COMMAND,INTERNET
#DEFINE FUNCTION,INTERNET
If @equal(%%FTPADD,127.0.0.1)
%R = @msgbox(Your current settings are for localhost"," this is you PC not the Server. Do you want to set network IP address,Address resolution,$024)
end
If @equal(%R,6)
Goto BITBTN1BUTTON
end
INTERNET FTP,CREATE,1
INTERNET FTP,THREADS,1,ON
DIALOG SET,STATUS3,Enter your User name and password
List Create,1
:hevloop
Dialog set,status3,Enter User ID & Password
WAIT EVENT
%A = @EVENT()
GOTO %A
:ERR
If @equal(@error(E),1045)
Dialog set,status3,Incorrect security details.
wait 1
Dialog set,status3,re-enter your logon details
end
Goto hevloop
:BITBTN1BUTTON
%%FTPADD = @INPUT(Enter the IP address:)
REGISTRY WRITE,ROOT,REMS,FTPADD,%%FTPADD
REGISTRY WRITE,ROOT,REMS,IPSET,%%FTPADD
%%FTPPORT = @INPUT(Enter the Port no"," e.g 21:)
REGISTRY WRITE,ROOT,REMS,FTPPORT,%%FTPPORT
Goto hevloop
:Dialup
Dialog Set,Status3,Dialing default connection
INET DialDefaultConnection
dialog set,status3,Connected
Goto Login
:CancelBUTTON
Dialog Set,Status3,Disconnecting network connections
INET HANGUPMODEM
Exit
:EnterBUTTON
%%Check = @INET(CheckConnection)
IF @ZERO(%%Check)
Dialog set,Status3,Not Connected to Internet
Goto Dialup
Else
Dialog Set,Status3,Connected to Internet
Wait 1
GOTO Login
End
:Login
%%host_1 = @Regread(ROOT,REMS,IPSET)
%%USER_1 = @dlgtext(EDIT2)
%%Pass_1 = @dlgtext(Edit1)
Dialog set,Status3,Logging on to server for authentication.....
Mysql Login,%%host_1,%%USER_1,%%Pass_1,3306
Rem -----------Authenticated--------------------------------------------+
Dialog set,Status3,Authentication okay !
REGISTRY WRITE,ROOT,REMS,TEMP,%%Pass_1
REGISTRY WRITE,ROOT,REMS,USID,%%USER_1
REGISTRY WRITE,ROOT,REMS,Savelocat,C:\Temp\
Mysql Logout
%m =
Dialog set,Edit1,%m
Run %T Manager
Goto hevloop
Rem ------------End Authentication ------------------------------------+
:Manager
%%FTPADD = @REGREAD(ROOT,REMS,FTPADD)
%%FTPPORT = @REGREAD(ROOT,REMS,FTPPORT)
List Create,1
List Create,2
LIST CREATE,4
List Create,5
List Create,6
%%Pass_1 = @Regread(ROOT,REMS,TEMP)
REGISTRY WRITE,ROOT,REMS,TEMP,*******
If @winexists(Security)
wait 1
Window hide,Security
end
%%ID_1 = *****
%%PWD_1 = *****
%%stat_1 = @REGREAD(ROOT,REMS,ftpstat)
IF @equal(%%stat_1,available)
%%CONNECT_2 = @regread(ROOT,REMS,Connection)
End
EXTERNAL /Rems/Resources/VDSXRAS.DLL
EXTERNAL /rems/vdsmysql.dll,Andrew Fletcher|********
#DEFINE COMMAND,MYSQL
#DEFINE FUNCTION,MYSQL
EXTERNAL /Rems/Resources/VDSIPP.DLL,*******|Andrew Fletcher
#DEFINE COMMAND,INTERNET
#DEFINE FUNCTION,INTERNET
External /Rems/Resources/vdsbrw50.DLL
#DEFINE COMMAND,BROWSER
#DEFINE FUNCTION,BROWSER
#INCLUDE /Program Files/Visual DialogScript 5/Calelm.dsu
Title Manager
DIALOG CREATE,Recruitment Enterprise Management System,-1,0,792,544
DIALOG ADD,STYLE,STYLE4,Arial,10,L,,BLUE
DIALOG ADD,STYLE,STYLE3,Arial,10,BL,BLACK,WHITE
DIALOG ADD,STYLE,STYLE2,Tahoma,8,C,,BLACK
REM *** Modified by Dialog Designer on 26/05/2004 - 21:50 ***
DIALOG ADD,STYLE,STYLE1,Arial,10,BC,WHITE,10
DIALOG ADD,MENU,Main,User Admin,Settings,Email,Internet,Exit
DIALOG ADD,MENU,Tools,Add a Record,Find a Record,Calendar,Add an Appointment,View Calendar
DIALOG ADD,TAB,TAB1,21,0,792,510,Home|Journal|Email|Browser|,,STYLE1
DIALOG ADD,COMBO,cbURLs,23,233,410,21,%%URL,,CLICK,STYLE2
DIALOG ADD,BITMAP,BCKGROUND,49,1,788,483,#company.bmp,,STRETCH,INVISIBLE
DIALOG ADD,LIST,Activities,142,588,180,182,Here is your Activities for today,STYLE1,DBLCLICK,,HAND
DIALOG ADD,TEXT,TEXT1,126,653,,,Activities
DIALOG ADD,EDIT,Freenote,366,246,326,146,You can use this space to type an important note. Just like post-its !,You can use this space to type an important note. Just like post-its !,STYLE3,WRAP,MULTI
DIALOG ADD,TEXT,TEXT2,350,362,,,Free Notes Space
DIALOG ADD,STATUS,STATUS1
DIALOG ADD,MENU,Applications,MS Word,MS Excel,MS PowerPoint,Notepad
DIALOG ADD,MENU,Favourites,Add a Favourite Website,www.google.com,www.itsecurityjobs.com,www.yahoo.com
DIALOG ADD,TIME,TIME1,1,723,67,19,,STYLE1
DIALOG ADD,LIST,Vacancies,352,589,182,148,Currently active vacancies register to you,STYLE1,DBLCLICK,,HAND
DIALOG ADD,TEXT,TEXT3,336,640,,,Live Vacancies
DIALOG ADD,COMBO,COMBO1,137,11,176,24,COMBO1,,STYLE1,CLICK,LIST
DIALOG ADD,TEXT,TEXT4,120,12,,,Last 10 Applicants,This is the last 10 Applicant records you opened
DIALOG ADD,COMBO,COMBO2,183,11,176,24,COMBO2,Here are the last 10 customer records you opened,STYLE1,CLICK,LIST
DIALOG ADD,TEXT,TEXT5,165,11,,,Last 10 Customers,The last 10 Customer records you opened
DIALOG ADD,LIST,Interviews,235,11,176,121,List of Pending interviews,STYLE1,HAND
DIALOG ADD,TEXT,TEXT7,218,38,,,Current Interviews
DIALOG ADD,TEXT,TEXT8,-1,293,246,21,Greeting Usually goes here!,Is it Morning or Afternoon,STYLE1
DIALOG ADD,CALENDAR,CALENDAR1,368,12,202,124,02/07/2003,,STYLE2,CLICK
DIALOG ADD,BUTTON,Edit,512,346,128,14,Edit Notes Here,,STYLE4
DIALOG ADD,BUTTON,Savenotes,511,346,127,16,Savenotes
DIALOG ADD,BUTTON,Go,23,645,24,20,,,STYLE2
DIALOG ADD,CHECK,cbOffline,27,672,64,18,Offline,1,,CLICK,STYLE2
DIALOG ADD,LINE,LINE1,44,2,790,486
DIALOG ADD,TABLE,Planner,74,3,786,452,ID[90]|Date[90]|Time[80]|Activity[200]|Comment[320],MULTI,COLUMNSORT,DBLCLICK,STYLE4
DIALOG ADD,BROWSER,Browser1,75,6,779,450,@dlgtext(cbURLs),,OFFLINE
DIALOG ADD,BITBTN,BACK,46,227,37,28,/Rems/Resources/back.bmp,,Go back,HAND
DIALOG ADD,BITBTN,FORWARD,46,268,39,28,/Rems/Resources/fwd.bmp,,Go Forward,HAND
DIALOG ADD,BITBTN,REFRESH,47,310,32,27,/Rems/Resources/refresh.bmp,,Refresh Page
DIALOG ADD,BITBTN,Print,47,352,32,27,/Rems/Resources/print.bmp,,Print Page
DIALOG ADD,BITBTN,Home,47,398,32,27,/Rems/Resources/home2.bmp,,Goto homepage
rem %%Calend = @Calendar(Create,#Calendedw,40,10,auto,auto,WEEKNUMBERS)
DIALOG SHOW |
----------------End--------------------
Regards
AndyF |
|
| Back to top |
|
 |
|
|
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
|
|