Hello,
I'm learning C
(But i already know C++
and developing some simple applications just to learn better, but when i try to execute my application on my Jornada 720 i got an error, see the attachement. And here is my code:
// Remove.cpp : Defines the entry point for the application.
#include "stdafx.h"
#include <stdio.h>
#include <windows.h>
bool Delete
(LPCWSTR File
); // Prototype
int WINAPI WinMain
( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow
)
{
LPCWSTR sFile;
printf
("Enter The File To Delete: "
;
scanf
("%s", sFile
);
Delete
(sFile
); // Filename to delete
return 0;
}
bool Delete
(LPCWSTR File
)
{
DeleteFile
(File
);
return DeleteFile;
}
What is Wrong?
Thanks,
Nathan Paulino Campos
(CAPT0000.JPG) Attachments
----------------
CAPT0000.JPG (27KB - 5 downloads)