define _CRT_SECURE_NO_DEPRE CATE include stdafx include iostream inclu

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#define _CRT_SECURE_NO_DEPRECATE
#include "stdafx.h"
#include <iostream>
#include <cstring>
using namespace std;
unsigned int *buffer;
int _tmain(int argc, _TCHAR* argv[])
{
readfile("sdf");
return 0;
}
void readfile(string path) {
FILE *f = fopen(path, "rb");
buffer = new unsigned int[132 * 65]; // ask about size of proccessing photo. Answered: Full HD
fseek(f, 54, SEEK_SET);
fread(buffer, 132 * 65 * 4, 1, f);
fclose(f);
}