K
kak3012
Hi,
I have a C based code but the main code is in C++ so I want to call the
function from C++ file.
I have added
extern "C"
{
}
at the begining of the C++ code.
All I am doing is sending to arrays and getting back a single one. It does
not come right, so I have writtine out the first number before sending to C
function and when the C code gets it.
it is 1.186674 when I am sending but it is 0.611370 when function get it.
How does this happend? Anything else to do to use a C function in C++?
Cheers...
I have a C based code but the main code is in C++ so I want to call the
function from C++ file.
I have added
extern "C"
{
}
at the begining of the C++ code.
All I am doing is sending to arrays and getting back a single one. It does
not come right, so I have writtine out the first number before sending to C
function and when the C code gets it.
it is 1.186674 when I am sending but it is 0.611370 when function get it.
How does this happend? Anything else to do to use a C function in C++?
Cheers...