re: callback function

2006-03-19 Thread l3slie_16
or at least can somebody expalin what is different in programming in treo in 
compare to tungstan?
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


re: callback function

2006-03-18 Thread l3slie_16
yes, i have tried that program alredy. i am using Tungstan T2 right now and 
that program doesnt run the program. i was able to create sound output but i 
dont know what to do for sound input stream! can you help me?

-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


re: callback function

2006-03-17 Thread she
you can download  a source for this on mytreo.net. it's a complete source for 
audio recording. look for the SoundRec app. Im just not sure if it will work on 
all device. but i think source code are pretty much the same.
-- 
For information on using the PalmSource Developer Forums, or to unsubscribe, 
please see http://www.palmos.com/dev/support/forums/


Re: Callback function

2004-05-21 Thread Douglas Handy
Ben,

>Just take the return value of the call, subtract one, ...

But remember to check that it did not return 0 as the sort position.  I believe
that can happen when the new value is below than all existing records.  In such
a case, you don't want to subtract one first.

Doug

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


re: Callback function

2004-05-21 Thread Ben Combee
At 06:30 AM 5/21/2004, you wrote:
Gavin,
The return from DmFindSortPosition will give me the record position. I 
am also trying to determine whether the record already exists in the 
database. (A return value of 0 would tell me that it exists).  I need to 
know whether the record should be added or modified  The unique key in 
my database is a customer number.

So is there a way to get the return value (-, 0, +) from the callback 
function?
No, there's no way to get that value returned as part of the 
DmFindSortPosition call.  However, it's really simple to do your own 
DmQueryDatabase on the return value and call your own callback to do a 
final comparison after the system's found the position.  Just take the 
return value of the call, subtract one, query that record, and then pass 
that pointer along with the pointer to the new value to the callback function.

-- Ben Combee, DTS technical lead, PalmSource, Inc.
   Read "Combee on Palm OS" at http://palmos.combee.net/

--
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


re: Callback function

2004-05-21 Thread Chris Hall
Gavin,
The return from DmFindSortPosition will give me the record position. I am also 
trying to determine whether the record already exists in the database. (A return value 
of 0 would tell me that it exists).  I need to know whether the record should be added 
or modified  The unique key in my database is a customer number.   

So is there a way to get the return value (-, 0, +) from the callback function?

Thanks so much!
  Chris
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/


re: Callback function

2004-05-20 Thread Gavin Maxwell
Why do you care what the callback returns? You should be more interested in what 
DmFindSortPosition returns.


HTH,
Gavin.
-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/