Freeing memory

2001-11-28 Thread Craig Deelsnyder
Question about responsibility for freeing memory. Suppose I declare an array of 'strings': Char** args = (Char**)MemPtrNew(11*sizeof(Char*)); then I populate some of the array: args[0] = (Char*)MemPtrNew( StrLen(text) + 1 ); . args[1] = (Char*)MemPtrNew( StrLen(text) + 1 ); . Now, do

RE: Can't get popup trigger to work

2001-11-13 Thread Craig Deelsnyder
Sorry I didn't read the whole thread, but I got this error when the popup trigger does not have it's list id set to the appropriate list (I had it set to 0). Also, has anyone had problems with the list popping up twice? I have the list id set to the appropriate list. Then in the select event

RE: Can't get popup trigger to work

2001-11-13 Thread Craig Deelsnyder
is the selection using LstPopupList. Otherwise return false without doing LstPopuplist, handle the list events and use LstGetSelection to get the selection. Max --- Craig Deelsnyder [EMAIL PROTECTED] wrote: Sorry I didn't read the whole thread, but I got this error when the popup trigger does not have it's

RE: error in LstSetListChoices() function? Help required.

2001-11-09 Thread Craig Deelsnyder
I haven't looked at it either, but here's an example I was given a few days ago. Int16 numItems; static Char** items; MemHandle h; MemPtr p; ListPtr listP; numItems = DmNumRecordsInCategory( dbRef, dmAllCategories ); if ( numItems ) {

RE: Net Lib ?

2001-10-31 Thread Craig Deelsnyder
yes -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Very Penguin Sent: Wednesday, October 31, 2001 4:20 PM To: Palm Developer Forum Subject: Net Lib ? Hi all, I am working on Symbol 1740 and using the Symbol SDK for making tcpip connections. In which

RE: .rcp (or .prc) to .rsrc conversion possible?

2001-10-26 Thread Craig Deelsnyder
There's a PilRC plugin for CW that imports .rsc files into .rsrc files. I think there's a link that leads to it on Palm's dev tools page (http://www.palmos.com/dev/tech/tools/) Craig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Craig Patchett Sent:

Re: C string functions and strtok() linker error, using CW 7?

2001-10-25 Thread Craig Deelsnyder
. Craig Deelsnyder [EMAIL PROTECTED] wrote in message news:65886@palm-dev-forum... I actually can't even get a reference to strtok() to compile. Can I ask what are your #includes? Just string? But as for your linking problem, I think you need to be sure to be linking with the MSL Runtime Palm OS

Re: No XML, now what?

2001-10-25 Thread Craig Deelsnyder
Thanks for the update Hallvard.I'm actually using a port of TinyXML I made from the C++ version on SourceForge. The reason being I needed to be able to create documents also, which I didn't think was possible with SAX-type parsers. If I'm wrong, let me know. Otherwise, I may use it for

CW7 Link error using MSL and strings

2001-10-24 Thread Craig Deelsnyder
I'm porting a C++ app (some classes) over to CW7. The code uses some references to the 'string' type, so I added a reference to #include string Also, I am using the MSL Runtime Palm OS (2i).Lib library in my project. When I make the project, it compiles fine, but I get 3 link errors, it looks

RE: Dealing with (Barcode)

2001-10-24 Thread Craig Deelsnyder
I guess that brings up the question of what your hardware is. jkl mentioned the SDK for if you're using a Symbol SPT or barcode scanner system. If you're using another system (Intermec, Handspring, etc.), you'll need to get ahold of the SDK for your particular system. Your manufacturer should

RE: C string functions and strtok() linker error, using CW 7?

2001-10-24 Thread Craig Deelsnyder
I actually can't even get a reference to strtok() to compile. Can I ask what are your #includes? Just string? But as for your linking problem, I think you need to be sure to be linking with the MSL Runtime Palm OS (2i).lib file in the PalmOS 3.5 Support\...\runtime folder (btw, does anybody

RE: C string functions and strtok() linker error, using CW 7?

2001-10-24 Thread Craig Deelsnyder
to Visual C++. Kind regards, Ola Theander -Original Message- From: Craig Deelsnyder [mailto:[EMAIL PROTECTED]] Sent: den 24 oktober 2001 21:08 To: Palm Developer Forum Subject: RE: C string functions and strtok() linker error, using CW 7? I actually can't even get a reference

RE: Why cant I use StrCat

2001-10-22 Thread Craig Deelsnyder
I'm not an expert, but I see a couple of things that seem incorrect to me. I believe you're writing into unallocated memory. First, for you var, you can allocate memory either via MemHandleNew or initialize your var as: char str[100]; //where 100 would be replaced with the max_length you want

RE: Why cant I use StrCat

2001-10-22 Thread Craig Deelsnyder
Actually, you may need to say str[0] for the first arg of StrCat. I can never remember that rule about the use of array names as pointers in C/C++. Craig -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Craig Deelsnyder Sent: Monday, October 22, 2001 10

RE: No XML, now what?

2001-10-18 Thread Craig Deelsnyder
Thanx for the link! You wouldn't happen to have a sample app or some quick pseudocode to jump-start with, would you? I've used SAX-type parsers elsewhere in Java, so I know that much. Thanks regardless, Craig Craig, The first choice (and what my app. server talks with right now) is XML,

Re: No XML, now what?

2001-10-17 Thread Craig Deelsnyder
-0500 10/17/01, Craig Deelsnyder wrote: TinyXML is written in Java, which won't work for me (using CodeWarrior). Java has many nice XML parsers, but I had to abandon Java. The TinyXml project on SourceForge is written in C++. Perhaps you're thinking of NanoXML? -- -- Keith Rollin -- Palm OS