Hi
I m working on a speech recognition project using Qt. My problem is that the speech decoder is written in c .is there any way to use the c code within the qt code?
Thanks in advance.
Printable View
Hi
I m working on a speech recognition project using Qt. My problem is that the speech decoder is written in c .is there any way to use the c code within the qt code?
Thanks in advance.
Is there a way to use C code in C++ code?Quote:
is there any way to use the c code within the qt code?
The same answer applies as Qt IS C++ code.
can you give me a simple example ?
Code:
void MyClass::exampleCall() { int x = callFunctionFromC(); }
so what i understand is i ll include the .h header in the qt code and just call the c function.
Am i right ?
There is no "Qt code". It's C++.
:)
sorry ,i mean the c++ code .
thanks, i found out how it works. It's a matter of adding links to include file and libraries .