#include #include #include #include "dlx.h" main() { dlxheader dh; FILE* myfile=fopen("dlxtest.dlx","rb"); fread(&dh, sizeof(dh),1,myfile); if(dh.magic!=DLX_MAGIC) { cout << "Invalid DLX!" << endl; } void* data=malloc(dh.prgsize); // add import loader... fread(data, dh.prgsize, 1,myfile); for(long l=0; l