Re: Strange crash when beaming to PalmOS 3.x

2006-03-18 Thread Dr. Vesselin Bontchev
1) The crash occurs even if I remove this attribute from the database and send it manually (separately from the application). 2) The crash doesn't occur on the 3.5 emulator when sending the database to itself. 3) What "modified database notification"? I use sysAppLaunchCmdExgReceiveData and th

Strange crash when beaming to PalmOS 3.x

2006-03-15 Thread Dr. Vesselin Bontchev
Hello folks, My application uses a PDB database. The database has the dmHdrAttrBundle attribute, so that it can be beamed together with the application. In addition, the application itself registers to receive such a database and can send the database to another copy of itself on another device

One more try - control id

2005-07-29 Thread Dr. Vesselin Bontchev
Well, *where* does this object come from? There are only two ways in which an object could have appeared on your form - either you put it there with the Resource Editor when you were designing the form, or you have created it dynamically with FrmNewBitmap(), FrmNewGadget(), FrmNewLabel(), CtlNe

how to get database operation events?

2005-07-27 Thread Dr. Vesselin Bontchev
What do you mean by "database operation"? PalmOS 5.x broadcasts notifications for a whole bunch of database-related events - search the Reference for notifications, the names of which begin with "sysNotifyDB". Under the earlier versions of PalmOS, you have to patch the system traps that corresp

How do I get the control's ID?

2005-07-27 Thread Dr. Vesselin Bontchev
Use FrmGetObjectId(). Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

copy protect my application

2005-07-27 Thread Dr. Vesselin Bontchev
Assuming that you know the coordinates of the database (i.e., its cardNo and LocalID), you can set its beam protection attribute like this: Err BeamProtect (UInt16 cardNo, LocalID dbID) { Err err; UInt16 dbAttr; err = DmDatabaseInfo (cardNo, dbID, NULL, &dbAttr, NULL, NULL, NULL, NUL

Common Dialog for PalmOS?

2005-07-20 Thread Dr. Vesselin Bontchev
> Yes there was one called Universal File Dialog, but it was not > free to use. http://www.toysoft.ca/ufd.html Ah, that Web page says that it is free. It looks quite nice, too - but is a bit on the large side for the kind of functionality it provides. At one time I was thinking of using it in my

How Do I subtract two dates?

2005-07-17 Thread Dr. Vesselin Bontchev
Use DateType Date1, Date2; UInt32 DeltaDays; // : // : // Assuming that Date1 is after Date2: DeltaDays = DateToDays (Date1) - DateToDays (Date2); For time, use TimDateTimeToSeconds() instead of DateToDays(). Regards, Vesselin -- For information on using the PalmSource

freelance help / active posters

2005-07-15 Thread Dr. Vesselin Bontchev
> Ben has worked for Palm Source and now works for Palm, Inc. I know that - but I very much doubt that his real job there is to read this forum and post helpful messages to it. :-) > i think there may be a total of 5-6 developers > who actually have > 1000 posts to palm-dev-forum :) How strang

trycatch mechanism

2005-07-14 Thread Dr. Vesselin Bontchev
Yes, it is required, I think - or at least it doesn't make sense not to have it. These are essentially macros, based on setjmp and longjmp. They are not some kind of universal error handler - just a way to transfer control in unusual ways (e.g., directly accross functions - something that goto c

freelance help

2005-07-14 Thread Dr. Vesselin Bontchev
> As an example, I think Vesselin has answered about ten times as > many questions for other people as he's had answered of his. I just thought that it's fair - if people have helped me, it is my duty to help people, too. Especially people that are in a position where I have been - because I kno

Preventing Progress Dialog from opening DIA

2005-07-13 Thread Dr. Vesselin Bontchev
>> However, I think you can close it by calling PINSetInputAreaState >> (pinInputAreaClosed). > >I tried it, but it gets restores when the Progress Dialog gets >displayed. I meant calling it *after* the Progress Dialog is displayed, of course. Something like this: ProgressPtr prg; prg =

Build project after editing resources

