Discussion:
Script problem in CorelDraw X13
(too old to reply)
bojan
2006-05-04 19:59:30 UTC
Permalink
I have trouble with a program for CorelDraw11 that support plotter. The
script says that can't find a dll file:
for example the dll is LoaderCorelCut.dll and in a source file has a
reference as

Declare Sub StartClient Lib "CutPlot\Program\LoaderCorelCut.dll" (ByVal
WindowHandle As Long)

When the script run the error is :
run time error-53

can't find a file : "...."

PLEASE HELP ME!

by, ***@libero.it
Werner Perplies
2006-05-05 03:44:09 UTC
Permalink
Bojan,
Post by bojan
I have trouble with a program for CorelDraw11 that support plotter. The
for example the dll is LoaderCorelCut.dll and in a source file has a
reference as
Declare Sub StartClient Lib "CutPlot\Program\LoaderCorelCut.dll" (ByVal
WindowHandle As Long)
Not sure, but I'm think the programm will so look for the dll in
currentdrive(what ever it will be at the
moment)\CutPlot\Program\LoaderCorelCut.dll.

Try the following:
Declare Sub StartClient Lib "LoaderCorelCut.dll" (ByVal
Post by bojan
WindowHandle As Long)
and copy the fll to the script folder.

Other possibilities are:

