Thread: Help (programming in dbase 3 & C)

  1. #1
    Registered User
    Join Date
    Jul 2005
    Location
    SE Wisconsin
    Posts
    2

    Question Help (programming in dbase 3 & C)

    Hi,

    I don't know if anyone can help but I was given a project to find an issue in a very very old (DOS) application that 1/2 of our users still use. This app was developed using files that end with .prg and .c extentions. I have been told to use Clipper 5.2 to debug and then Clipper "summer '87" to do the actual compile/linking. I have never heard of this before and do not know how to manual compile/link or debug. (I usually code in VB 6.0)

    My question is: Does anyone have any idea of any software that is newer but can import this older code into something newer that can compile and debug non-manually? Or if someone knows of any websites that can help me to learn this older code process?

    Anything would be helpful.

    Thanks,
    Becky

  2. #2
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    you mean this clipper 5.2?
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

  3. #3
    Registered User
    Join Date
    Jul 2005
    Location
    SE Wisconsin
    Posts
    2
    yes, that clipper

    Sample from the .prg code:

    Code:
    *
    *  First load data into "input" arrays in Local Currency
    *
    
    qorg(prodobj, th_pgn() )
    
    queryprod(@prodobj)
    
    
    if !hasdata(prodobj)
       * no data!
       if Excflag > 3                                && force fail of exc. condition
          Prodok= .f.                                && for products w/o data
       endif
       return                                        && ABORT PROCESSING
    endif
    Sample from the .c code:

    Code:
    void calc_pvar(DFAORG * dfa)
    
    /*     -------------------------------------------------------------
    	performs price variance calculations upon DFA org;
    	assumes logical checks have already been performed.
           -------------------------------------------------------------     */
    {
       double year_sales = 0.000;
       double year_units = 0.000;
       double benchprice;
       double unit_variance;
       double variance;
       register int i;
       double * sales;          /* pointer to appropriate array */
       double * base_sales;     /* pointer to appropriate array */
       int need_conversion;
    
       /* point to appropriate arrays for calculations */
       if ( HI_INFLATION && (dfa->currency == 'D')  )
       {
    	sales = Usd.sales_at_base;
    	base_sales = Usd.base_sales;
       }
       else
       {
    	sales = dfa->sales;
    	base_sales = dfa->base_sales;
       }
    
       need_conversion = (  (dfa->currency == 'D') && LO_INFLATION  );
    Last edited by BeckyBair; 07-18-2005 at 12:39 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Is there a dBase IV (*.dbf) C library?
    By IdunnO in forum C Programming
    Replies: 1
    Last Post: 02-16-2006, 06:25 AM
  2. dBase Driver for .Net
    By TheMajorRager in forum C# Programming
    Replies: 2
    Last Post: 10-05-2005, 06:22 PM
  3. problems accessing an external file
    By tony24tone in forum C Programming
    Replies: 2
    Last Post: 05-16-2004, 06:51 PM
  4. Question
    By moonwalker in forum A Brief History of Cprogramming.com
    Replies: 6
    Last Post: 07-28-2002, 11:02 AM
  5. dbase error
    By iain in forum A Brief History of Cprogramming.com
    Replies: 2
    Last Post: 08-13-2001, 09:09 AM