![]() |
|
This thread is locked; no one can reply to it.
![]() ![]() |
1
2
|
i can't use "fopen" function in my program |
marcin
Member #5,814
May 2005
|
Quote: ... doesn't complete path elements (or makes it bad) If you have it try use it. Some XPs (new or with updates) has it but it works terrible. |
gillius
Member #119
April 2000
|
Tab completion for Windows XP works for me (but it doesn't work identical to Linux! It is different but it works as designed). It also exists in Win2000, with a registry "hack" Gillius |
marcin
Member #5,814
May 2005
|
Quote: Tab completion for Windows XP works for me ...
OK, I have habits from Linux. EDIT: (Habits are the second nature of Human.) Quote: but it works as designed
Everything works as designed... |
sofi saltana
Member #5,962
June 2005
|
the files i have in my folder are: (note that this folder contains all the files that were generated from other compilations) |
HoHo
Member #4,534
April 2004
![]() |
-teraes.txt vs if ((fichero=fopen("tareas.txt","r+t")) ==NULL) __________ |
marcin
Member #5,814
May 2005
|
Quote: Is that a typo?
Good work Sherlock HoHolmes !!! (But I said at start that he has not tareas.txt) |
sofi saltana
Member #5,962
June 2005
|
Marcin >(But I said at start that he has not tareas.txt) i do have tareas.txt in the same folder i have my executable. but i still can't get this file opened. Please try to help. |
marcin
Member #5,814
May 2005
|
Quote: Please try to help. Did you run executable from command line window and with printf(...) in code? EDIT: Can you compile this example: And run it. |
sofi saltana
Member #5,962
June 2005
|
yes i did but my program never execute the code lines that suppose to open file and report if the file is opened. And as you said i tried with allegro_message and printf but i get the same result |
marcin
Member #5,814
May 2005
|
And what about the code from my previous post (the EDIT section)? Quote: ... my program never execute the code lines that suppose to open file and report if the file is opened. But if it's not opened you should obtain message. EDIT: I just have compiled you code. I run it and the file is opened OK. But there is another problem. GUI is opened and closed immediately. And this appear after: do_dialog(the_dialog, -1);
|
sofi saltana
Member #5,962
June 2005
|
i compiled it and it gives no problem (it worxed). I already tried this earlier. EDIT: i cant get it working in my computer y would like to get the code of the open file to ensure how is the code that works(because i changed my code many times, maybe it will work even in my computer). |
marcin
Member #5,814
May 2005
|
Can you replace your code with this: And run it from command line. Read EDIT in my previous post about problem with the GUI. EDIT: I have question: In Allegro 4.0.3 allegro_message() works without set_gfx_mode() ? EDIT: (If do you use 4.0.3 version of course) |
Evert
Member #794
November 2000
![]() |
Quote: In Allegro 4.0.3 allegro_message() works without set_gfx_mode() ? Yes. Actually, you should only use it if you're not in graphics mode. |
sofi saltana
Member #5,962
June 2005
|
ok! you really gave me the key to the problem i have. The problem is a big fault i made at creating the txt file. Unconsciously i created a tareas.txt.txt file, thats why i couldn't get my file opened, because i never called it. i'm really glade to have found these place. thank you all of you speccially MARCIN & REYBRUJO both of them helped me trough lots of messages. |
marcin
Member #5,814
May 2005
|
Quote: As Marcin said, and Evert confirmed (thank you both for the help), allegro_message don't work in graphics mode.
I'm only asked that it works without graphics mode. Evert said that we shouldn't use it in gfx mode.
|
|
1
2
|