Re: DmNumRecords

2006-08-07 Thread Thomas Damme
Durgesh Trivedi schrieb: when i try to count the records frm todo database using the function DmNumRecords it give the count for those records also which are deleted frm the data base. for example we have 5 records in the data base its show still 5 after we delete the 2 records But it

Re: Using sysAppLaunch

2006-08-04 Thread Thomas Damme
Durgesh Trivedi schrieb: I want to switch frm my application to todo application but using function sysAppLaunch givng run time error that the data base can't be launch.Even i open the database by DmOpenDatabaseByTypeCreator and it open the todo database. please help me If it fails, how

Re: how to customize table/list styles

2006-08-04 Thread Thomas Damme
[EMAIL PROTECTED] schrieb: I want to change the background color, text color and highlight color of Palm table or list. I also want to highlight the selected row with a image instead of a single color rectangle. I am using POL::CTable, POL::CList, POL::CGrid and etc. Is there any way to do

Re: Send file over to Wndows Server

2006-07-28 Thread Thomas Damme
[EMAIL PROTECTED] schrieb: Thanks for your kind response. I can send plain text of two three lines to server succsessfully so after encode it and decoding at server side. I may guess that my http header is okay. First, what encoding do you use? Does you WebServer support this encoding? I am

Re: Custom Data Resource Bug in Constructor

2006-07-28 Thread Thomas Damme
Mehul Patel schrieb: Hi, I have found a problem (may be a Bug) in Custom Data resource of Constructor. I am adding 2-3 applications in Custom Data resource which is a part of my original application. But it seems that it is not updating the application added as resource, instead it attaches

Re: Help in Hiding the files from the Delete List

2006-07-28 Thread Thomas Damme
Kishor Bhushan schrieb: Hi John, I have created different creator Id for my application. but i was using the old application creator Id for some time. Now the problem is all the files are getting displayed in the delete list. I want only the main PRC should be displayed and all the others

Re: Send file over to Wndows Server

2006-07-26 Thread Thomas Damme
[EMAIL PROTECTED] schrieb: I want to send palm files like .prc, .bmp or .jpg over to windows server. For that I am using ExgDbWrite to store that file data in buffer and use NetLib functions(http POST) to send data to server. Server simply take that data and create file there. But I am

Re: Char*

