Hello,
I'm building dome very simple projects in eVC++, just to test they, but when i try to do a file remove project, i'm getting some errors, here is the code:
// Remove.cpp
//
#include "stdafx.h"
#include <stdio.h>
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
if( remove( "test.txt" ) !=0 )
printf( "Error When Deleting File..." );
else
puts( "File Successfully Deleted!" );
return 0;
}
And here is the compiler log:
C:\...\Remove.cpp(12) : error C2065: 'remove' : undeclared identifier
What Is Wrong?
Thanks,
Nathan Paulino Campos