Windows folder (I don't like this sulution),
Windows systemfolder(I don't like this sulution),
or every folder you want and include this folder in your search path.

HTH
Post by bojan
run time error-53
can't find a file : "...."
PLEASE HELP ME!
have a good day
Werner
--
Werner Perplies
www.weepee.biz/en/scripts.html (Last updated: March 27, 2005)
New: MultiSaveAsPro V. 1.06, bilingual, german manual
www.weepee.de/corel_scripts/multisaveaspro/downloads/setupger.exe
Screenshots and small howto:
http://www.weepee.eu/forum/en/venturascripts/viewtopic.php?p=3#3
bojan
2006-05-05 19:20:23 UTC
Permalink
Eureka!
I found it...
The plotter driver are too old! : (
I think that there are no solutions...
Post by Werner Perplies
Bojan,
Post by bojan
I have trouble with a program for CorelDraw11 that support plotter. The
for example the dll is LoaderCorelCut.dll and in a source file has a
reference as
Declare Sub StartClient Lib "CutPlot\Program\LoaderCorelCut.dll" (ByVal
WindowHandle As Long)
Not sure, but I'm think the programm will so look for the dll in
currentdrive(what ever it will be at the
moment)\CutPlot\Program\LoaderCorelCut.dll.
Declare Sub StartClient Lib "LoaderCorelCut.dll" (ByVal
Post by bojan
WindowHandle As Long)
and copy the fll to the script folder.
OK! I try to print the current dir with :

MsgBox ("DebugPrint" + CurDir$)

and then i put the .dll in this lib

after this i become error runtime error 48.

It can means that this library is out of date
so the Windows version are to new with my plotter driver
Post by Werner Perplies
Windows folder (I don't like this sulution),
Windows systemfolder(I don't like this sulution),
or every folder you want and include this folder in your search path.
HTH
Post by bojan
run time error-53
can't find a file : "...."
PLEASE HELP ME!
have a good day
Werner
--
Werner Perplies
www.weepee.biz/en/scripts.html (Last updated: March 27, 2005)
New: MultiSaveAsPro V. 1.06, bilingual, german manual
www.weepee.de/corel_scripts/multisaveaspro/downloads/setupger.exe
http://www.weepee.eu/forum/en/venturascripts/viewtopic.php?p=3#3
By...
Steven E. Eyrse
2006-05-05 23:54:44 UTC
Permalink
What make of plotter are you using? Perhaps there is a updated driver
for it.

Steve E.
Post by bojan
Eureka!
I found it...
The plotter driver are too old! : (
I think that there are no solutions...
bojan
2006-05-06 21:17:38 UTC
Permalink
I have a Roland CAMM1Pro cut-plotter
and it has no official update for CorelDRAW X3

the original CD has only a verison for v10 and an update for v11; from this
last i try to update the script that cut the ROLAND CutChoice program...

The plotter can works via Windows Driver but i got to setup manually every
time i plot...
Post by Steven E. Eyrse
What make of plotter are you using? Perhaps there is a updated driver
for it.
Steve E.
Post by bojan
Eureka!
I found it...
The plotter driver are too old! : (
I think that there are no solutions...
Steven E. Eyrse
2006-05-07 17:35:50 UTC
Permalink
You might want to look at some of the following:

http://www.dahedisign.com/plotter_signmaking_roland.html

I think the thing your running into is the way the visual basic
language is being interpeted by X3 vers v11. what you need is some
way to convert the CutChoice plugin for Draw to the new terms used by
X3.

I don't know if there is anything published yet that explains the
differences between the two ( 12 mostly kept 11's code) VB codes.
Steve E/
Post by bojan
I have a Roland CAMM1Pro cut-plotter
and it has no official update for CorelDRAW X3
the original CD has only a verison for v10 and an update for v11; from this
last i try to update the script that cut the ROLAND CutChoice program...
The plotter can works via Windows Driver but i got to setup manually every
time i plot...
bojan
2006-05-08 22:17:15 UTC
Permalink
Post by Steven E. Eyrse
http://www.dahedisign.com/plotter_signmaking_roland.html
I think the thing your running into is the way the visual basic
language is being interpeted by X3 vers v11. what you need is some
way to convert the CutChoice plugin for Draw to the new terms used by
X3.
I don't know if there is anything published yet that explains the
differences between the two ( 12 mostly kept 11's code) VB codes.
Steve E/
I have just made this (conversion from v11 script to v13)
and thanks, but i don't need a software because the plotter working fine
thru the printer driver but it has heavy limitations to comunicate with
application :
i must setup manually the parameters every time i plot
a fact that is more easy with the CutChoice PlugIn

Bye!
Werner Perplies
2006-05-06 04:10:08 UTC
Permalink
Bojan,
Post by bojan
Eureka!
I found it...
The plotter driver are too old! : (
I think that there are no solutions...
Why do think, the driver is too old?

You got the message "dll not found", an incompatible program should give
another message, or jaust a crash ;-)
Post by bojan
Post by Werner Perplies
Bojan,
Post by bojan
I have trouble with a program for CorelDraw11 that support plotter. The
for example the dll is LoaderCorelCut.dll and in a source file has a
reference as
Declare Sub StartClient Lib "CutPlot\Program\LoaderCorelCut.dll" (ByVal
WindowHandle As Long)
Not sure, but I'm think the programm will so look for the dll in
currentdrive(what ever it will be at the
moment)\CutPlot\Program\LoaderCorelCut.dll.
Declare Sub StartClient Lib "LoaderCorelCut.dll" (ByVal
Post by bojan
WindowHandle As Long)
and copy the fll to the script folder.
MsgBox ("DebugPrint" + CurDir$)
and then i put the .dll in this lib
after this i become error runtime error 48.
It can means that this library is out of date
so the Windows version are to new with my plotter driver
Post by Werner Perplies
Windows folder (I don't like this sulution),
Windows systemfolder(I don't like this sulution),
or every folder you want and include this folder in your search path.
HTH
Post by bojan
run time error-53
can't find a file : "...."
PLEASE HELP ME!
have a good day
Werner
--
Werner Perplies
www.weepee.biz/en/scripts.html (Last updated: March 27, 2005)
New: MultiSaveAsPro V. 1.06, bilingual, german manual
www.weepee.de/corel_scripts/multisaveaspro/downloads/setupger.exe
http://www.weepee.eu/forum/en/venturascripts/viewtopic.php?p=3#3
By...
have a good day
Werner
--
Werner Perplies
www.weepee.biz/en/scripts.html (Last updated: March 27, 2005)
New: MultiSaveAsPro V. 1.06, bilingual, german manual
www.weepee.de/corel_scripts/multisaveaspro/downloads/setupger.exe
Screenshots and small howto:
http://www.weepee.eu/forum/en/venturascripts/viewtopic.php?p=3#3
bojan
2006-05-06 21:24:57 UTC
Permalink
Post by Werner Perplies
Why do think, the driver is too old?
You got the message "dll not found", an incompatible program should give
another message, or jaust a crash ;-)
Post by bojan
after this i become error runtime error 48.
Post by bojan
run time error-53
which means "file not found error"
and is different from runtime error 48
that indicates an incopatibility in dll

at this point i don't know what can i do:
- wait for a driver upgrade of my plotter
- try to make the dll compatible
Werner Perplies
2006-05-07 04:02:59 UTC
Permalink
Bojan,
Post by bojan
Post by Werner Perplies
Why do think, the driver is too old?
You got the message "dll not found", an incompatible program should give
another message, or jaust a crash ;-)
Post by bojan
after this i become error runtime error 48.
Post by bojan
run time error-53
which means "file not found error"
and is different from runtime error 48
that indicates an incopatibility in dll
- wait for a driver upgrade of my plotter
- try to make the dll compatible
Another try:

Do you have tried one of my suggestions?

have a good day
Werner
--
Werner Perplies
www.weepee.biz/en/scripts.html (Last updated: March 27, 2005)
New: MultiSaveAsPro V. 1.06, bilingual, german manual
www.weepee.de/corel_scripts/multisaveaspro/downloads/setupger.exe
Screenshots and small howto:
http://www.weepee.eu/forum/en/venturascripts/viewtopic.php?p=3#3
bojan
2006-05-07 16:18:28 UTC
Permalink
Post by Werner Perplies
Bojan,
Post by bojan
Post by Werner Perplies
Why do think, the driver is too old?
You got the message "dll not found", an incompatible program should give
another message, or jaust a crash ;-)
Post by bojan
after this i become error runtime error 48.
Post by bojan
run time error-53
which means "file not found error"
and is different from runtime error 48
that indicates an incopatibility in dll
- wait for a driver upgrade of my plotter
- try to make the dll compatible
Do you have tried one of my suggestions?
Entschuldigung
i haven't understand...

I try to change the position of dll files and
i try to change the directory with VBA proc chDir()
and after this the error changes from 53 to 48

Danke und aufwiedersehen : )
Post by Werner Perplies
have a good day
Werner
--
Werner Perplies
www.weepee.biz/en/scripts.html (Last updated: March 27, 2005)
New: MultiSaveAsPro V. 1.06, bilingual, german manual
www.weepee.de/corel_scripts/multisaveaspro/downloads/setupger.exe
http://www.weepee.eu/forum/en/venturascripts/viewtopic.php?p=3#3
Werner Perplies
2006-05-08 09:27:59 UTC
Permalink
Post by bojan
Post by Werner Perplies
Bojan,
Post by bojan
Post by Werner Perplies
Why do think, the driver is too old?
You got the message "dll not found", an incompatible program should give
another message, or jaust a crash ;-)
Post by bojan
after this i become error runtime error 48.
Post by bojan
run time error-53
which means "file not found error"
and is different from runtime error 48
that indicates an incopatibility in dll
- wait for a driver upgrade of my plotter
- try to make the dll compatible
Do you have tried one of my suggestions?
Entschuldigung
no problem ;-)
Post by bojan
i haven't understand...
I try to change the position of dll files and
i try to change the directory with VBA proc chDir()
and after this the error changes from 53 to 48
Is the script Corel script or VBA?

Do you tried this?

Declare Sub StartClient Lib ----->"LoaderCorelCut"<----- (ByVal
WindowHandle As Long)
_AND_ copy #
LoaderCorelCut.dll to the same Folder, from which you calls the script.
Means the script must exist in that folder.

Then try this:

Declare Sub StartClient Lib ----->"LoaderCorelCut"<----- (ByVal
WindowHandle As Long) ALIAS "StartClient"

This is necessary, if target dll is case dependend.

Check, if StartClient exist in target dell and check spelling. You can do
this with the program Dependency Walker:

http://www.dependencywalker.com/
Post by bojan
Danke und aufwiedersehen : )
Viel Glück und einen schönen Tag ;-)
Post by bojan
Post by Werner Perplies
have a good day
Werner
--
Werner Perplies
www.weepee.biz/en/scripts.html (Last updated: March 27, 2005)
New: MultiSaveAsPro V. 1.06, bilingual, german manual
www.weepee.de/corel_scripts/multisaveaspro/downloads/setupger.exe
http://www.weepee.eu/forum/en/venturascripts/viewtopic.php?p=3#3
have a good day
Werner
--
Werner Perplies
www.weepee.biz/en/scripts.html (Last updated: March 27, 2005)
New: MultiSaveAsPro V. 1.06, bilingual, german manual
www.weepee.de/corel_scripts/multisaveaspro/downloads/setupger.exe
Screenshots and small howto:
http://www.weepee.eu/forum/en/venturascripts/viewtopic.php?p=3#3
bojan
2006-05-08 22:40:52 UTC
Permalink
Post by Werner Perplies
Post by bojan
Post by Werner Perplies
Bojan,
Post by bojan
Post by Werner Perplies
Why do think, the driver is too old?
You got the message "dll not found", an incompatible program should give
another message, or jaust a crash ;-)
Post by bojan
after this i become error runtime error 48.
Post by bojan
run time error-53
which means "file not found error"
and is different from runtime error 48
that indicates an incopatibility in dll
- wait for a driver upgrade of my plotter
- try to make the dll compatible
Do you have tried one of my suggestions?
Entschuldigung
no problem ;-)
Post by bojan
i haven't understand...
I try to change the position of dll files and
i try to change the directory with VBA proc chDir()
and after this the error changes from 53 to 48
Is the script Corel script or VBA?
Do you tried this?
Declare Sub StartClient Lib ----->"LoaderCorelCut"<----- (ByVal
WindowHandle As Long)
_AND_ copy #
LoaderCorelCut.dll to the same Folder, from which you calls the script.
Means the script must exist in that folder.
Declare Sub StartClient Lib ----->"LoaderCorelCut"<----- (ByVal
WindowHandle As Long) ALIAS "StartClient"
This is necessary, if target dll is case dependend.
Check, if StartClient exist in target dell and check spelling. You can do
http://www.dependencywalker.com/
Post by bojan
Danke und aufwiedersehen : )
Tschuss

