By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,389 Members | 1,989 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,389 IT Pros & Developers. It's quick & easy.

invoking C++ functions within C functions

P: 1
Is there any method by which i can invoke C++ class functions within C functions?
May 18 '07 #1
Share this Question
Share on Google+
3 Replies


AdrianH
Expert 100+
P: 1,251
Is there any method by which i can invoke C++ class functions within C functions?
Can you give an example? Is the C function in your C++ project?


Adrian
May 18 '07 #2

weaknessforcats
Expert Mod 5K+
P: 9,197
Yes, you may call C++ functions from C functions, provided the C++ functions have been labeled extern "C". Otherwise, the C++ function names will be mangled so you will not know the function name to call from C.
May 19 '07 #3

AdrianH
Expert 100+
P: 1,251
Yes, you may call C++ functions from C functions, provided the C++ functions have been labeled extern "C". Otherwise, the C++ function names will be mangled so you will not know the function name to call from C.
Very true.


Adrian
May 20 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.