I am creating a program and a DLL in BCB3. They both build perfectly fine (no errors/warnings), but when I add the DLL's .lib file to the main program and import the functions, I get the following three errors:
I have a 3rd-party component (TToolBar97) in the main app which explains the TB97\SOURCE\TB97CNST.OBJ file, but I don't think this is anything to do with it as it works perfectly fine until I add the DLL.
How can I fix this problem? Please help!
Code:
[LinkerError] Unresolved external 'Sysinit::HInstance' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER3\LIB\TB97\SOURCE\TB97CNST.OBJ.
[LinkerError] Unresolved external 'Sysinit::VclInit(bool,bool,int,bool)' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER3\LIB\RELEASE\VCLE35.LIB|vclinit.
[LinkerError] Unresolved external 'Sysinit::VclExit()' referenced from C:\PROGRAM FILES\BORLAND\CBUILDER3\LIB\RELEASE\VCLE35.LIB|vclinit.
I have a 3rd-party component (TToolBar97) in the main app which explains the TB97\SOURCE\TB97CNST.OBJ file, but I don't think this is anything to do with it as it works perfectly fine until I add the DLL.
How can I fix this problem? Please help!