April 24, 2024, 07:12:18 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Compiler error: (45) Error: Undefined variable OutputFilename

Started by arono, March 08, 2017, 03:08:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

arono

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? 

arono

Figured it out.... Sorry for taking up disk space with this post.

Brian

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

Andy

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.
:)
Day after day, day after day, we struck nor breath nor motion, as idle as a painted ship upon a painted ocean.