Howdy, Stranger!

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


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

stankostanko Member Posts: 4
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:
(C) Copyright Microsoft 1983,1984,1985,1986,1987,1988

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

Stanko Nikolic


  • Pappy1942Pappy1942 Member Posts: 46
    The URL below may be what you need.,1410,16431,00.html

    You learn something new everyday.

  • stankostanko Member Posts: 4
    : Hi,
    : The URL below may be what you need.
    : Pappy
    : You learn something new everyday.
    The site:,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.

  • Chris BrownChris Brown USAMember Posts: 4,624 ✭✭

    __ < /> free video tutorials and ebooks about / C++ Visual Basic .NET Assembly Visual Basic Python Objective-C Perl Delphi Go Ruby C# PL/SQL Scratch Java JavaScript PHP R Swift MATLAB C Logo Scala Clojure Crystal D SAS Rust Scheme Lua Awk Bash LabVIEW COBOL Dart Fortran Erlang Kotlin Ada Apex Prolog Lisp Julia ABAP VBScript Transact-SQL ML F# FoxPro Hack Alice / ______

Sign In or Register to comment.