How can I read the gwbasic double precision fields in Borland C++?

I am interesting how can I read the gwbasic double precision fields in Borland C++. I need to read gwbasic files in C++. The integers and single precision fields should be the same, but the difference is in the double values. I need the code in C++ which will convert double values in gwbasic to the same double value in C++.

My gwbasic is:
GW-BASIC 3.23
(C) Copyright Microsoft 1983,1984,1985,1986,1987,1988

I have Borland C++ 3.1 and C++ Builder 5.0

Thanks.
Stanko Nikolic
snikolic@infosky.net

Comments

  • Hi,
    The URL below may be what you need.

    http://community.borland.com/article/0,1410,16431,00.html



    Pappy
    You learn something new everyday.

  • : Hi,
    : The URL below may be what you need.
    :
    : http://community.borland.com/article/0,1410,16431,00.html
    :
    :
    :
    : Pappy
    : You learn something new everyday.
    :
    :
    Thanks!
    The site:
    http://community.borland.com/article/0,1410,16431,00.html

    solved the problem.
    But if anyone wants to use the functions listed in the site, note that the small changes must be made. Wherever you find strncpy function replace it with memcpy, because it won't work with the first one. And there is still a little problem remain, the function which converts MS double to Borland double returns sometimes 1, sometimes 0, but the function works corectly all the time. The indicator of the result isn't always good.
    But every number is well converted and that's the most important.
    If someone is more interesting about this, I will send him test file and cpp programm.

    Stanko Nikolic.
    snikolic@infosky.net


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories