file reading directory issue - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

file reading directory issue

I would apprecaite it very much if anyone like to help me out on this.

It's very werid that in main frame unit file there is loadfromfile command and it works very good when I just use "****.***" without the exact file directory name since it's located in the same directory as project files. But in other units except for main frame the program just could not find this file. What's the reason? I already check the project options and includes that directory in search directory.

Help , please!

Comments

  • zibadianzibadian Posts: 6,349Member
    : I would apprecaite it very much if anyone like to help me out on this.
    :
    : It's very werid that in main frame unit file there is loadfromfile command and it works very good when I just use "****.***" without the exact file directory name since it's located in the same directory as project files. But in other units except for main frame the program just could not find this file. What's the reason? I already check the project options and includes that directory in search directory.
    :
    : Help , please!
    :
    :
    It's not important if the unit source code is in the search path, but it is important that the compiled DCU file is in the search path. You should check if the "Unit output dir" is also included in the "Search path".
  • michwwfmichwwf Posts: 5Member
    Probably I did not make myself clear. MY issue is the program could not find the sound or picture files to load into the program. I am sure those picture files are in the same directory as project files. I just did included the exact full directory name. There is no problem for "loadfromfile" to find it when coded in the main unit. But it doesn't work in other units.


Sign In or Register to comment.