| View previous topic :: View next topic |
| Author |
Message |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Sep 19, 2002 4:01 pm Post subject: External dll problems |
|
|
hello all
I have a problem whe using a External dll. when i uses it on a system that uses 2 hard drive i get eorrors meanig if the system has windows on c drive BUT the system folders are like on G drive.. i get eorros ... if i uses a system that is "normal" then it works fine
any ideas how to fix this?
NOTE: in the system that uses 2 drives it don't mater if i run the vds program on C drive or G drive i still get the same error
thanks |
|
| Back to top |
|
 |
moke Contributor

Joined: 02 Jan 2002 Posts: 162
|
Posted: Thu Sep 19, 2002 6:52 pm Post subject: |
|
|
Hi Tim,
If i understand the problem correctly i think this will help. Try either hardcoding the paths to the dlls into your EXE or keep them in your program folder and locate them @path(%0).
Like this:
External @path(%0)vdsipp.dll
moke |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Thu Sep 19, 2002 8:37 pm Post subject: |
|
|
I also normally use:
External @path(%0)vdsipp.dll
I don't think it's ever failed for me.
-Garrett |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Thu Sep 19, 2002 9:47 pm Post subject: |
|
|
| Strange... are they just general VDS errors or specific to the DLL? |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Thu Sep 19, 2002 11:14 pm Post subject: hummm |
|
|
if i recall i got eorror 5 line 128 which in my case line 128 is where the External dll is on..so its a vds eorror  |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Fri Sep 20, 2002 5:30 am Post subject: |
|
|
| Which dll are you refering to? Or is this happening to all dll's? |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Sep 20, 2002 5:44 am Post subject: vdsipp.dll |
|
|
it seems to be just this one vdsipp.dll that is causing the problems
thanks |
|
| Back to top |
|
 |
PGWARE Web Host

Joined: 29 Dec 2001 Posts: 1565
|
Posted: Fri Sep 20, 2002 12:40 pm Post subject: |
|
|
From the vds help file under the Error Messages section:
| Quote: |
5 Invalid variable name
Valid variable names are %1 .. %9 and %A .. %Z.
|
Take a look at you're variable, it's not valid. The error message is not from the dll but rather you're script. |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Fri Sep 20, 2002 12:50 pm Post subject: |
|
|
| Sometimes the error line number VDS returns is one off from the actual line number... |
|
| Back to top |
|
 |
Hortalonus Valued Contributor


Joined: 15 Mar 2002 Posts: 344 Location: Western USA
|
Posted: Fri Sep 20, 2002 1:46 pm Post subject: |
|
|
| Don't know if this helps... but the trickiest variable problem I have found is when parsing data. The IDE doesn't highlight the variables you're parsing to since they're enclosed in quotes. I always manage to substitute a colon for a semicolon between variables or leave out the comma between the set of variables I'm parsing to and the one I'm parsing from. Both of these will give you an error 5. |
|
| Back to top |
|
 |
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Fri Sep 20, 2002 2:38 pm Post subject: |
|
|
| Tommy wrote: | Sometimes the error line number VDS returns is one
off from the actual line number... |
Sometimes!? More like 99.9% of the time!
-Garrett |
|
| Back to top |
|
 |
tim6389 Professional Member


Joined: 01 Aug 2002 Posts: 790
|
Posted: Fri Sep 20, 2002 8:32 pm Post subject: hummmm |
|
|
hummmm
i see what you guys are saying... i'am going to check it out some more
thanks |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Sep 21, 2002 12:39 pm Post subject: |
|
|
| Garrett wrote: | | Tommy wrote: | Sometimes the error line number VDS returns is one
off from the actual line number... |
Sometimes!? More like 99.9% of the time!
-Garrett |
The reason the error number is off is that the interpreter/compiler does not read lines that do not do anything...for example, it does not compile REM comments, blank spaces, etc.
| Quote: | Note that, because the compiler does not include in the EXE lines that do nothing, the line number reported may not be the same as the line number in the original script.
Copyright 1995 - 2002 S.A.D.E. s.a.r.l. / All rights are reserved. |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
Tommy Admin Team
Joined: 16 Nov 2002 Posts: 746 Location: The Netherlands
|
Posted: Sat Sep 21, 2002 3:02 pm Post subject: |
|
|
| FreezingFire wrote: | The reason the error number is off is that the interpreter/compiler does not read lines that do not do anything...for example, it does not compile REM comments, blank spaces, etc.
| Quote: | Note that, because the compiler does not include in the EXE lines that do nothing, the line number reported may not be the same as the line number in the original script.
Copyright 1995 - 2002 S.A.D.E. s.a.r.l. / All rights are reserved. |
|
I don't think this is true as it doesn't ever seem to be more than one off... |
|
| Back to top |
|
 |
FreezingFire Admin Team

Joined: 23 Jun 2002 Posts: 3508
|
Posted: Sat Sep 21, 2002 3:07 pm Post subject: |
|
|
Odd...now it isn't even off! Tried it both in the IDE and in compiled version:
| Code: | rem comment 1
rem blank line above / comment 2
make an error! |
_________________ FreezingFire
VDSWORLD.com
Site Admin Team |
|
| Back to top |
|
 |
|