2006-07-25 Thread Thomas Damme
First of all, you should post some code where you think your error lies. Second, maybe you shoudl buy a book about C/C++ !? MemPtrNew() and MemPtrFree() correspond to malloc() and free() in C. Char *gBuffer = NULL; void AppStart(){ gBuffer = (Char*)MemPtrNew(1000); } void AppStop(){

Re: Memory Leak Detection tools

2006-06-14 Thread Thomas Damme
Dmitry Grinberg schrieb: the current public version will not. but if there is interest, i can make a version to do that. Yes, of course. Especially for exisiting apps it would be a good way to check if and where memory leaks are. Since the Simulator does not report that as good as the

Re: writing an eventhandler

2006-06-01 Thread Thomas Damme
Søren Bay Kastrup schrieb: Hi, I want to use the sysNotifyLateWakeupEvent. But I'm not quit sure how to write an event handler and where to place it. I'm using codewarrior. This is no real Event. Instead its a notificationyou have to register for. Look at Notification Manager in the docs.

Re: send bitmap image to server.

2006-05-30 Thread Thomas Damme
[EMAIL PROTECTED] schrieb: Hello Everyone, I am developing one application that send bitmap image to server. I dont find any hint to send directly send bitmap to server. So I first want to convert bitmap into jpg file then send jpg file to server. I found that it is possible using Exchange

Re: palm serial number

2006-05-08 Thread Thomas Damme
she schrieb: how do i get programmatically the serial number of a certain unit? is it the same as the ROM serail number? do all palm units have serial numbers? i'd like to get a unique identifier for each palm unit. thanks a lot! sHe We use the ROM-number although its not availiable on all

Re: App crashes on Tungsten T3

2006-05-02 Thread Thomas Damme
sachin jesukaran schrieb: hi everyone, please help me out with this My app works well on the PalmOS5 simulator, but on Tungsten T3 simulator, i am not able to exit the program with the application Launcher button doing so crashes the simulator How about debugging your

Re: HELP NEEDED

2006-04-25 Thread Thomas Damme
nitin baranwal schrieb: Hi I created one application for Palm OS using codewarrior 7. When I copied the same application at dofferent machine with same OS and setup, and I tried to modify the text of label or name of form etc, nothing is working. These fieds are non editable. I am not able to

Re: Hotsync wrecks touch screen

2006-04-12 Thread Thomas Damme
Mark Chauvin schrieb: I have a customer that installs my program and his digitizer loses its calibration. It's on a m100, and I've never seen this happen before. What could be causing it? All he has to do is install the .prc with Palm Desktop, do a hotsync, and his digitizer calibration is

Re: NVFS and Z22 = Troubles?

2006-04-06 Thread Thomas Damme
Regis melo schrieb: Hello! There is any related issue about Palm Z22 and NVFS? We've some users that reports crashed with PDBs when are using Palm Z22... :-( Recently i read that a record that you read by DmQueryRecord/DmGetRecord is only valid as long as you keep the handle

Re: Querying a database

2006-03-31 Thread Thomas Damme
Joel Henderson schrieb: I am new to Palm databases. Here's my questions: 1) I need to import about 30,000 records onto a Palm TX. Can anyone recommend a software tool that I could use to import these records from MS Excel and export it to a pdb file that the Palm OS will be able to read?

Re: Simple program help needed!

2006-03-24 Thread Thomas Damme
[EMAIL PROTECTED] schrieb: I need to write a simple program for a Zire 72 which can recieve a bluetooth signal from another device(phone) such as: 255,0,100 255,1,100 255,2,100 255,3,100 255,4,100 255,5,100 255,6,100 255,7,100 255,8,100 255,0,127 255,11,127 255,12,127 255,12,127 255,13,127

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Thomas Damme
titleItemList[i] = (char *)MemPtrNew(StrLen(dbRecipePtr-title)); StrCopy(titleItemList[i], dbRecipePtr-title); Simple example: - we assume the title is foo - then StrLen(title) is 3, right? - so you allocate a buffer of 3 bytes - then use StrCopy to copy foo

Re: Help me. LstSetListChoices is not working..

2006-03-23 Thread Thomas Damme
(somehow my other message appeared without subject and with date set to 1970..) titleItemList[i] = (char)MemPtrNew(StrLen(dbRecipePtr-title)); StrCopy(titleItemList[i], dbRecipePtr-title); Simple example: - we assume the title is foo - then StrLen(title) is 3, right? - so you allocate

Re: global array

2006-03-22 Thread Thomas Damme
[EMAIL PROTECTED] schrieb: Hello, i want to use a global Array ex: array[1024]. is it to be used better the memory manager? Especially older Palms have very limited stack size and this array as global eats up a lot of it. In my opinion its better to declare a pointer as global and allocate

Re: Appliction-specific Prefs panel; how?

2006-03-06 Thread Thomas Damme
Luc Le Blanc schrieb: Maybe I was then day dreaming, but I sort of recall reading that apps could add their own preferences panel in th built-in Prefs. program. If so, how? Nor my programming bible nor the companion explain that. It should be an application with type 'panl' and your own

Re: Algorithm for TxtCompare

2006-02-17 Thread Thomas Damme
Dave Carrigan schrieb: I need to create databases on the desktop that are sorted in the same order that they would be sorted on PalmOS using TxtCompare and TxtCaselessCompare. The TxtCompare docs say that it uses up to 6 comparison tables for sorting. However, I can't find any information on

Re: Timer

2006-02-17 Thread Thomas Damme
Nicolás Balparda Bossi schrieb: Could anyone give me some advice on how to use a timer on palm? I really cant find anything useful :( It depends what kind of timer you want. If you want a irregular timer with seconds to days delay, the choose the alarm manager. If you need more regular

Re: How to install Applications (*.prc) files in code?

2006-02-13 Thread Thomas Damme
[EMAIL PROTECTED] schrieb: I get Application from server to palm os client and I want to install it. Is there any function to do it? Or should i just copy application (*.prc) file some folder? Or open (*.prc) file and do something about it? -timo Download the Conduit Development Kit from

Re: Custom launch codes....

2006-02-13 Thread Thomas Damme
babbu cathy schrieb: all, Can anyone tell me How to register for a Custom launch code in my application. There is no need to register for a custom launch code. You just handle it in your PilotMain-function: UInt32 PilotMain(UInt16 cmd, MemPtr cmdPBP, UInt16 launchFlags) { Err

Re: What's the restriction with PilotMain( )

2006-02-10 Thread Thomas Damme
henryxu schrieb: Some times, the application will restarts ceaselessly because of invalid accessing variables in PilotMain. What's other restriction of the PilotMain( )? That depends on the launch-code PilotMain is called with. On certain Launch-codes you are not allowed to access global

Re: Regarding Palm CDK4.03

2006-02-01 Thread Thomas Damme
sanjib mohanty schrieb: Hai this is sanjib, we are using palm cdk4.03 with VC++ .net 2003 for creating the conduit. It shows the following error: object with program ID VsWizard.VsWizardEngine cannot be created. Can any one suggest reagrding this problem Regards, Sanjib Just look for file

Re: Is Palm OS deing?

2006-02-01 Thread Thomas Damme
- Tungsten E2 1. It has very many bugs with NVFS. After reset sometimes some dbs are disappeared or corrupted. It can be solved with DmSyncDatabase function inserting after db changing. But perfomance became too little. I do not want Palm to go back to the old memory they had before. Sure,

Re: Is Palm OS deing?

2006-02-01 Thread Thomas Damme
It doesn't mean where reset is caused - in my app, other app or reset is done by hand. Result is one - dbs are disapeared. Problem is that RAM is restored from NAND Flash after reset incorrect, i.e. sychronization between NAND Flash and RAM is disturbed. Yes but thats the case with every

Re: Error in Net Library with GPRS

2006-01-18 Thread Thomas Damme
Could you be a little bit more specific? This is an error that can occur in every part of the application and is not nessesarily caused by the NetLib. You should isolate the function that produces this error and post the code around that here. Otherwise nobody is able to help.. Thomas

Re: Copy contents of a large DB to VFS

2006-01-16 Thread Thomas Damme
You never check if the end of the filestream maybe reached. From the docs it seems FileRead does not throw an error when it reached EOF, you just get 0 read bytes back. And then you still iterate endlessly in you loop Thomas -- For information on using the PalmSource Developer Forums,

Re: Chinese development?

2006-01-16 Thread Thomas Damme
Jeff Metzner schrieb: For a presentation, one of our salespeople wants to show a Palm form in English, and the same form in Chinese (actually Mandarin.) They can be two separate apps, if necessary. We have employees that speak Chinese, so translation is not a problem, but I don't know how to

Re: Invalid chunk ptr

2005-12-07 Thread Thomas Damme
Benjamin Bloomfield schrieb: What's the best way to figure out what is causing an invalid chunk ptr? It happens immediately after my application exits, if a certain block of code of my application was executed. However, this code block works fine by itself in a test application. I'd be

Re: too many called functions - how to get more ?

2004-12-20 Thread Thomas Damme
to have as few functions as possible. But this could result in a bad design since I'm proud to have a good one right now ;-) Regards, Thomas Thomas Damme schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hello all, does somebody know how I can increase the number of possible sub-calls

too many called functions - how to get more ?

2004-12-16 Thread Thomas Damme
Hello all, does somebody know how I can increase the number of possible sub-calls of functions? By now one of my programs has too many of them since I use a special framework that calls a Table-Function, which has many sub-calls too. The program often crashes on very clean code-lines. If

SSL-Lib on Tungsten-T

2004-09-21 Thread Thomas Damme
Hello all, as I realised the Tungsten-T is not delivered with the SSL-Library. Is there a way to get it running on the T-T and where can I get it? Thanks, Thomas -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Serial Comm at 9600,7,1,E

2004-06-17 Thread Thomas Damme
Hello, I'm trying to communicate with a device whose serial port runs at 9600 baud, 7BitsPerChar, 1 Stopbit, Even Parity. I send bytes from a buffer but I never get any answer. Thats why I connected to Palm via Cradle to my PC's HyperTerminal and see that nothing comes out of the serial Port.

Re: How to tell when user opens a T3 ?

2004-03-12 Thread Thomas Damme
You will get the event winDisplayChangedEvent Thomas Jeff Diamond [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Palm group. The T3 emulator doesn't slide open and closed like a real T3, and we can't figure out how an app can be alerted when the user slides open or closed his

Re: PltInstallFile error

2003-11-03 Thread Thomas Damme
The function definately works for me. Either you specified the wrong path, the wrong username or (most common) the file is already there because of prior testings ;-) Maybe you should post some code if the problems persists... TD Alex Gusev [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: how to set path when using VFSFile open

2003-10-09 Thread Thomas Damme
Did you try / ? For VFS you cant use \ only /. Thomas Karthik Sharma [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] if i want to specify the root directory as \it is not taking.i am using VFS for the first time.people with experience plz do reply. regards karthik --

Re: Flushing data to VFS - bufferring question

2003-09-19 Thread Thomas Damme
Hello Murad, You can allocate a MemoryPtr with a size larger than 64 by MemChunkNew and the Flag memNewChunkFlagAllowLarge. Look for this in the forum, it has been discussed. I see no use for Buffers larger than 500k because most of the PalmOS devices dont even have so much dynamic space

Re: memory leaks/database storing

2003-08-18 Thread Thomas Damme
Hello meg, actually there is nothing in these 2 lines that could cause memory leaks. You should provide us with some more code to detect them and to find out, why the content of newData is not stored in your database. But what I can see from the 2 lines: The first is not the way you would use a

Re: memory leaks/database storing

2003-08-18 Thread Thomas Damme
Sorry, just found your original posting. Started the list from the top ;-) So forget what I wrote before. 1.) your function BuildAnswerString create a chunk in the dynamic area so you have to free it after you call QuestionEditRecord 2) With this code you just store strings in the database like

Re: VFS performance questions

2003-08-18 Thread Thomas Damme
Hello Richard, you are 100% right with your conclusion to handle bigger blocks instead of single characters. With big blocks its much faster since it does not have to do all the VFS-conversions for every character, but for a bigger amount. You should implement a Buffer that takes all the data and

Re: How know the name fields of PDB file

2003-08-14 Thread Thomas Damme
Hi, some CSV-PDB Converters store the field names in the AppInfoBlock of a database. Take a look at DmDatabaseInfo to retrieve the AppInfoBlock if it is there. Some FileManagers also show you, if a InfoBlock is there so check this first before you do too much work. Thomas rguevara [EMAIL

Re: Re[2]: DB create/write problem

2003-08-14 Thread Thomas Damme
Hello Boris, this is more fundamental: 1) It seems, you dont understand the meaning of sizeof(). This function is processed at compile-time and just inserts the length of a specific data-type. That means: sizeof(UInt8) == 1 sizeof(UInt16) == 2 sizeof(Char) == 1 sizeof(Char*) == 4 (its a pointer

Re: SSL-Error NoTrustedRoot

2003-08-05 Thread Thomas Damme
Thanks in advance, Thomas Flex [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Make a callback and return errNone Thomas Damme [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Folks, can somebody tell me, how I can overcome the problem

Re: DB create/write problem

2003-08-05 Thread Thomas Damme
Hello Boris, I think your problem is there: err = DmWrite(p, sizeof(air.airlineID), (air.airlineName), sizeof(air.airlineName)); it should be like this: err = DmWrite(p, sizeof(air.airlineID), air.airlineName, StrLen(air.airlineName)); 1) air.airlineName is already a pointer since you aquired

SSL-Error NoTrustedRoot

2003-08-04 Thread Thomas Damme
Hi Folks, can somebody tell me, how I can overcome the problem of sslErrVerifyNoTustedRoot in the VerifyCallbackFunc? No matter which server I try to connect to, I always get this error. When I connect to them via my browser, often a window appears that some informations (the server-adress

Re: Turn on Palm when cradled?

2003-07-29 Thread Thomas Damme
Hi Hugh, I didnt find a preference to do that. But there might be a way to make a little program to do this: register for the notification sysExternalConnectorAttachEvent. This should be sent when you connect it to a cradle and you can start a program in the callback. Thomas Hugh Jasman [EMAIL

Re: Help with installing application

2003-07-28 Thread Thomas Damme
Hello Josias, what does you program when you reset or sync the Emulator? Does it crash there too? I guess, you somehow access global data in a launchcode where it is forbidden (e.g. sysApplaunchCmdSystem Reset or sys appLaunchCmdSyncNotify). Thomas Josias Silva [EMAIL PROTECTED] schrieb im

Unique IDs of SD-Cards

2003-07-21 Thread Thomas Damme
Hi Folks, we evaluate if we can use the unique ID of SD-Cards as a registration for our programs. You can call ExpCardInfo for the ID. But somehow the results differ: m505: SD016_00016437230807, T-T : SD016_000164372300D1 and even worse on a Handera 330: H330: SD016_00016437 The last 3 chars of

Re: Encrypt: Builtin DES/MD4 routines

2003-07-21 Thread Thomas Damme
Hello Murad, if you look for the Trap sysTrapEncDES in CoreTraps.h you will see that this function was introduced with PalmOS 2.x. So it is very likely that it will be present on existing and future devices. (BTW. I also checked it on my Tungsten-W and it is there!) Question in return: Are you

Re: Unique IDs of SD-Cards

2003-07-21 Thread Thomas Damme
, but what is the rest between this number and the date 00D1 ? There are still 2 digits left: 23. But anyway, Thanks alot! Thomas Jeff Ishaq [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] -Original Message- From: Thomas Damme Sent: Monday, July 21, 2003 2:46 AM

PalmOS 5.3 SDK Link Error in GlueLibrary

2003-07-17 Thread Thomas Damme
Hello Folks and PalmSource, there seems to be a problem with the new PalmOS SDK R3 DR1: When I link one of my projects I always get: Link Error: AccessorGlue.cp AccessorGlueTrapAvailiable referenced from TblGlueGetNumberOfColumns is undefined. So if you use this function, dont install the new

Re: new update CW 9 ????

2003-07-07 Thread Thomas Damme
Until now the latest patch is 9.1. Metrowerks is working on 9.2 and somewhere I read a release date of 14th of July. Hope this is still right. Thomas Rodolphe Bréjaude [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hello, Is ther a new update for CW9 ? I have 9.1 patch but

Virtual Driver under PalmOS 5

2003-06-25 Thread Thomas Damme
Hello folks, I somehow have problems writing a virtual serial driver for PalmOS 5. I created a driver based on the CryptoComm Example of PalmSource. It also works fine on PalmOS4.x-devices and the Emulator. But I cant get it running on a Simulator or a T-T. The new device-ID does not appear. I

Re: Multi segment problem with typedef struct

2003-06-25 Thread Thomas Damme
I think, the segment has nothing to to with this. Did you declare the struct in the second file? You should place the declaration in a header file and include it into both files: include-file typedef struct{ UInt8 lastHighScore; } GamePreferenceType first file #include headerfile.h

Re: Palm Application Packaging

2003-06-25 Thread Thomas Damme
We usally use Pilot Catapult from www.beiks.com for the packaging. The licensing depends on your customers. TD Paturi, Ramesh P (IndSys) [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] All: I have made a PRC application and I have to distribute the same to the clientele. Is

Re: Check lock count

2003-06-12 Thread Thomas Damme
Hello, the number 15 is seen as a maximum of locks. If you reach it, you probably doing something wrong. Its supposed that you unlock a resource as soon as you dont need it anymore. So if you reach 15, are you sure you properly unlock it after every usage? Thomas DongDong [EMAIL PROTECTED]

Re: Check lock count

2003-06-12 Thread Thomas Damme
To answer to your question right: MemHandleLockCount should do this. Its defined as: UInt16 MemHandleLockCount(MemHandle h); Thomas Thomas Damme [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hello, the number 15 is seen as a maximum of locks. If you reach it, you probably

Re: Can't reset Tungsten W

2003-06-05 Thread Thomas Damme
It definately works for me: pressing the Power-key, do the reset and wait for some time before releasing the Power. Then I'am asked to erase the data. Did you press the Power long enough? Thomas Mark Cameron [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] This is not my

Re: Awake me... Say me that I am mistaken!

2003-03-26 Thread Thomas Damme
Not to forget the missing capture-library on the new devices and in the SDK. We almost finished an application for the NR70 that capures pictures just to realize that NX70 and NZ90 dont have the library anymore :(( Thomas JiheM [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED]

Problems with new[]

2002-10-18 Thread Thomas Damme
Hello, I found out, that the operator new just fails and quits the program without any comment if there is not enough space to create an (C++) object. Can you give me some suggestions how to solve this? I dont want to wrap every new[] into ErrTry..ErrCatch in my code. A single function that

SDCard security

2002-10-11 Thread Thomas Damme
I would like to use SDCard-security-functions in my application. I think this can be done by calling VFSCustomControl, but for this I need a filesystem that supports the SDCard-API and exports a list of api-selectors. Does the standard-VFS supports this API? If no, is there an other VFS that