Original Post
I tried the following code in mscv++:
#include "stdio.h"
#include "windows.h"
int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
FILE* f;
f=fopen("wg.txt","r");
if(!f) MessageBox(0,"","",MB_OK);
fclose(f);
return 0;
}
That makes sense to me but it doesn''t load right and displays that message box. The file wg.txt exists - I''ve checked and double checked. Does anyone have an idea why it doesn''t load correctly?
---
Brent Gunning | My Site
Brent Gunning | My Site