calling c++ function from c.
-
Hello, I've a program written in c and now I want to add functionality that already written in c++. Can I call c++ functions from c? Does anyone have article about it? Thank you.
yoti11 wrote:
Can I call c++ functions from c? Does anyone have article about it?
Only if the export names are in "C" style. For example:
// "sample.cpp"
extern "C" void Hello(int nMyMoney);
Maxwell Chen
-
yoti11 wrote:
Can I call c++ functions from c? Does anyone have article about it?
Only if the export names are in "C" style. For example:
// "sample.cpp"
extern "C" void Hello(int nMyMoney);
Maxwell Chen
-
yoti11 wrote:
I already use variables in c stale.
:confused:
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
-
yoti11 wrote:
I already use variables in c stale.
:confused:
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne