🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.upgrade
Article #401

Re: Opening older .IDE files in Dev Studio 2006 IDE

#401
From: Ed Mulroy
Date: Tue, 10 Oct 2006 19:34
69 lines
3889 bytes
It shouldn't take days or even a day.  Assuming that you end up with only 10 
or so projects then only an hour or two should do it.

You are coming from Borland C++, a very old compiler that did not have the 
VCL.  Instead Borland C++ used OWL (Object Windows Library) and if the code 
uses OWL then you can't build the projects with BDS2006.

Start by opening a command window and changing to the directory in which the 
files are found.

Use grep determine if OWL is used: (-lw below is lower case -LW)
      grep -lw "owl.h" *.cpp *.h

If it finds anything then you are done.  You can't do it with BDS2006.  Go 
find a copy of Borland C++.  Ebay is a good source.  Try to find Borland C++ 
(BC++) of version 4.52 or version 5.02  (Note that due to a quirk not worth 
going into, 4.53 is actually older and not as desirable than 4.52)

If OWL is not an issue then determine which files contain one of main or 
WinMain.
        grep -lw "main" *.c *.cpp
        grep -lw "WinMain" *.c *.cpp

Each of those files will be a project.  Repeat the following for each of the 
files listed:

  Create a unique directory name
       md  1
  Copy the file to the new directory
       copy /v filename.cpp 1\.
  Start the IDE
  Select File|New and double click Console Wizard (may be
    File|New|Other depending upon compiler version)
  If the file contained 'main' then uncheck GUI and if it contained
  'WinMain' then check GUI
  Check Specify Project Source and add the file IN THE NEW DIRECTORY
  Click Ok
  Select File|Save_All and save to the NEW DIRECTORY
  Select Project|Make
  Copy down the names of some of the items reported as not having
    been found
  Switch to the command window
  Search for which files contain those items
      grep -lw "ItemName" *.c *.cpp *.rc *.def
  Copy the files found to the NEW DIRECTORY
      note that you should not 'move' them as some files might
      be used in more than one project
  Switch back to the IDE and add them with Project|Add_to_project
    making sure that you added them from the NEW DIRECTORY and
    not from the original one

.  Ed

> James Birchall wrote in message
> news:452bbfd0$1@newsgroups.borland.com...
>
> The problem is that there are a number of compilation units
> (a quick check finds 5 mains) all tossed together in a common
> directory and so "adding by hand" is difficult and requires a
> couple of days of analysis to determine which files go with which.
> The .IDE file, I'm told, is an older Turbo C++ file and should
> contain the relationships between the various .h/.c/.rc files.
>
> The problem is opening that file and viewing that relationship.
>
> From there, it's relatively straightforward to import the new files
> into the proper projects in BDS.
>
> Any help would be appreciated.
Technical Details
Message-ID: <452bf5c9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4526ce61@newsgroups.borland.com> <4527986f@newsgroups.borland.com> <452bbfd0$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10529a,89f572ec47d4e695
X-Google-Attributes: gid10529a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Ed Mulroy" <dont_email_me@bitbuc.ket>
Newsgroups: borland.public.cppbuilder.upgrade
References: <4526ce61@newsgroups.borland.com> <4527986f@newsgroups.borland.com> <452bbfd0$1@newsgroups.borland.com>
Subject: Re: Opening older .IDE files in Dev Studio 2006 IDE
Date: Tue, 10 Oct 2006 15:34:30 -0400
Lines: 71
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2869
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962
NNTP-Posting-Host: 66.57.117.102
Message-ID: <452bf5c9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1160508873 66.57.117.102 (10 Oct 2006 12:34:33 -0700)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail