Bitmaps in Palm Application

2001-12-12 Thread Jayakody, Dhanushka
Hi, Is it possible to upload Bitmaps developed on other tools into the Palm Application.If yes how cus i dont see a option in CodeWarrior other that it's own image development tool. Thanks in advance Dhanushka. -- For information on using the Palm Developer Forums, or to unsubscribe, please s

Deleting causes error

2001-12-12 Thread reshma
hi, i have to delete a record from a database.i am using DmRemoveRecord for that.but when i iterate the database for another record from the begining using for(i=0;i To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Thursday, December 13, 2001 8:25 AM Subject: RE: Random number from 1 to 15 >

Re: Garbage data when I access text of selected item in pop lits

2001-12-12 Thread Joe Programmer
--- SU DUY TRINH wrote: >I have a pop list(popup trigger has ID > is TwoSelect2PopTrigger and its list has ID > is TwoSelect2List),I use GetObjectPtr() to > receive pointer to popup trigger and its > list,then I use LstGetSelection(pList) to > receive index of selected item in list and >

Re: Is .prc affected by -g flag ?

2001-12-12 Thread Warren Young
John Marshall wrote: > > Everything you want to know about -g can be figured out from GCC's -g > documentation and http://prc-tools.sf.net/cgi-bin/info/Using+a+debugger . > Also Warren Young's FAQ has a useful section. And the FAQ is more useful now -- your post prompted an update to the article

Garbage data when I access text of selected item in pop lits

2001-12-12 Thread SU DUY TRINH
Hi All, I have a pop list(popup trigger has ID is TwoSelect2PopTrigger and its list has ID is TwoSelect2List),I use GetObjectPtr() to receive pointer to popup trigger and its list,then I use LstGetSelection(pList) to receive index of selected item in list and LstGetSelectionText(pList,index) to

RE: Color LUT (was Reducing Application Size...)

2001-12-12 Thread Jaba Adams
>1) For moving graphics, everything is LCD blurred. We actually >try to improve the contrast by going for an anti-aliased monochrome >(if that makes sense) using bold outlines wherever possible. >4bpp greys just don't add anything. Yeah, I've noticed that. It's a challenge - how "monochrome" to

Re: Random number from 1 to 15

2001-12-12 Thread Tom Hoelscher
Now there's an idea Put 14 thumbtacks on your desk, pointy side up. Randomly seed a table in the same shape as the tack layout. turn the device screen downwards & drop onto the tacks. If the screen is still readable when you pick it up, you should be able to determine which number has fewest

RE: Printing numbers according to SystemPreference

2001-12-12 Thread Michael Glickman
Sorry, Max I now see what you mean. You need to stuff it with thousand separators before you can change it with StrLocalizeNumber. Look rather weird indeed. Well, you know the trick probably better than me. Separate integral part (if needed), take %1000 and /1000 in a loop ... unless someone has

RE: Random number from 1 to 15

