ARTICLE AD BOX
I use C++Builder 11.3 and I want to compile a project that was written for 'classic' Borland compiler. I want to compile it with modern Clang. I removed all the errors but I still get errors with shellctrls.
\[ilink32 Error\] Error: Unresolved external '\__InitExceptBlockLDTC' referenced from C:\\USERS\\PUBLIC\\DOCUMENTS\\EMBARCADERO\\STUDIO\\22.0\\DCP\\BCBSHLCTRLS.LIB|shellctrls \[ilink32 Error\] Error: Unresolved external '\_vector_new_ldtc\_(void \*, unsigned int, unsigned int, unsigned int, void \*, unsigned int, void \*)' referenced from C:\\USERS\\PUBLIC\\DOCUMENTS\\EMBARCADERO\\STUDIO\\22.0\\DCP\\BCBSHLCTRLS.LIB|shellctrls \[ilink32 Error\] Error: Unresolved external '\_ThrowExceptionLDTC(void \*, void \*, void \*, void \*, unsigned int, unsigned int, unsigned int, unsigned char \*, void \*)' referenced from C:\\USERS\\PUBLIC\\DOCUMENTS\\EMBARCADERO\\STUDIO\\22.0\\DCP\\BCBSHLCTRLS.LIB|shellctrls \[ilink32 Error\] Error: Unresolved external '\_CatchCleanup()' referenced from C:\\USERS\\PUBLIC\\DOCUMENTS\\EMBARCADERO\\STUDIO\\22.0\\DCP\\BCBSHLCTRLS.LIB|shellctrls \[ilink32 Error\] Error: Unresolved external '\__Return_unwind' referenced from C:\\USERS\\PUBLIC\\DOCUMENTS\\EMBARCADERO\\STUDIO\\22.0\\DCP\\BCBSHLCTRLS.LIB|shellctrls //--------------------------------------------------------------------------- #ifndef PDBFileFindXE2H #define PDBFileFindXE2H //--------------------------------------------------------------------------- #include <Classes.hpp> #include <Controls.hpp> #include <StdCtrls.hpp> #include <Forms.hpp> #include <Grids.hpp> #include <Outline.hpp> #include <Vcl.FileCtrl.hpp> #include <Buttons.hpp> #include "SpolecneXE2.h" #include <ComCtrls.hpp> #include <ImgList.hpp> #include <System.ImageList.hpp> #include "shellctrls.h" int __stdcall CompareFunc(long, long, long); //--------------------------------------------------------------------------- // Pomocná struktura pro načtení informací z binárních souborů *.pdb SH a DSH struct TPdbFileHeader { int Instalace; // class TDshParamSetData char Misto[50]; char Hut[50]; char Stroj[50]; char Verze[50]; char Text1[50]; char Text2[50]; char Text3[50]; char Komentar[50]; int Jazyk; int Typ; double Datum; }; //--------------------------------------------------------------------------- class TOknoPDBFile : public TForm { __published: // IDE-managed Components TFilterComboBox *FilterComboBox1; TLabel *Label1; TMemo *Memo1; TBitBtn *bt_open; TLabel *Label2; TBitBtn *bt_cancel; TListView *ListView1; TImageList *ImageList1; TSpeedButton *SpeedButton1; TSpeedButton *SpeedButton2; TShellTreeView *ShellTreeView1; TShellListView *ShellListView1; void __fastcall FilterComboBox1Change(TObject *Sender); void __fastcall ListView1Click(TObject *Sender); void __fastcall ListView1Change(TObject *Sender, TListItem *Item, TItemChange Change); void __fastcall FormClose(TObject *Sender, TCloseAction &Action); void __fastcall ShellTreeView1Change(TObject *Sender, TTreeNode *Node); void __fastcall FormShow(TObject *Sender); void __fastcall SpeedButtonClick(TObject *Sender); private: // User declarations TJazyk FJazyk; AnsiString FText1; bool FEncryptMode; AnsiString FSelectedFile; int FSelectedNodeIndex; TDevice FDeviceType; TStringList *FMask; AnsiString __fastcall GetFileName(); void __fastcall SetPath(AnsiString); void __fastcall SetCryptoFilter(bool); AnsiString __fastcall GetSelectedFile(); bool __fastcall FindFile(UnicodeString); public: // User declarations __fastcall TOknoPDBFile(TComponent* Owner,TJazyk jazyk); __property AnsiString SelectedFile = {read=GetSelectedFile}; __property TDevice DeviceType = {read=FDeviceType}; __property AnsiString InitialPath = {write=SetPath}; __property bool CryptoFilter = {read=FEncryptMode,write=SetCryptoFilter}; }; //--------------------------------------------------------------------------- //extern PACKAGE TOknoPDBFile *OknoPDBFile; //--------------------------------------------------------------------------- #endifI tried to use TShellTreeView in empty project and compiled with Clang and it works.
I also tried to set up a new project and moved all the modules to new project and it doesn't work. How can I fix the issue?
