Jump to content

Can't find files in C


Recommended Posts

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. :}

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...