BCB3: "library": how to implement?
Posted on 1998-04-18
Ok... So it's not that difficult, but here's my background:
1) I took C language in college 7 yrs ago. They never taught me "Libraries/Drivers".
2) I'm a pascal/Delphi fan... That's one of the reasons I chose BC++Builder 3.
I have a TCP/IP programming assignment due in a few days. In the assignment it states "A "driver" or library module should be coded that has the following ...". So, I thinking...
"oh, that just a "unit" (from delphi)".. So I go to File/New Unit.. menu and start adding my functions that I need after #pragma package(smart_init)...
Welp... Great! I think... So I go into my new form and put
#include "rup_libary.h" at the top. So far so good... Now I start adding code to a button... in that code I need to call one of my functions that exist in the "library" called rup_close();
I goto "build" the program and bamm!... I get the following error:
[C++Error] serverfrm.cpp(22): Call to undefined function 'rup_close'.
So... How do I create a "Library" that can be seen from my form code? I'd rather not create a class if possible.
Any help would be greatly appreciated!