G
Guest
Does the standard version not allow opening of files? I copied and pasted code from help files and was able to compile without errors. It runs OK, but it will not open a file. The output I get is 'The file 'data' was not opened'. Is it necessary to own professional version to be able to open a disk file?
if( (fp = fopen( "GYX.SRV", "r" )) == NULL )
{
tempi=sprintf(textString,"The file 'data' was not opened\n");
TextOut(hdcWork, 1, 1, textString, tempi);
SelectObject(hdcWork, hdc);
BitBlt(hdc, 0,0, 630,454, hdcWork, 0, 0, SRCCOPY);
printf( "" );
.....
if( (fp = fopen( "GYX.SRV", "r" )) == NULL )
{
tempi=sprintf(textString,"The file 'data' was not opened\n");
TextOut(hdcWork, 1, 1, textString, tempi);
SelectObject(hdcWork, hdc);
BitBlt(hdc, 0,0, 630,454, hdcWork, 0, 0, SRCCOPY);
printf( "" );
.....