Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug... I think
#1
Alright... I hope this is in the right forum...

Code:
Const Directory$="Blah\"
#Include Directory$+"Main.Bas"

Quote:Error 24
File not found, "Directory"

That is a bug right?

The #Include metacommand apparently works with or without quotations, and that means that I can't have a string variable as the filename. Is that on purpose? Because if it is, I have to change about 50 lines instead of just changing the Directory$ constant.
Reply
#2
Well it turns out that it doesn't actually matter to my program after all, but I'm still curious as to whether or not this is actually a bug.
Reply
#3
nop not a bug const are setup for the exe when it loaded into memorey. while include is more of a preprocess type command that directs the compiler to add the file you want to include to the beginning of the model your in. so of cource fbc well have no clue what your doing. also #include won't expected #define ether so your going to have to place the relative path in your self with all your include's
Reply
#4
alright, thanks for the info!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)