0

I tried to modify an old application. This application was programmed in Borland C++, and the last programmer lost the header files (.h). I can not compile the program with new modifications. The folder of the application project contains the last object files (.obj).

My question is:

Can I convert those object files to header files?

I tried to convert the files using obj2opengl.pl, but it did not work.

Remy Lebeau
  • 555,201
  • 31
  • 458
  • 770
  • 2
    ***Can I convert those object files to h files?*** No. – drescherjm Feb 21 '18 at 00:45
  • ***I try to convert the files using obj2opengl.pl but it does not work.*** That is a different type of obj file. Has nothing to do with c++. – drescherjm Feb 21 '18 at 00:46
  • 2
    This would be called "decompiling". It can be 'done', using the right tools, fsvo 'done'. In my experience, it's limited at best.. usually better to get a gist and it definitely *won't* result in the 'original header files'. – user2864740 Feb 21 '18 at 00:46
  • If you don't have the source code that was used to compile the object files, then you will have to reverse engineer the object files, such as with a tool like IDA, and then manually create new header files that are compatible with the existing object files. – Remy Lebeau Feb 21 '18 at 02:11
  • All of the content of all four of those comments should be in the answer section. – Lightness Races in Orbit Feb 21 '18 at 02:43
  • Thank you for all your comments, I think it is better try for other way and make a new header files. – Josh Eagle Feb 21 '18 at 15:12

0 Answers0