2005-07-12 Thread Dr. Vesselin Bontchev
Interesting. The way I was solving this issue was by keeping open in an editing tab the .h file generated by the Resource Editor. Then, after making some changes to the resources and saving them with the RE, I would activate this window in PODS. PODS notices the change then and asks whether to r

Preventing Progress Dialog from opening DIA

2005-07-12 Thread Dr. Vesselin Bontchev
First, let me note that I've never done DIA support myself; that's the next item on my list of things to learn. :-) I suspect the problem comes from the fact that the Progress Manager doesn't have built-in DIA support. However, there probably is a way around that. I don't know how you can *prev

new prc install

2005-07-08 Thread Dr. Vesselin Bontchev
I think you're confusing something. When a new application is installed on the device (or when the databases with the same creatorID as the application are updated) via HotSync, beaming, by the PalmSource Installer, etc., PalmOS runs that application with a sysAppLaunchCmdSyncNotify launch code

How to HotSync the simulator?

2005-07-07 Thread Dr. Vesselin Bontchev
Nevermind, I figured it out. The Palm OS documentation at the above URL is obsolete and misleading. First, there is no "Network" button - it's "Modem". Second, the documentation doesn't say that, on the side of the HotSync application running on the simulator, you have to do the following settu

PalmOS Developer Suite will not launch Emulator

2005-07-07 Thread Dr. Vesselin Bontchev
You configure that from a different place. First, select "Window/Preferences" from the menu of PODS. You'll see a dialog with two panes. On the left pane, there is a tree-like structure. Expand the "Palm OS Development" node and select the "Target Environment Settings" node. As soon as you do t

How to HotSync the simulator?

2005-07-07 Thread Dr. Vesselin Bontchev
Hello folks, My application can activate on HotSync completion and one of the testers is reporting that it crashes then. In order to debug this, I'd like to debug it as the simulator is HotSyncing. But, for some reason, I can't figure out how to do it. :-( First of all, I am using the Tungsten

ptr is handle error?

2005-07-07 Thread Dr. Vesselin Bontchev
OK, folks, I *think* I solved it - although whether I indeed have, I'll know only when my tester tries the new version. I found one place where, if an error occurs (which it does when telling the application to scan the memory card under an Emulator that doesn't have SD card support), I close a

ptr is handle error?

2005-07-07 Thread Dr. Vesselin Bontchev
> This is definitely a case of accessing a non existent memory > location. Ah, are you sure about that? I thought that accessing non-existent memory tends to produce other kinds of errors - NULL pointer references, access to unallocated memory, etc. But "ptr is a handle"? It sounds as the progra

ptr is handle error?

2005-07-07 Thread Dr. Vesselin Bontchev
Hello folks, One of my testers is reporting that under the Emulator running PalmOS 3.5, my application causes SysFatalAlert with the message: “MemoryMgr.c, Line:4456, ptr is handle”. Problem is, I can't reproduce that, so I can't debug my application and see why the error occurs. Could somebod

preventing change to the palm clock / finding out the "real time"

2005-07-06 Thread Dr. Vesselin Bontchev
> Update: I forgot that there's also the sysNotifyTimeChangeEvent > notification -- this one includes the time change delta value but > you have to register for it. You can use this along with the alarm > manager to set alarms that activate and deactivate your > application. Won't work. A maliciou

preventing change to the palm clock / finding out the "real time"

2005-07-06 Thread Dr. Vesselin Bontchev
> Also, on devices like the Treo 650, the time can be set by the > network, which means this notification is sent without user control. On a Treo 650 or any other 'net-enabled device, one could connect over the net to one of the astronomical clocks and see what the real time is. But the original

F-PROT Anti-Virus for PalmOS - beta testers needed

2005-07-05 Thread Dr. Vesselin Bontchev
Hello folks, As some of you know, in the past few months I've been writing an anti-virus program for Palm OS. Not because I think that Palm OS viruses are a serious problem or anything like that, but because I bought a Palm OS device (Tungsten E) for my mother and wanted to learn to program for

Database - Writing data to a record

