MSFN Forum: Can't find files in C - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Can't find files in C fopen() fails depending on path Rate Topic: -----

#1 User is offline   HyperHacker 

  • Just plain nuts
  • PipPipPip
  • Group: Members
  • Posts: 473
  • Joined: 01-May 05

  Posted 21 May 2005 - 11:25 PM

I've run into this problem with two different programs now. Say I do something like this:
fp = fopen("file.ini","rt");
When I'm testing the program in the path E:\DOS\MinGW\bin, it works fine. But if I copy it to another path, such as E:\Windows\System32, it's no longer able to find the file. :( This shouldn't be a problem as I'm using relative paths (the file should be in the same directory as the program) and even have a copy of the file in \bin where it worked before, but it never seems to work.

Off topic I don't suppose anyone knows of replacements for the language bar or how I could change the IME mode through code? XP's default language bar is way buggy and makes it a bit of a pain to type in Japanese. :}


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy