GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Calling C functions from C++ functions
Operating System - HP-UX
1848619
Members
1692
Online
104033
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 12:54 AM
10-28-2004 12:54 AM
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
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
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2004 01:05 AM
10-28-2004 01:05 AM
Re: Calling C functions from C++ functions
Hi
Look at
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2504,00.html
http://docs.hp.com/hpux/onlinedocs/2159/index.htm
http://docs.hp.com/hpux/onlinedocs/2159/otherlangs.htm
Steve Steel
Look at
http://h21007.www2.hp.com/dspp/tech/tech_TechDocumentDetailPage_IDX/1,1701,2504,00.html
http://docs.hp.com/hpux/onlinedocs/2159/index.htm
http://docs.hp.com/hpux/onlinedocs/2159/otherlangs.htm
Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2004 12:36 AM
10-29-2004 12:36 AM
SolutionI believe a bool is one byte in size, try type casting it to a char....see more info:
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3901-90008/B3901-90008_top.html&con=/hpux/onlinedocs/B3901-90008/00/00/17-con.html&toc=/hpux/onlinedocs/B3901-90008/00/00/17-toc.html&searchterms=bytes%7cbool&queryid=20041029-063357
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2004 01:10 AM
10-29-2004 01:10 AM
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
Cheers
Deepak
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2026 Hewlett Packard Enterprise Development LP