Re: RE: Trouble with classes
I am on a honeymoon vacation from July 16th until July 30th. For all urgent inquiries you may contact Maria Dyatlova ([EMAIL PROTECTED]) Thanks and Best regards, Helen -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
RE: Trouble with classes
If you are using CW, then you can compile your programs with C++, using the palm .h headers. One of the HS.h header files will give plenty of errors because an enum dealing with the phone code is incorrectly terminated with a comma(,) on the last element of the enum. Otherwise you should be ok. Luis. From: [EMAIL PROTECTED] Reply-To: "Palm Developer Forum" To: "Palm Developer Forum" Subject: RE: Trouble with classes Date: Sun, 22 Jul 2007 15:27:18 - Is there a good place where I can check to see which items should be C and which ones C++? What I am getting from the last post was that the header files for palm programming are in C, so I have to tell the compiler to use my includes as C instead of C++. How about the rest of my code? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ _ Don't get caught with egg on your face. Play Chicktionary! http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2 -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
RE: Trouble with classes
At 04:15 AM 7/23/2007, you wrote: Subject: RE: Trouble with classes From: [EMAIL PROTECTED] Date: Sun, 22 Jul 2007 15:27:18 - X-Message-Number: 6 Is there a good place where I can check to see which items should be C and which ones C++? What I am getting from the last post was that the header files for palm programming are in C, so I have to tell the compiler to use my includes as C instead of C++. How about the rest of my code? The Palm and Access header files usually have the extern C built-in, so you shouldn't need to worry about that. Just either rename your source files with the cpp extension, or use the compiler flag in PODS to always compile c++ code. I always build my code in c++ mode (though in Metrowerks Codewarrior) regardless of use of classes because of the better compile-time error checking. With PODS, then next big issue you'll hit is multi-segment code, and discussions on that are in the archives. Roger Stringer Marietta Systems, Inc. (www.rf-tp.com) -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
RE: Trouble with classes
Is there a good place where I can check to see which items should be C and which ones C++? What I am getting from the last post was that the header files for palm programming are in C, so I have to tell the compiler to use my includes as C instead of C++. How about the rest of my code? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
RE: Trouble with classes
Renaming to .cpp makes gcc compile this file as C++ (regardless if you're using C++ and / or C constructs). Include standard C statements in extern "C" { // any C stuff } This is especially important for all includes like #include . Not using extern "C" will lead to linker errors. Kind regards, Harald - [EMAIL PROTECTED] http://www.gps-laptimer.de -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Sonntag, 22. Juli 2007 13:33 To: Palm Developer Forum Subject: re: Trouble with classes Can I just change the extension of my MainApp.c to MainApp.cpp, or are there any changes I need to make to the program itself? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Trouble with classes
Can I just change the extension of my MainApp.c to MainApp.cpp, or are there any changes I need to make to the program itself? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Trouble with classes
Files ending in .c compile as 'C'. Files ending in .cpp compile as 'C++'. David -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
re: Trouble with classes
I'm very sorry, but it has been many years since I used either c or c++. I assume you are saying that classes are only available in c++, not c? And if so, how do I tell PODS to treat my program as a c++ program, keeping in mind that as far as I remember just about all of the actual statements would be exactly the same? I appreciate your help. -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Trouble with classes
"I am trying to start to implement classes in my c projects for the palm" I think you answered your own question there, :). PODS uses PRC-Tools witch uses a version of gcc to compile. In other words, you're programming in C, not C++. - Original Message From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: Palm Developer Forum Sent: Saturday, July 21, 2007 8:04:36 AM Subject: Trouble with classes I am trying to start to implement classes in my c projects for the palm. I created a test application with the Palm OS Development Suite that compiles just fine. However, when I use PODS to create a generic class, and add '#include "classname.h"' to the top of AppMain.c, it can't even compile the first line of "classname.h". I am not even adding any functionality to the class. I am only using what PODS created, just to start learning how to implement classes. What am I doing wrong? -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/ -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/
Re: Trouble with classes
I am on a honeymoon vacation from July 16th until July 30th. For all urgent inquiries you may contact Maria Dyatlova ([EMAIL PROTECTED]) Thanks and Best regards, Helen -- For information on using the ACCESS Developer Forums, or to unsubscribe, please see http://www.access-company.com/developers/forums/