IonicWind Software

IWBasic => General Questions => Topic started by: arono on March 08, 2017, 03:08:08 PM

Title: Compiler error: (45) Error: Undefined variable OutputFilename
Post by: arono on March 08, 2017, 03:08:08 PM
I've created a new source file and saved it to my directory, but when I try to compile it I get this error:
(45) Error: Undefined variable OutputFilename

What does this mean? 
Title: Re: Compiler error: (45) Error: Undefined variable OutputFilename
Post by: arono on March 08, 2017, 03:13:00 PM
Figured it out.... Sorry for taking up disk space with this post.
Title: Re: Compiler error: (45) Error: Undefined variable OutputFilename
Post by: Brian on March 09, 2017, 03:28:21 AM
Arono,

Your OutputFilename should really be defined as an ISTRING, ie, ISTRING OutputFilename[260]

It is to do with the MAX_PATH constant defined in Windows, although you can get away with
just writing STRING OutputFilename most of the time

Brian
Title: Re: Compiler error: (45) Error: Undefined variable OutputFilename
Post by: Andy on March 09, 2017, 06:30:29 AM
Arono,

Brian is correct, a normal string is 255 characters, if you want to be sure use ISTRING - with this you can make a "string" much larger to take into account for long path names etc.

Andy.
:)