PDA

View Full Version : Error Code 31


Hank
26th July 2010, 06:41 PM
Hi David...

When I do a syntax check from the VitaminC editor, I get the messages:
"Problems trying to run syntax checker" and "Problems trying to run batch file with error code 31".

This is on the step1 code from the manual, and it happens weather there is an error in the code or not. Borland C++ 5.5 is installed in the default directory, and both it and VitaminC are on my "C" disk.

I have tried cleaning up my registry, but to no avail...

Help... Please!!

Hank

David Samborsky
27th July 2010, 02:12 AM
What OS are you running ?

Hank
27th July 2010, 06:45 AM
I'm running Windows XP, service pack 3.

David Samborsky
27th July 2010, 12:22 PM
Try running Vitamin-C in administrator mode.

ie right click on the Vitamin-C icon and select properties -> compatibility mode -> Run this program as administrator = enabled

Hank
27th July 2010, 01:07 PM
I tried what you suggested. The properties->compatibility window does not have an administrator choice. There are "compatibility modes" (4 of them).
I tried all four and the results were always the same error.

I have administrator privilege for my whole system ( I'm the only user).

David Samborsky
27th July 2010, 02:33 PM
Yes you don't have this option in XP.

What antivirus software are you running ?

Hank
27th July 2010, 02:59 PM
I'm using "BitDefender Total Security 2010".

I tried turning off all security, but still the same problem...

Hank

Hank
28th July 2010, 09:16 AM
Hi David...

As an experiment, I tried to run C++ from the C:\ prompt. My source code is "MySimple.C" which the first 5 lines of "Simple.C", and is in C:\VitaminCscript library. My command at the Dos prompt was "BCC32 C:\VITAMINCSCRIPT\MYSIMPLE.C". The result was four errors FROM BCC32, the things you would expect from an incomplete C++ program. (i not defined, etc.). Since these error messages came from C++ 5.5, I know that the programs are in place, and for some reason the linkage from the syntax check routine of VitaminC is not getting through to Borland C++.

I have the paths set up through AUTOEXEC.BAT. Hope this helps.

Hank

David Samborsky
29th July 2010, 07:06 AM
According to Windows documentation the error is produced because their is no action associated with the batch file.

SE_ERR_NOASSOC

There is no application associated with the given file name extension. This error will also be returned if you attempt to print a file that is not printable.
I found this fix on another forum and have not tried it myself. Download and Run the BAT File Association fix from this site.

http://www.dougknox.com/xp/file_assoc.htm

regards
david

Hank
29th July 2010, 11:23 AM
Hi David...

That did the trick!! Works like a champ...

Thanks for all your help.

Regards..
Hank