Operating System - HP-UX
1848619 Members
1692 Online
104033 Solutions
New Discussion

Re: Calling C functions from C++ functions

 
SOLVED
Go to solution
Deepak Siddananja
New Member

Calling C functions from C++ functions

Hi All,

I have an application which is a blend of C and C++ code. It was written initially for HP 10.20. Now, teh same application after building on 11i does not seem to work.

I have followed the approach given in teh link below:
http://www-306.ibm.com/software/data/informix/pubs/library/notes/machnote/sdk240uc1_hp.html

Some of the C functions are callable from the application. But the exact problem is when a C function tries to assign a value to a bool variable (passed from C++ function). In the C code, bool is #defined as int.

Can anybody help me out please.

Thanks
Deepak
3 REPLIES 3
Steve Steel
Honored Contributor

Re: Calling C functions from C++ functions

Craig Smith_13
Frequent Advisor
Deepak Siddananja
New Member

Re: Calling C functions from C++ functions

Thanks for all your help, I was trying with typdef char to bool and it seems to be working...

Cheers
Deepak