Discussion:
Compile Error.PB/WIN 8.04
(too old to reply)
Olav
2009-09-29 11:04:00 UTC
Permalink
Hello,

On my system the compiler is not able to compile the "Interface
Explorer.bas" file supplied with the compiler and located in the
"C:\PBWin80\Samples\DDT\Interface Explorer\" folder.

The compiler wrongly triggers "Error 493 in .bas(0:000).....". And when the
error dialog box is closed the error message: "Cannot access resource
compiler results" is outputed to the debug/message window.

I have experiment a bit with this and this is what I found:

1: Moved the folder in question to "C:\Interface Explorer\". Compiles fine
from there
2. Removed the space in both the folder and filename in the original
location of the folder/file. Compiles fine

This sums up to this:
The compiler accept files- and folder names with spaces; only under some
circumstances, without it being clear what rules applies.

At least to me, but I'm not a Windows long file name guru.

Hopefully someone could comment on this.
--
Olav
Peter Manders
2009-09-29 12:17:53 UTC
Permalink
Post by Olav
Hello,
On my system the compiler is not able to compile the "Interface
Explorer.bas" file supplied with the compiler and located in the
"C:\PBWin80\Samples\DDT\Interface Explorer\" folder.
The compiler wrongly triggers "Error 493 in .bas(0:000).....". And when the
error dialog box is closed the error message: "Cannot access resource
compiler results" is outputed to the debug/message window.
1: Moved the folder in question to "C:\Interface Explorer\". Compiles fine
from there
2. Removed the space in both the folder and filename in the original
location of the folder/file. Compiles fine
The compiler accept files- and folder names with spaces; only under some
circumstances, without it being clear what rules applies.
At least to me, but I'm not a Windows long file name guru.
Hopefully someone could comment on this.
It looks like the call to rc.exe is the problem, I'm getting this:

---------------
RC : fatal error RC1107 : invalid usage; use RC /? for Help

Error 1 executing: C:\PBWIN80\BIN\rc.exe /iC:\PBWIN80\WINAPI;D:\PBLIB
C:\PBWin80\Samples\DDT\Interface Explorer\Interface Explorer.rc
---------------

It does work if I put qoutes around "C:\PBWin80\Samples\DDT\Interface
Explorer\Interface Explorer.rc" and start rc.exe from a cmd prompt.

So the problem isn't the compiler or rc.exe, it looks like someone
forgot to add quotes to the call to rc.exe in case of space(s) in the
filename. Funny that it took this long to surface, I guess most
programmers are like me and still don't like to put spaces in their
filenames.
--

Peter Manders.

You're on Earth, there's no cure for that.
Olav
2009-09-29 15:27:04 UTC
Permalink
Post by Peter Manders
Post by Olav
Hello,
On my system the compiler is not able to compile the "Interface
Explorer.bas" file supplied with the compiler and located in the
"C:\PBWin80\Samples\DDT\Interface Explorer\" folder.
The compiler wrongly triggers "Error 493 in .bas(0:000).....". And when the
error dialog box is closed the error message: "Cannot access resource
compiler results" is outputed to the debug/message window.
1: Moved the folder in question to "C:\Interface Explorer\". Compiles fine
from there
2. Removed the space in both the folder and filename in the original
location of the folder/file. Compiles fine
The compiler accept files- and folder names with spaces; only under some
circumstances, without it being clear what rules applies.
At least to me, but I'm not a Windows long file name guru.
Hopefully someone could comment on this.
---------------
RC : fatal error RC1107 : invalid usage; use RC /? for Help
Error 1 executing: C:\PBWIN80\BIN\rc.exe /iC:\PBWIN80\WINAPI;D:\PBLIB
C:\PBWin80\Samples\DDT\Interface Explorer\Interface Explorer.rc
---------------
It does work if I put qoutes around "C:\PBWin80\Samples\DDT\Interface
Explorer\Interface Explorer.rc" and start rc.exe from a cmd prompt.
So the problem isn't the compiler or rc.exe, it looks like someone
forgot to add quotes to the call to rc.exe in case of space(s) in the
filename. Funny that it took this long to surface, I guess most
programmers are like me and still don't like to put spaces in their
filenames.
--
Peter Manders.
You're on Earth, there's no cure for that.
Yes, you are right. It works from the command line; with quotes around, but
one can't use quotes in the IDE.
Anyone who know if the problem is fixed in the latest version?
--

Loading...