- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Microsoft
- >
- Re: c versus cpp
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
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
Community
Resources
Forums
Blogs
- 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
тАО03-18-2009 06:45 PM
тАО03-18-2009 06:45 PM
I grabbed this source code from the internet - it has .c extension. Author says that it was created in Visual C++ but when I create a project (C++ console applicatiotn) in VC++ then it creates .cpp file, and if I paste the code then I've got some complaints from the compiler.
Any Idea what what to do with .c file in VC++ ?
Regards
PEter
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-18-2009 07:54 PM
тАО03-18-2009 07:54 PM
Re: c versus cpp
C++ have anything to do with HP-UX?
> [...] I've got some complaints [...]
You're the only non-psychic who can see them.
If you find an appropriate forum, consider
the advantages of providing some useful
information.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-20-2009 09:36 AM
тАО03-20-2009 09:36 AM
Re: c versus cpp
I wish they add an option to assign negative points :)
I think they should.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-21-2009 10:59 PM
тАО03-21-2009 10:59 PM
SolutionMany of the GUI based coding tools (especially the OO ones), generate background links, indexes, etc which the tools then use internally for their functionality. What is shown on the screen is sometimes just the visible part of the code base, this means that cutting and pasting snippets of code into the tool often just doesn't work. You can check this by cutting and pasting a HelloWorld program into a new, virgin project. Some tools are quite happy with this, others just won't recognise it
First run the code through a lint utility to see if there are any errors and how serious they are, there are then three alternative approaches you could try:-
- Try importing the code rather than pasting it into the editor.
- Try compiling the code (in another compiler) and run it as a called function. You would obviously have to define the parameters and return codes for errors.
- Generate the code in the GUI tool so that the tool does generate all the background stuff.
Finally, if you are going to be doing this a lot, you shuold probably use a different tool! There are GUI tools around that generate all their background stuff only from what is written in the code and not from processes invoked when writing it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-23-2009 04:21 AM
тАО03-23-2009 04:21 AM