Click here to Skip to main content
15,914,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow can i chk the file is readonly or not? Pin
Le@rner3-Sep-09 1:40
Le@rner3-Sep-09 1:40 
AnswerRe: How can i chk the file is readonly or not? Pin
Michael Schubert3-Sep-09 1:44
Michael Schubert3-Sep-09 1:44 
GeneralRe: How can i chk the file is readonly or not? Pin
Le@rner3-Sep-09 1:57
Le@rner3-Sep-09 1:57 
GeneralRe: How can i chk the file is readonly or not? Pin
Michael Schubert3-Sep-09 2:07
Michael Schubert3-Sep-09 2:07 
GeneralRe: How can i chk the file is readonly or not? Pin
Richard MacCutchan3-Sep-09 2:08
mveRichard MacCutchan3-Sep-09 2:08 
GeneralRe: How can i chk the file is readonly or not? Pin
Le@rner3-Sep-09 2:42
Le@rner3-Sep-09 2:42 
QuestionAssociating an extension to a MFC application - advanced Pin
BadJerry3-Sep-09 1:17
BadJerry3-Sep-09 1:17 
AnswerRe: Associating an extension to a MFC application - advanced Pin
Richard MacCutchan3-Sep-09 2:15
mveRichard MacCutchan3-Sep-09 2:15 
GeneralRe: Associating an extension to a MFC application - advanced Pin
BadJerry3-Sep-09 2:47
BadJerry3-Sep-09 2:47 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Richard MacCutchan3-Sep-09 23:46
mveRichard MacCutchan3-Sep-09 23:46 
AnswerRe: Associating an extension to a MFC application - advanced Pin
Iain Clarke, Warrior Programmer3-Sep-09 3:49
Iain Clarke, Warrior Programmer3-Sep-09 3:49 
GeneralRe: Associating an extension to a MFC application - advanced Pin
BadJerry3-Sep-09 4:11
BadJerry3-Sep-09 4:11 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Iain Clarke, Warrior Programmer3-Sep-09 4:28
Iain Clarke, Warrior Programmer3-Sep-09 4:28 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Michael Schubert3-Sep-09 5:04
Michael Schubert3-Sep-09 5:04 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Iain Clarke, Warrior Programmer3-Sep-09 8:54
Iain Clarke, Warrior Programmer3-Sep-09 8:54 
GeneralRe: Associating an extension to a MFC application - advanced Pin
Michael Schubert3-Sep-09 10:48
Michael Schubert3-Sep-09 10:48 
QuestionHard Disk Internal Test Pin
Abinash Mohanty2-Sep-09 22:44
Abinash Mohanty2-Sep-09 22:44 
AnswerRe: Hard Disk Internal Test Pin
Stuart Dootson2-Sep-09 23:35
professionalStuart Dootson2-Sep-09 23:35 
QuestionRe: Hard Disk Internal Test Pin
David Crow3-Sep-09 2:35
David Crow3-Sep-09 2:35 
AnswerRe: Hard Disk Internal Test Pin
Hamid_RT3-Sep-09 3:36
Hamid_RT3-Sep-09 3:36 
QuestionIsAppThemed returns FALSE, should return TRUE Pin
andrew_dk2-Sep-09 22:39
andrew_dk2-Sep-09 22:39 
AnswerRe: IsAppThemed returns FALSE, should return TRUE Pin
Moak2-Sep-09 23:19
Moak2-Sep-09 23:19 
GeneralRe: IsAppThemed returns FALSE, should return TRUE Pin
andrew_dk3-Sep-09 8:33
andrew_dk3-Sep-09 8:33 
QuestionRe: IsAppThemed returns FALSE, should return TRUE Pin
Randor 3-Sep-09 10:09
professional Randor 3-Sep-09 10:09 
Questioncompile error_2 Pin
programmer2022-Sep-09 22:12
programmer2022-Sep-09 22:12 
Hi,
I am trying to compile this program with Visual Studio C++ 2008 as the compiler in Windows.

It is the program:
#include <stdio.h>

int main()
{
FILE *fichero;
char letra;

fichero = fopen("origen.txt","r");
if (fichero==NULL)
{
printf( "No se puede abrir el fichero.\n" );
exit( 1 );
}
printf( "Contenido del fichero:\n" );
letra=getc(fichero);
while (feof(fichero)==0)
{
printf( "%c",letra );
letra=getc(fichero);
}
if (fclose(fichero)!=0)
printf( "Problemas al cerrar el fichero\n" );
}
It is the error message:
>1.......warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
>c:\archivos de programa\microsoft visual studio 9.0\vc\include\stdio.h(237) : vea la declaración de 'fopen'
>...error C3861: 'exit': no se encontró el identificador
--------
Could anyone help me?

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.