2005-07-04 Thread Dr. Vesselin Bontchev
> StrCopy(newRecord->time,"test"); He didn't include the declaration of "newRecord" so we don't even know whether it is a structure or just a type, but assuming that it's a structure, don't you really mean StrCopy (newRecord.time, "test"); ? :-) Your example assumes that it's a pointer - but i

Viruses, Keyloggers, et al

2005-07-01 Thread Dr. Vesselin Bontchev
> Small, green and wrinkled ... Size matters not. :-) > As I see, it can be of an advantage to be in a niche market. Yes; another advantage is that since the number of known malware is small, it is relatively easy for one person to analyse it, understand it, and implement proper handling of it

trapping SMS msgs

2005-06-30 Thread Dr. Vesselin Bontchev
Essentially, you can't patch system traps under Palm OS 5.x. The author of YAHM claims that it is possible to do it, if you write the patch as ARM code and has even written a hack manager for Palm OS 5.x. Unfortunately, the documentation of how exactly to do it is somewhat on the lacking side. A

Re-arranging functions in a code segment

2005-06-30 Thread Dr. Vesselin Bontchev
Hello folks, The code of my application is signifficantly less than 64 Kb - it is only about 45 Kb. Nevertheless, long time ago I started getting "text segment full" errors from the linker of PODS (ld). Obviously, this happened because the distance between some function and the function it was

code obfuscator for Palm?

2005-06-29 Thread Dr. Vesselin Bontchev
Disassembling a .PRC file is trivial. There are freeware disassemblers that do a so-so job and a commercial interactive disassembler (IDA) that does a relatively superb job. Figuring out what the original .C source was takes just a little bit of experince. I don't know 68k assembly language wel

Bitmap Rsrc

2005-06-29 Thread Dr. Vesselin Bontchev
On what machine/OS are you developing? Usually it is the Macintosh that ends lines with Carriage Returns only - i.e., Chr(13) - while the various brands of Unix use Line Feed only - i.e., Chr(10) - and Windows uses both - i.e., Chr(13)Chr(10). It sounds as if your problem is caused by somebody

List control setting values

2005-06-29 Thread Dr. Vesselin Bontchev
After changing the list element, don't forget to call LstDrawList, so that the list is redrawn with its new contents. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

LaunchDB already open?

2005-06-29 Thread Dr. Vesselin Bontchev
Sigh... And the solution is: there is no solution. Yep, folks, it's yet another case of "you can't do that" that Palm OS is so full of. :-(( In this particular case, it seems that you cannot change the attributes or delete a database that is about to be launched from a hack that has intercepted

LaunchDB already open?

2005-06-29 Thread Dr. Vesselin Bontchev
Another thing. I tried using DmDeleteDatabase instead of setting the Recyclable attribute. This causes *exactly* the same error - except that after the reset, the unwanted application is gone. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, ple

LaunchDB already open?

2005-06-29 Thread Dr. Vesselin Bontchev
Some additional information. Interestingly, the attributes of the database containing the application are 0x0009 before I try to set the Recyclable attribute. That is, dmHdrAttrResDB|dmHdrAttrBackup. Note that the dmHdrAttrOpen attribute is *not* set - why, then, the complaint that the database

LaunchDB already open?

2005-06-29 Thread Dr. Vesselin Bontchev
No, it's not a system problem. It must be something that *my* application is doing incorrectly. I've seen other applications that use exactly the same approach to prevent unwanted applications from being launched - and they work just fine (i.e., no such error) on the emulator. Regards, Vesselin

Viruses, Keyloggers, et al

2005-06-29 Thread Dr. Vesselin Bontchev
> I know there are some (?) ppl here actually working on AV apps for > Palm Yup, there are some of us. :-) > How severe is the actual (or maybe upcoming) threat by malicious > apps for PalmOS? The Dark Side clouds everything... Difficult to see, the future is. :-) As for the present and specifi

Is the PACE Native Objects good?

2005-06-29 Thread Dr. Vesselin Bontchev
You might want to browse the pno-forum and maybe ask your question there. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

LaunchDB already open?