2001-12-12 Thread Michael Glickman
Conrgats A nice idea for a Palm game given that is has touch screen. M. -Original Message- From: Tom Hoelscher [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 December 2001 1:48 PM To: Palm Developer Forum Subject: Re: Random number from 1 to 15 Now, display this in a larger font (perha

RE: Printing numbers according to SystemPreference

2001-12-12 Thread Max Bian
Are you talking about "Palm OS Reference.pdf" that comes with SDK 4? I dont see anything about numbers on that page. Can you specify the chaper and section header? Thanks. Max --- Michael Glickman <[EMAIL PROTECTED]> wrote: > Why can't you just follow the coding sample > (PalmOS reference SDK

Re: Random number from 1 to 15

2001-12-12 Thread Tom Hoelscher
Now, display this in a larger font (perhaps 24 point), and get a gun that shoots those little darts with a suction cup on the end, along with 14 darts. Display the below 'table' in the large point-size, and fire off the darts. Whatever number you didn't cover up (or is least covered - you may hav

RE: Printing numbers according to SystemPreference

2001-12-12 Thread Michael Glickman
Why can't you just follow the coding sample (PalmOS reference SDK-4 page 834) ? I checked that all functions used there are 2.0 compatible. Unless you are targeting 1.0... M. -Original Message- From: Max Bian [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 December 2001 1:32 PM To: Palm

Re: Reducing Application Size...

2001-12-12 Thread Ben Combee
"Keith Rollin" <[EMAIL PROTECTED]> wrote in message news:71096@palm-dev-forum... > > Huh...I just tried removing the "Debug Bullets" (again with the > AddressBook), and the .prc's size dropped from 67,727 bytes to 67,617 bytes > -- 110 bytes. But I'm not sure why it should drop at all, let alone

RE: Printing numbers according to SystemPreference

2001-12-12 Thread Max Bian
well, it doesn't do the thing directly. It requires the number string have the thousand and decimal seperators already. If I can get that point, I would rather roll my own. :( Max --- Michael Glickman <[EMAIL PROTECTED]> wrote: > StrLocalizeNumber ? > Never tried it though . > > M. > > -Or

RE: Printing numbers according to SystemPreference

2001-12-12 Thread Michael Glickman
StrLocalizeNumber ? Never tried it though . M. -Original Message- From: Max Bian [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 December 2001 1:20 PM To: Palm Developer Forum Subject: Printing numbers according to SystemPreference Hi. I am trying to print the date and time according to

Re: Lines on a Fld

2001-12-12 Thread Ben Combee
"Tim" <[EMAIL PROTECTED]> wrote in message news:71069@palm-dev-forum... > > Do you have some links with common string parsing routines that can help me > with this? I am new to C and Palm.. any samples would help. Thanks Actually, look at the Palm OS API function FldWordWrap. Repeated calls to t

Re: Installing sample data

2001-12-12 Thread Ben Combee
"Danny Epstein" <[EMAIL PROTECTED]> wrote in message news:71093@palm-dev-forum... > > > read 'abc ' (Resource#) "DBName"; > > > > PalmRez does not like the last character of the TypeID to be a blank > character. > > ... > > An obvious solution would be to change the TypeID so that the last > chara

Printing numbers according to SystemPreference

2001-12-12 Thread Max Bian
Hi. I am trying to print the date and time according to the system preferences. I have done that using DateToDOWDMFFormat and TimeToAscii. These function accepts dataFormat and timeFormat that I pull off the preference using PrefGetPreferences(). My question is, how do I do the same for a numbe

RE: Random number from 1 to 15

2001-12-12 Thread Michael Glickman
Well 15 is not really small for a random value. I wouldn't like to have 1 chance out of 15 for success. Actually I wouldn't recommend modulus even for 3 if you really want an "equal opportunity". However, it will be OK for 16 (read thread!) - just one more makes a huge difference ! Michael

RE: Random number from 1 to 15

2001-12-12 Thread Leon Heller
> >It was a long thread just a month ago regarding the same issue. >It discusses the disadvantages of using % for a random value, >and a proper way to do it. For *small* values, I thought this was the preferred technique. Leon _ G

RE: Reducing Application Size...

2001-12-12 Thread Michael Glickman
-Original Message- From: Peter Epstein [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 December 2001 9:29 AM To: Palm Developer Forum Subject: RE: Reducing Application Size... > There are still bitmaps for > each button, but only one. The highlighting effect is consistent, and can be > de

RE: Color LUT (was Reducing Application Size...)

2001-12-12 Thread Howard Tomlinson
> > I don't know how well this would work for intermediate-sized characters, > like my "Nerds" (~20 pixels high). In 2bpp mode, they're too small to > look good dithered, but too big to look good with just a color -> 4 grey > lookup. They need manual tweaking to "read" well. Agreed - our sprit

Color LUT (was Reducing Application Size...)

2001-12-12 Thread Jaba Adams
Hmm ... At 12:02 AM 12/13/01 +0100, you wrote: > another tip.. well, heh :) i'll let you figure it out! :) storing > bitmaps for each depth takes up a lot of space *g* you'll soon > learn the value of the word "look-up table" :) That's an interesting idea - doing the conversion at runtime. Cu

Re: Lightweight Wireless Application Deployment Solution?

2001-12-12 Thread Douglas Olson - Pocket Technologies, Inc.
Stuart: There is a very reasonable solution for wireless applications for the PalmOS. I suggest visiting http://www.astawireless.com for more information. ASTA Provides different types of servers (and the source code if you need it) for different needs. They also have a client piece for the Pa

Re: Need your help

2001-12-12 Thread Jaba Adams
As others have pointed out, this is the wrong forum ... but I'm going to take a stab at it. Disclaimer: I haven't written a conduit, but I've done some ODBC programming in the distant past. >Can anyone tell me why these functions are not returning SQL_SUCCESS ? Don't know, but the resources a

Re: CW 3.5 Update 1

2001-12-12 Thread Joe Programmer
--- [EMAIL PROTECTED] wrote: > I can't seem to be able to download this -- it keeps > saying I got to the page by jumping. > > I agree to the license agreement, and then I get the > "can't have it 'til you agree to the agreement." I don't remember for sure, but you probably have to enable cookie

RE: Reducing Application Size...

2001-12-12 Thread Michael Glickman
Bitmap compression and debugging info is really an issue. I would also suggest you to go through your code and find if you can have some your functions reusable: say you add some extra parameters that makes a function generic. Or you split a function into several reusable pieces. Michael

Re: Random number from 1 to 15

2001-12-12 Thread Joe Programmer
--- Johnathan Smith wrote: > Can someone please show me how to make > a random number from 1 to 15 OK. Here are the steps: 1. Close your eyes. 2. Wave your hand about. 3. Poke your finger at the screen. 4. Open your eyes. 5. See which number your finger is closest to. 1 5

RE: FrmPopupForm not clearing

2001-12-12 Thread Michael Glickman
A proper way to do it is processing frmUpdateEvent: see discussions in "Form must be full width..." thread. You can rely on "Save Behind" assuming you have enough memory. For Pilrc "Save Behind" is a default feature, but you can disable it. Don't know about CW. M. -Original Message- Fr

RE: Random number from 1 to 15

2001-12-12 Thread Michael Glickman
It was a long thread just a month ago regarding the same issue. It discusses the disadvantages of using % for a random value, and a proper way to do it. For those who got stuck to MS documentation, and can't think of anything apart from that, I would recommend a book: "R.Sedgewick. Algorithms in

RE: Saving Form Results to a DB (DmWrite Bus Error)

2001-12-12 Thread Michael Glickman
-Original Message- From: John Marshall [mailto:[EMAIL PROTECTED]] Sent: Thursday, 13 December 2001 1:29 AM To: Palm Developer Forum Subject: Re: Saving Form Results to a DB (DmWrite Bus Error) On Tue, Dec 11, 2001 at 10:10:38PM -0600, Ben Combee wrote: > "Michael Glickman" <[EMAIL PROT

Re: Reducing Application Size...

2001-12-12 Thread Aaron Ardiri
On Wed, 12 Dec 2001, Robert Purcell wrote: > To answer Howard's question, I'm currently using Codewarrior for all > my developing. One of my products is a game called "Joggle". I'm > in the process of releasing an update, and this new version has crossed > the 100k size. I know that's not much

RE: Setting Alarm Vibrate and Alarm LED programmatically in PALM 4.1 for the Device m505

2001-12-12 Thread Peter Epstein
If you want to change the user preferences as seen in the General panel of the Prefs app, then it's just a matter of using PrefSetPreference. Here is an example of turning on alarm vibrate: PrefSetPreference(prefAttentionFlags, PrefGetPreference(prefAttentionFlags) | kAttnFlagsVibrateBit); Use "

Re: FrmPopupForm not clearing

2001-12-12 Thread Robert Purcell
Hi Richard, I have seen a problem similar to this in the past. If I remember correctly, it had something to do with my popup form's width. A popup form must have a width no less than 160 (the full width of the screen). Try running your app thru one of the debug roms and see if that produces

RE: Reducing Application Size...

2001-12-12 Thread jacky Cheung
I remove the Debug Bullets and got 16-bit out of range error messages... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Keith Rollin Sent: Thursday, December 13, 2001 11:28 AM To: Palm Developer Forum Subject: RE: Reducing Application Size... Huh...I j

RE: FrmPopupForm not clearing

2001-12-12 Thread jacky Cheung
I think it may have something to do with the Save behind flag (can be set in constructor for CW). I am not sure (haven't done palm programming for awhile). May be someone can give you better advice. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Richa

RE: Reducing Application Size...

2001-12-12 Thread Peter Epstein
Can you think of any redundancy in the bitmaps within your application? Sometimes a few tricks can give a lot of space savings for bitmaps. This is especially important for color. An example is the PalmOS 4.0 Calculator. It has color buttons. You might think these would be graphic buttons with se

RE: Reducing Application Size...

2001-12-12 Thread Keith Rollin
Huh...I just tried removing the "Debug Bullets" (again with the AddressBook), and the .prc's size dropped from 67,727 bytes to 67,617 bytes -- 110 bytes. But I'm not sure why it should drop at all, let alone by a miniscule amount compared to Jeremy. All of the debug information should be in the

Lightweight Wireless Application Deployment Solution?

2001-12-12 Thread Stuart Nicholson
Greetings, my employer regularly deploys a reasonable number of wirelessly connected Palm devices in the field. We're looking for an existing solution for updating our mobile apps in field via the wireless TCP/IP connection. I'm aware of the Palm 'Enterprise Hotsync Server' which appears to sup

RE: Installing sample data

2001-12-12 Thread Danny Epstein
> read 'abc ' (Resource#) "DBName"; > > PalmRez does not like the last character of the TypeID to be a blank character. > ... > An obvious solution would be to change the TypeID so that the last character is > not a blank, but unfortunately the application has been released for several > years and

RE: Reducing Application Size...

2001-12-12 Thread Jeremy Nuss
that's a nice tidbit of info I never knew about, thanks! It took my app size down from 42K to 27K. Does this also speed of program operation without all the debug code in it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Avilla, Dane Sent: Wednesday,

FrmPopupForm not clearing

2001-12-12 Thread Richard Good
I have a problem using FrmPopupForm. When I execute the FrmReturnToForm(0); to return to the originating form, portions of the popup form remain on the screen. I can explicitly rewrite the returned to form but from the documentation it would seem that this should not be necessary. Am I mis

Re: Reducing Application Size...

2001-12-12 Thread Robert Purcell
Wow! Thanks for the great responses! I really do appreciate everyone's input about reducing application size. There were a lot of good "gems" of advice that I'm sure will help me squeeze my apps much tighter than they are currently. To answer Howard's question, I'm currently using Codewarrior

Re: Problem with StrCaselessCompare

2001-12-12 Thread Mark Smith
"Michael Brennan" <[EMAIL PROTECTED]> wrote: >I have two string, "[555]" and "555". When calling StrCaselessCompare with >these strings, the function is indicating "[555]" comes before "555". I'm >expecting the opposite since the ASCII value of [ is 91 (decimal) which is >greater than the ASCII va

RE: Reducing Application Size...

2001-12-12 Thread Keith Rollin
At 1:36 PM -0800 12/12/01, Scott Johnson wrote: > > From: Keith Rollin [mailto:[EMAIL PROTECTED]] >> [AddressBook] dropped by 5.4% when removing Macsbug symbols. >> Datebook dropped by 5.9%. Perhaps those figures are more >> representative of the results the average person will see. > >Debug

RE: Reducing Application Size...

2001-12-12 Thread Steve Mann
>What are the effects of removing the Macsbug symbols? Is there any >real impact to the prc running on an actual device, or is this only >used for debugging? Debugging only. Typically you should have a debug and a production build (CodeWarrior R8 sets these up for you). The debug build has Ma

RE: Reducing Application Size...

2001-12-12 Thread Avilla, Dane
When using CW, make sure to remove the little "bullets" next to the code files listed in the project window (under the green "bug" icon). Only do this in release versions, as you won't be able to do source-level debugging without them :) Cheers, -DGA > > I just built the AddressBook applicatio

RE: Fussy Routine

2001-12-12 Thread Dave Mottorn
No but I did rename everything from "starter" to something else. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Avilla, Dane Sent: Wednesday, December 12, 2001 2:55 PM To: Palm Developer Forum Subject: RE: Fussy Routine Glad it worked. Inciden

RE: Reducing Application Size...

2001-12-12 Thread Scott Johnson
> From: Keith Rollin [mailto:[EMAIL PROTECTED]] > [AddressBook] dropped by 5.4% when removing Macsbug symbols. > Datebook dropped by 5.9%. Perhaps those figures are more > representative of the results the average person will see. Debug symbols are bigger if you use C++ and especially templates,

RE: Reducing Application Size...

2001-12-12 Thread Trevor Menagh
> I just built the AddressBook application that comes with CodeWarrior > 8. Its size dropped by 5.4% when removing Macsbug symbols. Datebook What are the effects of removing the Macsbug symbols? Is there any real impact to the prc running on an actual device, or is this only used for debuggi

RE: Reducing Application Size...

2001-12-12 Thread Howard Tomlinson
> -Original Message- > > Hi Everyone, > > I'm trying to reduce the size of my palm applications. Does anyone > know of any compression/decompression techniques at run-time or other > methods for shrinking the size of palm applications? I'm also looking > into bitmap compression for my a

CW 3.5 Update 1

2001-12-12 Thread CBrindis
I can't seem to be able to download this -- it keeps saying I got to the page by jumping. I agree to the license agreement, and then I get the "can't have it 'til you agree to the agreement." I'd appreciate any help on this. [EMAIL PROTECTED] -- For information on using the Palm Developer F

RE: Reducing Application Size...

2001-12-12 Thread Keith Rollin
15%?!? That's saying that 1 in 7 bytes in your file belonged to a function name. That seems a lot, to me! I just built the AddressBook application that comes with CodeWarrior 8. Its size dropped by 5.4% when removing Macsbug symbols. Datebook dropped by 5.9%. Perhaps those figures are mor

Static library using prc-tools

2001-12-12 Thread C Srinivas
Hi: A search through the forum archives returned information about building a static library (compiled with app as opposed to shared library installed on device) using CodeWarrior. This results in a .lib library, usable with CodeWarrior. What would be the corresponding steps, procedure to creat

RE: Lines on a Fld

2001-12-12 Thread Tim
Do you have some links with common string parsing routines that can help me with this? I am new to C and Palm.. any samples would help. Thanks Tim A -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Avilla, Dane Sent: Wednesday, December 12, 2001 2:00 PM T

RE: Reducing Application Size...

2001-12-12 Thread Evan Wise
This might be a silly suggestion but it caught me by surprise a long while ago...(for codewarrior only) In the project settings, the 68K Processor tab under Code Generation has a MacsBug Symbols pulldown, change that to none in your release builds. There is about a 15% size decrease (use with rel

Reducing Application Size...

2001-12-12 Thread Robert Purcell
Hi Everyone, I'm trying to reduce the size of my palm applications. Does anyone know of any compression/decompression techniques at run-time or other methods for shrinking the size of palm applications? I'm also looking into bitmap compression for my apps. I'd appreciate hearing other develope

Re: Random number from 1 to 15

2001-12-12 Thread Leon Heller
>From: Johnathan Smith <[EMAIL PROTECTED]> >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> >To: "Palm Developer Forum" <[EMAIL PROTECTED]> >Subject: Random number from 1 to 15 >Date: Wed, 12 Dec 2001 12:21:23 -0800 (PST) > >Can someone please show me how to make a random number >from 1 to

RE: Random number from 1 to 15

2001-12-12 Thread Avilla, Dane
Check this thread from three weeks ago: http://www.escribe.com/computing/pcpqa/index.html?by=OneThread&t=get%20a%20r andom%20number%20within%20a%20specified%20range Cheers, -DGA -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/te

Problem with StrCaselessCompare

2001-12-12 Thread Michael Brennan
I'm having a problem with the StrCaselessCompare function in a sort function. I have two string, "[555]" and "555". When calling StrCaselessCompare with these strings, the function is indicating "[555]" comes before "555". I'm expecting the opposite since the ASCII value of [ is 91 (decimal) whic

RE: Dynamic Field

2001-12-12 Thread Keith Rollin
In order: * Check the result from FrmGetActiveForm. * Check the result from FrmGetObjectPtr * Check the result from FldGetTextPtr * Check the result from MemPtrResize Any one of those could fail, but you're not checking to see if they did. MemPtrResize is particularly suspect. If all of those

Dynamic Field

2001-12-12 Thread Júlio Fábio de O. Chagas
I am trying to obtain the string text of a Field. This field was created on the fly (run-time). Every time when I try to do that, the system returns garbage. I am using the code bellow: addrFieldP = FrmGetObjectPtr(FrmGetActiveForm(), curControl.fieldID-1 ); buffer=FldGetTextPtr(addrField

Random number from 1 to 15

2001-12-12 Thread Johnathan Smith
Can someone please show me how to make a random number from 1 to 15 __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your unique holiday gifts! Buy at http://shopping.yahoo.com or bid at http://auctions.yahoo.com -- For i

Re: Need your help

2001-12-12 Thread Joe Programmer
--- [EMAIL PROTECTED] wrote: > ... > My Conduit accesses SQL Server > Database through an ODBC DSN > ... This question would get more sympathy in the conduit forum. __ Do You Yahoo!? Check out Yahoo! Shopping and Yahoo! Auctions for all of your u

Re: Installing sample data

2001-12-12 Thread Laurie Davis
I have been following this thread with interest. I have tried to install a sample database into my application but have run into a small problem. I have created a .r file with a line like the following: read 'abc ' (Resource#) "DBName"; PalmRez does not like the last character of the TypeID to

Re: Saving Form Results to a DB (DmWrite Bus Error)

2001-12-12 Thread Keith Rollin
At 3:29 PM +0100 12/12/01, John Marshall wrote: >On Tue, Dec 11, 2001 at 10:10:38PM -0600, Ben Combee wrote: > > I don't think there is a way to get CodeWarrior to warn about this, >> since it is valid C. > >Right. Keith shouldn't have been amazed not to get warned about this. :-) Uh, uh ...

RE: Fussy Routine

2001-12-12 Thread Avilla, Dane
Glad it worked. Incidentally, did you happen to upgrade the .rsrc file from a previous version of Constructor? I've found that occasionally that can cause problems . . . Cheers, -DGA > I tried recreating the project from scratch and copying > my old fields onto > a new form in construc

Re: Need Help Urgently

2001-12-12 Thread Dave Lippincott
try posting your question to the conduit forum. - Original Message - From: <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Wednesday, December 12, 2001 1:14 PM Subject: Need Help Urgently > > Hi All, > > I am stuck up in very bad situation. > > -- F

RE: Copy a file using beaming technology

2001-12-12 Thread Danny Epstein
> I'm trying write an application which can copy an existing file (PRC or PDB) > in a Palm device. > Here I'm using Beaming technology used in Palm OS, namely ExgDBRead, and > ExgDBWrite. > Although this technology is used, the app will be run in a single device. I > found that this would be the e

Need your help

2001-12-12 Thread atul
Hi All, I am stuck up in a very difficult situation. I am using SQL Server 6.5 at the backend as my server and from which I am fetching data. My SQL server is placed on that machine which uses winNT as OS. I have installed my palm desktop on the same machine and have registered my conduit als

RE: Fussy Routine

2001-12-12 Thread Dave Mottorn
I tried recreating the project from scratch and copying my old fields onto a new form in constructor. I got the same results. So I recreated the project again and redrew the fields in constructor a few at a time and it worked. Apparently it's something about what I did in Constructor or

Controlling the General Purpose Output?

2001-12-12 Thread Gary Anson
I am wanting to control the general purpose output on the cradle connector of a Palm III. Does anyone know how that might be achieved? I am using all the RS232 signals. Gary -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/s

RE: Lines on a Fld

2001-12-12 Thread Avilla, Dane
>From what you wrote, it sounds like each line of text is ended by a '\n' character. In that case, consider using FldGetTextPtr to grab a pointer to the text in the field, then just count in X number of '\n' characters until you find the line you want, then copy the text between that '\n' and the

Lines on a Fld

2001-12-12 Thread Tim
Hi everyone, I have a Field with multiple lines on it, and I need to grab the text on each individual line, one at a time. Can someone help me with a routine to do this? Note: I add each line with this code: Char *newline = "\n"; Char scandata[30]; FldInsert(fldP, scandata, StrLen(scandata))

Need Help Urgently

2001-12-12 Thread atul
Hi All, I am stuck up in very bad situation. I have written a conduit in VC++ using SDK 4.02 using Win200. I am trying to Connect to SQL Server 6.5 in my conduit. I have used win2000 for conduit development SQL server is on that machine which has OS as win NT When I load my condui

RE: StrToLower - src the same as dst?

2001-12-12 Thread Ken Krugler
>Actually Transliterate has other problems >because it needs GlueLibrary for previous versions. Yes, if you want to run on pre-3.1 ROMs then you'll need to link against PalmOSGlue. But I don't consider that a "problem" :) >BTW, Ken. I doubt that SS is translated into '=DF', >even assuming you u

Re: Saving Form Results to a DB (DmWrite Bus Error)

2001-12-12 Thread Mark Smith
John Marshall <[EMAIL PROTECTED]> wrote: >Remember: when you can immediately think of something about the SDK >that "would be a lot better if", the chances are that the SDK writers >thought of it too. :-) Except for MemSet of course. -- For information on using the Palm Developer Forums, or

RE: Fussy Routine

2001-12-12 Thread Avilla, Dane
> > I just tried your suggestion (MemHandleResize) and it > didn't work. Thanks > for the speedy reply. > > regards, > > Dave Mottorn > > Unfortunately, I think you've got something else going on . . . I took your UpdateFieldTm() function and pasted it into a new CW project. Then, i

RE: Fussy Routine

2001-12-12 Thread Avilla, Dane
Hmm . . . at first I agree with you, but on second thought, I don't think it really matters. Since he converting a UInt32 to a string, he needs an 11 char array for any given number. If the handle he gets from the field is not 11 chars, there is a _potential_ problem. Of course, as long as the

Re: Terminal Services client for Palm?

2001-12-12 Thread Dave Lippincott
Terminal services doesn't even work 100% on PPC, I doubt we'll see in on Palm in the near future. On the brighter side, in my dealings with Citrix, it has been implied to me that they are working on something that is Palm OS compatible. Don't know what, I haven't kept up with their news releases

RE: Fussy Routine

2001-12-12 Thread Max Bian
I would use this: if (MemHandleSize (oldhand) < 11) { MemHandleResize (oldHand, 11); } Make sure the size is large enough! :) Max --- "Avilla, Dane" <[EMAIL PROTECTED]> wrote: > Hope this helps . . . > > -DGA > > > oldhand = FldGetTextHandle(fld);

Re: Saving Form Results to a DB (DmWrite Bus Error)

2001-12-12 Thread Ben Combee
> Remember: when you can immediately think of something about the SDK > that "would be a lot better if", the chances are that the SDK writers > thought of it too. :-) There's often a good reason for the way things > are done. Ah, but making pronouncements about the SDK only to be illuminated l

RE: Fussy Routine

2001-12-12 Thread Dave Mottorn
I just tried your suggestion (MemHandleResize) and it didn't work. Thanks for the speedy reply. regards, Dave Mottorn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Avilla, Dane Sent: Wednesday, December 12, 2001 11:26 AM To: Palm Developer F

Re: Terminal Services client for Palm?

2001-12-12 Thread Karl Perry
"Ben Combee" <[EMAIL PROTECTED]> wrote in message news:70955@palm-dev-forum... > > "Karl Perry" <[EMAIL PROTECTED]> wrote in message > news:70945@palm-dev-forum... > > > > Is a Windows Terminal Services client available for Palm? > > Not that I know, but there is a Palm OS port of VNC, a similar

Re: Saving Form Results to a DB (DmWrite Bus Error)

2001-12-12 Thread John Marshall
On Tue, Dec 11, 2001 at 10:10:38PM -0600, Ben Combee wrote: > "Michael Glickman" <[EMAIL PROTECTED]> wrote: >> GCC would give a warning in this case (when used with -Wall), will CW ? No, it won't. You might like to test your pronouncements before you make them. It'd only take a minute, and woul

RE: Fussy Routine

2001-12-12 Thread Avilla, Dane
Hmm . . . I'm not sure this is it, but on first glance, this looks like a buffer-overrun to me. You may want to check the size of the handle you get from the field on the second call to your function. I didn't code this up, but I'd check to make sure that if you find an existing handle, that i

Fussy Routine

2001-12-12 Thread Dave Mottorn
I have a version of this routine running in another program. It gets called hundreds of times without a problem. I'm trying to get two versions of it running in my second application (one for numbers and one for strings) and I've tried about everything including putting my tongue in eith

Re: creator ID macro for Notepad?

2001-12-12 Thread Ben Combee
"Aaron Ardiri" <[EMAIL PROTECTED]> wrote in message news:71025@palm-dev-forum... > > On Wed, 12 Dec 2001, Paul Nevai wrote: > > We have > > > > #define sysFileCMemo 'memo' > > > > etc., BUT I could not find a macro for NotePad (which is 'npad'). Is there > > one? Paul N. > > > > -- > > not in t

Re: Automated testing tools

2001-12-12 Thread Jake Donham
On Wed, 12 Dec 2001, Chris Tutty wrote: > As someone searching for a way to automate our release testing I'd > certainly vote for this as a good feature for POSe to have. Is there > somewhere these patches could be posted for those interested in > applying them? Patches against POSE 3.2 are at

Re: creator ID macro for Notepad?

2001-12-12 Thread Aaron Ardiri
On Wed, 12 Dec 2001, Paul Nevai wrote: > We have > > #define sysFileCMemo 'memo' > > etc., BUT I could not find a macro for NotePad (which is 'npad'). Is there > one? Paul N. > > -- not in the SDK :) time to add a #define sysFileCNotePad 'npad' to the headers i guess :) // az [EMAIL PROTE

creator ID macro for Notepad?

2001-12-12 Thread Paul Nevai
We have #define sysFileCMemo 'memo' etc., BUT I could not find a macro for NotePad (which is 'npad'). Is there one? Paul N. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Re: Xircom 802.11b - Socket never ready to write.

2001-12-12 Thread Russell K Bulmer
>- Original Message - > > I've got an application which connects to a socket on a server, and then > when that socket is ready to write to (determined using NetLibSelect()), the > app writes a logon message to the server. This all works fine using POSE > using a Visor Prism Debug ROM, usi

RE: DmStrCopy

2001-12-12 Thread Scott Johnson
> From: Sachin Kochhar [mailto:[EMAIL PROTECTED]] > Does DmStrCopy also writes the 'Null terminator' along with > the string on the database record? Yes, DmStrCopy is to StrCopy as DmSet is to MemSet and DmWrite is to MemMove. -slj- -- For information on using the Palm Developer Forums, or t

Re: Compiling Poser cleanly (was: Saving Form Results to a DB (DmWrite Bus Error))

2001-12-12 Thread Max Bian
I am using GCC 3.01, stock Mandrake 8.2 compiler. One quick example here: Platform/Incs -I./../SrcShared/Palm/Platform/Incs/Core -I./../SrcShared/Palm/Platform/Incs/Core/Hardware -I./../SrcShared/Palm/Platform/Incs/Core/System -I./../SrcShared/Palm/Platform/Incs/Core/UI -I./../SrcShared/Palm/Pla

Re: pdb files

2001-12-12 Thread Gururajan Raghavendran
hi did u try DmCreateDatabase(), in that type u can give 0 or 'appl' for an applications data database To have an introduction on Databases and their creation refer PalmOS companion & Reference. Regards -Guru >From: "Michael Lim" <[EMAIL PROTECTED]> >Reply-To: "Palm Developer

Re: Setting Alarm Vibrate and Alarm LED programmatically in PALM 4.1 for the Device m505

2001-12-12 Thread Regis St-Gelais
Take a look at AttnDoSpecialEffects -- Regis St-Gelais ing. Ingénieur de projets / Project engineer Développement informatique / Software development LE GROUPE ISAC Inc. Courriel / Email ..: [EMAIL PROTECTED] (NO SPAM!!!) Site Internet / Web s

pdb files

2001-12-12 Thread Michael Lim
hi. Quick question, is there an example out there that shows how does one create a pdb files? I am using codewarrior. Thanks in advance mich -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

Setting Alarm Vibrate and Alarm LED programmatically in PALM 4.1 for the Device m505

2001-12-12 Thread Yuva Kumar
Hi All, Could someone please help me how to set the Alarm Vibrate and Alarm LED settings programmatically for a m505 device on platform4.1? Thanking you all. Regards, Yuva -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/sup

Re: Using multigen for placing a whole source file into a segment

2001-12-12 Thread John Marshall
On Wed, Dec 12, 2001 at 10:23:36AM +1100, Michael Glickman wrote: >> No! RT*F*M. > > I tried placing a file and text section only > and analyze the map file: looks like it IS accepted. Tomorrow you will post saying "the compiler DID accept it, but it crashed when I ran it". There is a differen

DmStrCopy

2001-12-12 Thread Sachin Kochhar
Does DmStrCopy also writes the 'Null terminator' along with the string on the database record? Regards Sachin -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/

  1   2   >