From: =?windows-1250?Q?Ladislav_Dvo=F8=E1k?= To: Subject: crashed when float = int / 2 Date: Mon, 19 Nov 2001 16:02:34 +0100 Message-ID: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C17113.9A9296E0" X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2469.0002 Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C17113.9A9296E0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit Hi, I have a application. When I run this application in Windows 95 or in DOS (with cwsdpmi.exe), he works without problem. When I this application run on barcode scanner Falcon 330 with ROM-DOS 6.22 and AMD Elan AM486 processor I have this problem. long vyhledzbo(char ean[20]) { FILE *ciselnik; int vpom,pozmez,prv,pzaznamu,pruchodu=18; long kurszmm,kurszm,vpozice; char cean[20]; float krok; int delkavety = 102; ciselnik = fopen("expean.txt","r"); fseek (ciselnik,-delkavety,SEEK_END); pzaznamu = (ftell(ciselnik) / delkavety) + 1; krok = pzaznamu / 2; On line >krok=pzaznamu /2;< program crashed. I think, it is brought about this : krok (is float) = pzaznamu (is int). I don't know how fix this problem. Thank you, Lada ------=_NextPart_000_0000_01C17113.9A9296E0 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable

Hi,
I have a application. When I run this application in Windows 95 or in = DOS
(with cwsdpmi.exe), he works without problem. When I this application = run on
barcode scanner Falcon 330 with ROM-DOS 6.22 and AMD Elan AM486 = processor I
have this problem.

long vyhledzbo(char ean[20])
{
FILE *ciselnik;
int vpom,pozmez,prv,pzaznamu,pruchodu=3D18;
long kurszmm,kurszm,vpozice;
char cean[20];
float krok;
int delkavety =3D 102;
ciselnik =3D fopen("expean.txt","r");
fseek (ciselnik,-delkavety,SEEK_END);
pzaznamu =3D (ftell(ciselnik) / delkavety) + 1;
krok =3D pzaznamu / 2;

On line >krok=3Dpzaznamu /2;< program crashed. I think, it is = brought about
this : krok (is float) =3D pzaznamu (is int). I don't know how fix = this
problem.

Thank you,

Lada

------=_NextPart_000_0000_01C17113.9A9296E0--