2005-06-28 Thread Dr. Vesselin Bontchev
Hello folks, I am trying to prevent the launching of some applications. The only way to do this is by setting the Recycled bit of the application and resetting the device - this forces the application to be deleted. Works fine from a notification under Palm OS 5.x. However, the Emulator shows a

Are hacks allowed to display forms?

2005-06-28 Thread Dr. Vesselin Bontchev
Hello folks, If a piece of code receives control from a system trap patch, is it allowed to display forms, alerts, etc.? In one place my application loads and displays a form via FrmInitForm, FrmDrawForm, etc. This works fine when invoked from a notification under Palm OS 5.x - but seems to lo

Palm OS Resource Editor and Resource Header File

2005-06-28 Thread Dr. Vesselin Bontchev
If you're just starting to switch to PODS, don't have any projects written for it, and are moving from CodeWarrior, then you might want to download the ersion 1.2.1.02 build 02E_121PA update. (From the Help menu of PODS, select Software Updates, then Find and Install.) It contains version 6.3.0.

List control code example

2005-06-27 Thread Dr. Vesselin Bontchev
Try this, for instance: http://onboardc.sourceforge.net/cookbook.html#lists Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Problem with uppercasing input

2005-06-27 Thread Dr. Vesselin Bontchev
In Palm OS 5.x, direct manipulation of the event queue no longer seems to work - as those who keep recommending exiting an application by stuffing an AppStop event directly into the event queue will discover to their chagrin. As to how exactly to achieve what you want - I don't know; I've never

Palm OS Dev Suite

