// hello.cpp

//



#include "stdafx.h"



int hello()

{

    FILE * binFileH;

    char binFile[] = "\\binfile";

    char buf[512];



    if ( (binFileH = fopen(binFile, "rb")) == NULL )

    {

        printf("can't open file %s!\n", binFile);

        return 1;

    }



    memset(buf, 0, sizeof(buf));

    fread(buf, sizeof(char), 1024, binFileH);



    printf("%08x %d\n", &buf, strlen(buf));

    getchar();

    

    fclose(binFileH);

    return 0;

}



int WINAPI WinMain( HINSTANCE hInstance,

                    HINSTANCE hPrevInstance,

                    LPTSTR    lpCmdLine,

                    int       nCmdShow)

{

    hello();

    return 0;

}

