Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

R6002 Error "Floating point not loaded"

Status
Not open for further replies.

gismo

Technical User
Jul 24, 2002
35
US
I'm trying to convert some C programs into a dll in Visual c++. The subs will be called from a visual basic program. when the sub readfile is called I get the error R6002 Floating point not loaded. if I change the floats to int and change the data the dll works fine. Can anyone help me with this. I stripped the code down to barebones to make this post easier.

#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>


void _stdcall readfile(LPCSTR infile)
{


int line,column,ncol,nrow;
double nx,ny,ndat,ncell;
char row[6],col[6],x[10],y[10],cell[9],dat[13], char inputFilename[256];

FILE *ifp;

strcpy(inputFilename,infile);

ifp=fopen(inputFilename, &quot;r&quot;);

/* Read input file */
fscanf(ifp,&quot;%s%d%s%d%s%lf%s%lf%s%lf%s%lf&quot;,col,&ncol,row,&nrow,x,&nx,y,&ny,cell,&ncell,dat,&ndat);

}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top