I don't know if i can put the source code that i have
modified from the original Roland CutChoice script
but when i write the alias this just "dissolve" as a code
correction and
the VBA version 6.3 signal an syntax error when the "alias" string is putted
at the end of the line ; the right way is :

Declare Sub StartClient Lib "LoaderCorelCut" -----> ALIAS "StartClient"
<----- (ByVal WindowHandle As Long)

But i think that tje problem is in the version of dll or/and in the version
of Corel/VBA i own.
Werner Perplies
2006-05-09 03:39:38 UTC
Permalink
Bojan,
Post by bojan
Post by Werner Perplies
Post by bojan
Post by Werner Perplies
Bojan,
Post by bojan
Post by Werner Perplies
Why do think, the driver is too old?
You got the message "dll not found", an incompatible program should give
another message, or jaust a crash ;-)
Post by bojan
after this i become error runtime error 48.
Post by bojan
run time error-53
which means "file not found error"
and is different from runtime error 48
that indicates an incopatibility in dll
- wait for a driver upgrade of my plotter
- try to make the dll compatible
Do you have tried one of my suggestions?
Entschuldigung
no problem ;-)
Post by bojan
i haven't understand...
I try to change the position of dll files and
i try to change the directory with VBA proc chDir()
and after this the error changes from 53 to 48
Is the script Corel script or VBA?
Do you tried this?
Declare Sub StartClient Lib ----->"LoaderCorelCut"<----- (ByVal
WindowHandle As Long)
_AND_ copy #
LoaderCorelCut.dll to the same Folder, from which you calls the script.
Means the script must exist in that folder.
Declare Sub StartClient Lib ----->"LoaderCorelCut"<----- (ByVal
WindowHandle As Long) ALIAS "StartClient"
This is necessary, if target dll is case dependend.
Check, if StartClient exist in target dell and check spelling. You can do
http://www.dependencywalker.com/
Post by bojan
Danke und aufwiedersehen : )
Tschuss
I don't know if i can put the source code that i have
modified from the original Roland CutChoice script
but when i write the alias this just "dissolve" as a code
correction and
the VBA version 6.3 signal an syntax error when the "alias" string is putted
Ok, now I know, it's VBA, not Corel Script. This makes the difference by
using ALIAS,
Post by bojan
Declare Sub StartClient Lib "LoaderCorelCut" -----> ALIAS "StartClient"
<----- (ByVal WindowHandle As Long)
But i think that tje problem is in the version of dll or/and in the version
of Corel/VBA i own.
have a good day
Werner
--
Werner Perplies
www.weepee.biz/en/scripts.html (Last updated: March 27, 2005)
New: MultiSaveAsPro V. 1.06, bilingual, german manual
www.weepee.de/corel_scripts/multisaveaspro/downloads/setupger.exe
Screenshots and small howto:
http://www.weepee.eu/forum/en/venturascripts/viewtopic.php?p=3#3
Loading...