P
pooja
what is a class library and how does it different from c++ header file?
pooja said:Tell me one more thing,
"How can I hide my header files and other source file in a class library
so that my client would not be able to open it
and can not tamper the classes with in it?"
pooja said:how can I distribute the header files
which define the public interface for the library.?
how does Developers distribute proprietary libraries
distribute object files in library archives
and *not* the source files which define the implementation.
Tell me the code snippet for it.
also teel me the site from where i can get the information
pooja said:Can we develop library files and header files in a way so that it can
not be tampered by the programmers by using Turbo C and Borland C
compiler?
pooja said:Ok thanks , but still some confussion is there
suppose I have created a file "abcd.h" like this
//abcd.h
#inlcude<iostream.h>
class c1
{
public:
void sum()
{
cout<<"I am sum function";
}
};
now I created another file "file1.cpp" , in which I included this
"abcd.h" file.
//file1.cpp
#include"abcd.h"
void main()
{
c1 obj;
obj.sum();
}
I want that my customer would also use "abcd.h" header file as I am
using it in the above file1.cpp.
Tell me how should I distribute "abcd.h" to my programmer using TC as a
compiler.
Can I Simply copy it on a CD and hand it to the customer or so some
other steps are there?
pooja said:"In this case: copy it to the CD and you are fine. "
and what would be the other case?
How to create a header file and packaged it , so that my customer would
not be able to the see the functions and their implementation?
pooja said:Thanks for clearing my doubts.
But there is a problem , that when I execute this code, at run time the
compiler shows an error message " undefined symbol c1::sum() in module
file1.cpp."
I have copied abcd.obj, abcd.h and file1.cpp(in which I have written
thye main()) in TCTEMP folder, and in this folder all other necessary
libraries, header files are present.
So why it is showing this error message?
How to solve this problem.
pooja said:I am using Turbo C compiler ,tell me how to link these obj files at
runtime. In UNIX I am able to do this. but in TC I don't know how to do
it. Tell me the how should I do.
pooja said:I am using Turbo C compiler ,tell me how to link these obj files at
runtime. In UNIX I am able to do this. but in TC I don't know how to do
it. Tell me the how should I do.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.