cancel
Showing results for 
Search instead for 
Did you mean: 

Call C++ functions from C

Hi

I would like to call C++ functions from C file.

For example I have a Callback to change the screen (void FrontendApplication::goToMainScreenCustom()) in FrontendApplication. I want to call this function from a C file.

Does anyone have an idea how to make this? Do I need a wrapper for such calls from a C file?

Regards

Dejan

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Piranha​ 

Thanks for the links.

I've done it with a wrapper like it's described in https://isocpp.org/wiki/faq/mixing-c-and-cpp#call-cpp. It worked for me.

Regards

Dejan

View solution in original post

2 REPLIES 2

Hi @Piranha​ 

Thanks for the links.

I've done it with a wrapper like it's described in https://isocpp.org/wiki/faq/mixing-c-and-cpp#call-cpp. It worked for me.

Regards

Dejan