Posted by christopher.lambell on 2001-01-12
After using DOS based C++ for years, I decided to purchase Borland C++ builder 4 and give windows programing a crack. The only difficulty I seem to have is that I cant declare headers globally so that all forms can access them, in DOS based based programing I would declare the standard headers, then my headers obviously outside function main. I normally start by declsaring a header file containg my classes and member functions, and then go on to declare my header files which contain functions called by main which use the already defined objects. Using C++ builder I have to declare the header containing my classes and member functions at the start of each form. I also can't find a way of declaring a global variable that can be seen by all forms without redeclaring it and using the 'extern' key word in every form. Any experienced or semi experienced Borland programmers have any suggestions? Cheers Chris
Previous post | Next post | Timeline | Home