2005-06-27 Thread Dr. Vesselin Bontchev
> Is this list moderated? Nope. It has good sides - a moderated list usually has slower response (until the moderator appoves the original message and the replies to it) and also tends to pose significant load on the moderator, and it is sometimes difficult to find a person willing to do the (c

Palm OS Dev Suite

2005-06-27 Thread Dr. Vesselin Bontchev
> Any tutorials for Try this one: http://www.palmos.com/dev/support/docs/dev_suite/PalmOSDevSuite/ToolsTOC.html Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Determining folder path for application

2005-06-27 Thread Dr. Vesselin Bontchev
> You mentioned that you don't think you get a > sysAppLaunchCmdCardLaunch in all non-memory launch or program > start situations. No, I didn't say that. I said that the /PALM/start.prc application is not launched with the sysAppLaunchCmdCardLaunch launch code. I was wrong, though. It's not that

Determining folder path for application

2005-06-27 Thread Dr. Vesselin Bontchev
> Why don't you just use FtrMem instead? Ah, I did not know about such a function... Oh, you probably meant FtrPtrNew? Indeed, this way one doesn't need the trick that marks the allocated memory as belonging to the OS. In other words, instead of savedPath = (Char *) MemPtrNew (StrLen (path) +

Determining folder path for application

2005-06-24 Thread Dr. Vesselin Bontchev
I thought that the Launcher can launch applications only from the /PALM/Launcher folder? Well, that and the /PALM/start.prc allication - but that one doesn't receive the sysAppLaunchCmdCardLaunch launch code. Oh, well, maybe the Launcher of LifeDrive is more advanced in this aspect. Anyway, bac

PODS makefile error

2005-06-24 Thread Dr. Vesselin Bontchev
> MAKE Version 5.2 Copyright (c) 1987, 2000 Borland That's not the make program that comes with PODS. No wonder that it cannot handle the makefile created by PODS. Please check the contents of your PATH variable. For some reason, a directory containing the above make program is listed there bef

Deleting databases during their enumeration

2005-06-23 Thread Dr. Vesselin Bontchev
> This code will work if the Palm keeps its list of databases in a > structure resembling a linked list. It assumes that Palm OS keeps a *copy* of pointers to the databases in a linked list. I don't think that this is the case. I think that there is only one place that serves as a "table of con

Deleting databases during their enumeration

2005-06-23 Thread Dr. Vesselin Bontchev
> storing the LocalID seems to be the fastest solution, but is > probably a big NoNo on NVFS devices as localID is not guaranteed > to remain the same. Drat, I didn't know that; thanks for the information. Funny thing is, I've seen an application that does what I want. OK, I spent the last few h

Deleting databases during their enumeration

2005-06-23 Thread Dr. Vesselin Bontchev
> How about mark the relevant databases as recyclable and reset the > device on completion? That's an interesting idea but it's not acceptable from the user's point of view. I do this only when I cannot avoid it - e.g., if at application launch time, I determine that the database has to be delet

Deleting databases during their enumeration

2005-06-23 Thread Dr. Vesselin Bontchev
Hello folks, My application enumerates all databases in the main memory of the device, using a DmGetNextDatabaseByTypeCreator loop. Each database found is examined and, if it meets certain criteria, is deleted. Problem is, deleting (or creating, for that matter) a database screws up the DmGetN

FrmDoDialog question

2005-06-23 Thread Dr. Vesselin Bontchev
> // init the fields though they are not visible yet > fld = FrmGetObjectPtr( frm, ... ); > FldSetTextHandle( fld, h ); Ah... Problem is, I have a whole subroutine for doing this stuff (writing a string to a field), because normally a bunch of other things have to be done too, and this subroutin

FrmDoDialog question

2005-06-23 Thread Dr. Vesselin Bontchev
> Manually call FrmDrawForm in your dialog code, then init the > fields, then do FrmDoDialog. OK, I tried this one too, just as an exercise. It worked, but there are some caveats. At first, I did FrmInitForm, then FrmDrawForm, then wrote to the fields, then called FrmSetEventHandler and FrmDoDia

FrmDoDialog question

2005-06-22 Thread Dr. Vesselin Bontchev
> Manually call FrmDrawForm in your dialog code, then init the > fields You mean, instead of using FrmInitForm? Or in addition to it? Ah, well, it doesn't matter. I switched from using fields to using labels and setting them dynamically at runtime, using FrmHideObject/FrmCopyLabel/FrmShowObject

FrmDoDialog question

2005-06-22 Thread Dr. Vesselin Bontchev
Hello folks, In my application, I need to display a somewhat complex dialog to the user, asking him for some information. The dialog contains two labels, two fields, a checkbox and three buttons. The contents of the fields is supposed to be filled at runtime and is for informing the user. The u

5-way table and numeric field

2005-06-22 Thread Dr. Vesselin Bontchev
> Don'nt no what FORCEINTERACTION is for. It is used for multi-line edit fields. Sets the focus to the field. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Metrowerks?

2005-06-22 Thread Dr. Vesselin Bontchev
Apparently, it has been discontinued. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

5-way navagation

2005-06-22 Thread Dr. Vesselin Bontchev
> I can recommend the PODS resource editor when you disable the auto > generation of id's. If you turn off the auto generation of IDs, it becomes totally useless, because it doesn't generate the .h file with ID #defines that you need to include in your program, in order to access all these resou

Error #16401 on HotSync

2005-06-22 Thread Dr. Vesselin Bontchev
For answers to such questions, get the freeware application ErrorCodes: http://prc-tools.sourceforge.net/errorcodes.html In your particular case, error 16401 is gsmErrIllegalMsg. I have no clue why it is occurring on a Tungsten E, though, given that this device has no GSM phone. Regards, Vesse

PODS 1.2.1.02 and Resource Editor 6.3.0.1

2005-06-22 Thread Dr. Vesselin Bontchev
> > I want to download only official releases. How can I instruct > > PODS to do that? > As of the current release, select "Search for new features to > install" and un-check "Tech Preview Update". Uhm, I never did that. I only used "Search for updates of the currently installed features". I got

Digital certificates on Palm

2005-06-22 Thread Dr. Vesselin Bontchev
> It is mentioned under each API "Implemented only if Palm OS Cobalt > Feature Set is present". Does this mean digital certificates are > not supported for devices prior to Palm OS Cobalt. Yes. In fact, the "support" seems to be flaky even in Cobalt. When I tried to digitally sign an application,

Treo 650 Simulator problem

2005-06-19 Thread Dr. Vesselin Bontchev
> I have downloaded the Treo 650 Simulator from the plugged in site, > the file: > palmOne_SDK_4_4_Treo_650_Simulator_GSM_Telefonica_ES_Rel.zip > > I have a problem with it, since I can start it, load the rom, the > Palm logo appears, and the setup application screen Step 1 appears, > but it does n

PODS 1.2.1.02 and Resource Editor 6.3.0.1

2005-06-19 Thread Dr. Vesselin Bontchev
> We at PalmSource have been following the recent discussions > regarding the PODS 1.2.1.02 update. We're aware of a couple of > significant bugs, and want to communicate to you our position on > it before the flames get too hot. I'm sure we all will appreciate it very much if you at PalmSource co

How Create a folder in T5 and LifeDrive ???

2005-06-16 Thread Dr. Vesselin Bontchev
Do you just want to have a specific folder on your device - or are you asking how to create folders programmatically? If the former, use the freeware utility FileZ (google for it). If the latter, use VFSDirCreate(). Regards, Vesselin -- For information on using the PalmSource Developer Forums,

fnav

2005-06-16 Thread Dr. Vesselin Bontchev
> Can anyone point me to a page that fully describes the options in > the fnav resource. http://www.palmos.com/dev/support/docs/dev_suite/ResourceFileFormats/RFF_XMLReference.html > I'd like to know precisely what the SKIP etc keywords do. The SKIP_OBJECT tag specifies that the object should be

DmSetDatabaseInfo - error

2005-06-16 Thread Dr. Vesselin Bontchev
> 1. download form a server a prc file. > 2. validate the prc that I am reading > 3. if the prc is valid -> rename the prc that allready exist on > the device. This can be problematic. How and, more exactly, where do you download the prc? If you create a valid resource database on the device and

codewarrior and palm

2005-06-15 Thread Dr. Vesselin Bontchev
Depends on one's definition of "best". Personally, I find PODS nicer and more convenient. But there are things you can't do with it - e.g., POL isn't available for it. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos

Palm console mode

2005-06-15 Thread Dr. Vesselin Bontchev
It's a Graffiti symbol that looks like this: http://www.palmos.com/dev/support/docs/dev_suite/PalmOSDebugger/images/DbgTool_Connecting3.jpg Some find it more convenient to run a special application on the device that performs the same task (i.e., puts the device in console mode). There are seve

Don't upgrade to PODS 1.2.1.02!

2005-06-15 Thread Dr. Vesselin Bontchev
> It would be a good idea to have a bug reporting system accessible > to developers here for PODS. One of the developers pointed me to http://www.palmos.com/dev/support/bugs/ but that is basically just a shortcut for e-mailing to [EMAIL PROTECTED] It would be real nice to have public access to

Don't upgrade to PODS 1.2.1.02!

2005-06-14 Thread Dr. Vesselin Bontchev
Hello folks, A bit of warning, if any of you is tempted to use the incremental updates feature of PODS 1.2 (Help/Software Updates/Find and Install) to update to the newer versions of PODS/Eclipse that are available - DON'T!!! Somebody else already warned that if you let the update installation

re: I need help testing something on a T5

2005-06-13 Thread Dr. Vesselin Bontchev
Instead of sending out your whole application and having people bother obtaining demo licenses, why don't you simply create a separate stand-alone application that does nothing but test the function you have a problem with? It probably won't even have to scan for viruses - just enumerate every f

re: DB Name Field in CodeWarrior

2005-06-13 Thread Dr. Vesselin Bontchev
UInt16 cardNo; LocalID dbID; Char dbName [dmDBNameLength]; SysCurAppDatabase (&cardNo, &dbID); DmDatabaseInfo (cardNo, dbID, dbName, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL); // Now dbName holds the database name of the currently running application. Re

re: NetLibSocketConnect error

2005-06-10 Thread Dr. Vesselin Bontchev
It usually means that the socket parameter is invalid - e.g., because the previous NetLibSocketOpen failed and returned an invalid descriptor. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: SHA-1 lib

2005-06-08 Thread Dr. Vesselin Bontchev
Do you *really* use SHA-1 for *encryption* - or was that just a typo and you're actually using it just for hashing? If you indeed want to use it for encryption, you'll have to implement the cypher yourself; the implementation at the above URL contains only the hash function. If you have to imp

Re: stopping an app from starting up

2005-06-07 Thread Dr. Vesselin Bontchev
> I haven't tried this, but what about nuking the entry point to the > app instead of deleting or renaming the database? As I mentioned above, this is what Kaspersky Anti-Virus seems to be doing - overwrite the malicious application with a do-nothing application. I haven't tried it myself, thoug

RE: Tree View Menu

2005-06-06 Thread Dr. Vesselin Bontchev
The POL library is not available for PODS, meaning that there is no easy way for you to have a tree control. You'll have to write your own or wait until somebody else does. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.p

Re: stopping an app from starting up

2005-06-06 Thread Dr. Vesselin Bontchev
> PalmOS 5 allows system trap patching, try "YAHM" I know that YAHM does this. My question was - can you give some practical advice about how *exactly* to do it (i.e., patch the system traps for application execution) in PalmOS 5.x? I've read the relevant Web pages written by the author of YAH

Re: stopping an app from starting up

2005-06-06 Thread Dr. Vesselin Bontchev
> You are really only solving part of the problem, Palm programs can > be launched in many different ways, you are only catching normal > launches. Indeed. Although, strictly speaking, he doesn't have to do even that. If he catches all database creations and checks the created databases for virus

Re: stopping an app from starting up

2005-06-06 Thread Dr. Vesselin Bontchev
> At this point I have it set up to save the name of the virus to a > database, then call SysReset(). on a reset i check that database, > and if there is a record there, i pull out the name of the app, > and delete it there. That's not good. First, you shouldn't be resetting the device if, for som

re: stopping an app from starting up

2005-06-03 Thread Dr. Vesselin Bontchev
He-he. :-) I've mentioned this in the past, when bitching about various PalmOS annoyances. The bottom line is - you cannot. There is no "clean" way of preventing an application from launching *after* you have received the sysNotifyAppLaunchingEvent notification, that is. The "best" way that I'v

re: How to convert XLS file into PDB file?

2005-06-03 Thread Dr. Vesselin Bontchev
Wrong question. If you want to have the help of your application stored in a PDB database, then do just that - instead of trying to figure out how to convert XLS to PDB. I very much doubt that you can find a program that does such a direct conversion. Although it is theoretically possible to sa

re: Difference between Palm C and standard C

2005-06-03 Thread Dr. Vesselin Bontchev
> Where can I learn about the differences between Standard C and > Palm's C? To the best of my knowledge, there are no signifficant differences in the *language*. There are, however, significant differences in the *libraries* - in the sense that many of them are renamed. For instance, you have t

Re: sysAppLaunchCmdSystemReset

2005-06-03 Thread Dr. Vesselin Bontchev
> Have you used PalmInternals to check the notifcation registration > list? You can get that from > http://www.freewarepalm.com/clock/palminternals.shtml. It crashes badly the simulators with some NULL pointer reference. I didn't dare run it on a real device. Regards, Vesselin -- For informatio

Re: sysAppLaunchCmdSystemReset

2005-06-03 Thread Dr. Vesselin Bontchev
Alternatively, make your 2nd application of some type other than 'appl'. Since the creatorID is the same as your first application, the two will still look like one thing when the user tries to delete them. And you can launch anything that contains code with SysUIAppSwitch, no matter what its ty

re: How to lock the code segment

2005-06-02 Thread Dr. Vesselin Bontchev
> Is that the correct way of doing it? I think so. What do you need the protection for? Depending on what you're trying to do, locking the handle to the code resource might not be necessary - just protecting the database that contains it should be enough. > BTW, I always have a 24bytes code res

Re: combine two prcs

2005-06-02 Thread Dr. Vesselin Bontchev
> Google for ZBoxZ, Combiner, and Nutshell for examples. I use > Nutshell. > > PalmSource also has their own installer now which is designed for > assisting with over the air installs. I have not used it yet. I use the PalmSource Installer and it is very nice. ZBoxZ is mostly an archiver - not an

Re: combine two prcs

2005-06-02 Thread Dr. Vesselin Bontchev
> I didnt do anything to them to deal with this. One is my main > virus scanner, and the 2nd is the one that is launched after a > hot sync. They both have code 1, but the 2nd app only deals with > a custom launch code sent by the first one. Then you cannot simply merge the two of them into one.

re: combine two prcs

2005-06-02 Thread Dr. Vesselin Bontchev
Are they *designed* to be combinable? You can't, you know, just take any two random PRCs and combine them into one. For instance, if each one of them has a "code 1" resource that expects to receive control on application launch, you can't combine them. OTOH, if one of them contains code and the

re: Is there any lib or API for reading txt file?

2005-06-02 Thread Dr. Vesselin Bontchev
Have you tried FileRead()? Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

re: WinSetBounds on offscreen window

2005-06-02 Thread Dr. Vesselin Bontchev
My guess is that you cannot resize an off-screen window to size larger than the one you have created it with. (You probably can resize it to a smaller size.) Try creating it with size 100x100 and then resizing it to a size 10x10, until you need to resize it back to 100x100. Regards, Vesselin --

re: Using DateTimeType how dow I add X days to a given date?

2005-06-01 Thread Dr. Vesselin Bontchev
Does myDate *have* to be of type DateTimeType? It would be easier if it were of type DateType. If that's not acceptable, you'll have to do it like this: DateTimeType myDate; DateType theDate; myDate.year = 2000; myDate.month = 2; myDate.day = 23; theDate.year = myDate.year; theDate.month = myDat

re: Use images as UI objects.

2005-06-01 Thread Dr. Vesselin Bontchev
The icon of an application is stored as a 'tAIB' 1000 resource. (The small icon is stored as a 'tAIB' 1001 resource - but many applications don't have small icons.) Presumably, you know the icon of which application you want to use (e.g., yours or some standard application), so you can open it a

re: Getting event name from type ID

2005-05-31 Thread Dr. Vesselin Bontchev
There's no built-in function for that, if this is what you mean. You'll have to program it yourself, using the definition of the event enum type that you can find there: http://www.palmos.com/dev/support/docs/palmos/PalmOSReference/EventRef.html#996031 Regards, Vesselin -- For information on u

re: How i can extract files from device?

2005-05-31 Thread Dr. Vesselin Bontchev
You could, for instance, use the application FileZ (it's freeware) to set the Backup bit of the database you want to export. Then the next HotSync operation will create a copy of it on the PC. Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, ple

Re: multi-process

2005-05-30 Thread Dr. Vesselin Bontchev
Uhm, not quite. You got one part almost right - in your main event loop, you should call EvtGetEvent with a variable for the timeout parameter, instead of the usual evtWaitForever constant (which is not zero, BTW - it is -1). This variable should be either global or pseudo-global (i.e., dynamic

Re: World Clock?

2005-05-30 Thread Dr. Vesselin Bontchev
> It's got a few rough edges... Yeah, to say the least... :-) > You have to turn OFF the "default" checkbox to expose the other > controls. Aha, I see. But I still don't see how one can specify which application is to be run when the middle button of the 5-way control is pressed while the devic

re: NetLib very slow on emulator/simulator ?

2005-05-27 Thread Dr. Vesselin Bontchev
I am observing a similar problem - although I work only with the Simulator (I don't have a 'net-capable device) and my code works in blocking mode. Basically, I am observing a substantial delay after the connection is established, the request is sent and before the first block of data is receiv

re: How to develop an application to support other than english language?

2005-05-27 Thread Dr. Vesselin Bontchev
See, for instance, this: http://www.pocketpurchase.com/tools/PalmOS_Foreign_Language_Plug-ins.htm Regards, Vesselin -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: 4 GB Microdrive on LifeDrive and volRefNum

2005-05-27 Thread Dr. Vesselin Bontchev
Indeed; I think the volume reference number can change even for one and the same SD card if you keep mounting and unmounting it. The volume reference number is not a volume identifier - it is more like a volume handle; similar to a file handle when you open a file. Regards, Vesselin -- For inf

  1   2   3   4   >