Originally Posted by
Mhox
Hi,
I need to send a simple integer flag value (0/1) from a C program to a C++ application. Can anybody suggest what is the simplest way of doing this?
Regards
Once i had to use a C library from a collegue in a C++ project.What we did was this
Code:
extern "C" {
#include "BF.h"//the library in C
}
Then in the .cpp file i used the functions of this library as you could use a c++ function.For example if BF.h had a prototype like this
Code:
int function(int var);
then in the .cpp file i would write something like this
Code:
extern "C" {
#include "BF.h"//the library in C
}
...
int flag = function(value);
..