Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
1.33/5 (2 votes)
See more:
Hi, I need help!
I have a singelton with some methods which will be called from C functions.
How can I do that?

Thanks
Merh
Posted

1 solution

 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 6-May-15 15:05pm    
This is not exactly the singleton, but should give a right idea, a 5.
—SA
CPallini 6-May-15 15:12pm    
Thank you.
You are right. Using static methods is a practical way to do it.
merh 7-May-15 7:26am    
Thanks, but I get the problem when I include C++ header file in the header file for C.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900