Нашел код нативной конвертации http://support.microsoft.com/kb/129209
| Код | /* Compile options needed: none */
#include <stdio.h>
void main(void) { FILE *inFile; char buffer[10]; long double Newdbl;
inFile = fopen("data","rb"); fread(buffer, 10, 1, inFile); // reads in 10-byte long double fclose(inFile);
// This moves the contents of the buffer into the floating point // register, which then then takes care of the automatic convertion // back to a 8-byte long double
_asm { fld TBYTE PTR buffer; fstp Newdbl; } }
|
|