Repost: Need BTserial equivalent for WM 5.0

2006-10-11 Thread Richard Coutts
I posted this question to the Bluetooth forum and didn't get an answer. I'm hoping I have better luck here. I used BTserial for the code to get my Palm app to talk to BT devices. It was great and shaved weeks off my development time. Now I'm porting my app to WM 5.0 and need the equivalent

Re: Repost: Need BTserial equivalent for WM 5.0

2006-10-11 Thread Richard Coutts
Have you asked a WM5 group? Not yet, but I haven't had much luck to date with getting help from Windows programmers in the past. I'll try again, though. Thanks. I posted this question to the Bluetooth forum and didn't get an answer. I'm hoping I have better luck here. I used BTserial

Re: OT: Need WM5 equivalent to WinSaveBits

2006-09-01 Thread Richard Coutts
I'm porting my app to WM5 and am having trouble finding the equivalent to WinSaveBits and WinRestoreBits so that I can save a rectangular area of the screen and then restore it. If someone could enlighten me, it would be much appreciated. BitBlt() - create an offscreen window, get a drawing

OT: Need WM5 equivalent to WinSaveBits

2006-08-30 Thread Richard Coutts
I'm porting my app to WM5 and am having trouble finding the equivalent to WinSaveBits and WinRestoreBits so that I can save a rectangular area of the screen and then restore it. If someone could enlighten me, it would be much appreciated. Thanks, Rich -- For information on using the

OT: WM local event loop

2006-08-04 Thread Richard Coutts
I have a local event loop for my Palm app: do { EvtGetEvent(event, evtNoWait); if (! SysHandleEvent(event)) if (! MenuHandleEvent(0, event, error)) FormDispatchEvent(event) } while (event.eType != appStopEvent isDone == false); and am looking for the

Tungsten T simulator card?

2006-05-02 Thread Richard Coutts
I have a user that's having trouble running my app on a Tungsten T and reading from the SD card. I don't have a T here and downloaded the T simulator and ran it with the TungstenT_enUS.rom but it doesn't show the card like the other simulators do. Is there something else I need to do?

CW 9.3 expanded modes

2006-02-15 Thread Richard Coutts
I recently upgraded to CW 9.3 and see that there's now two expanded modes to choose from: * Expanded Mode (A4/A5-relative data) * Expanded Mode with A5-based Jumptable While I have a literal understanding of the two, is there an advantage of using one over the other? I'm guessing that the

Re: how in hell's name do you display a freaking simple fucking bitmap on palm?

2006-02-15 Thread Richard Coutts
i've tried the bitmap drawing method in the help. btw i'm programming on 68K. it seems that whatever i do it cannot find the bitmap i created, although i have already set the damn thing on the resource editor and appresource.h. it always cannot find the bitmap so no image can possibly be

NoThunk functions

2006-02-09 Thread Richard Coutts
I'm converting my code to run in expanded mode for CW8.3. I read Ben's white paper and found the Palm function wrappers in the ThunkPalmOS.h header file that take care of the thunks. E.g., Err DmQuickSort(DmOpenRef dbP, DmComparF *compar, Int16 other) { _CW_CallbackThunk thunk;

Re: Stuck hard. Please help.

2006-02-09 Thread Richard Coutts
I don't know for sure, but I'd be surprised if the physical size of the display was retrievable. But, as you probably know, you can retrieve the make and model of the device, and the current screen size in pixels. I'm guessing you'll have to create a table in your code of the physical size

Re: NoThunk functions

2006-02-09 Thread Richard Coutts
Ben, Thanks for the post. Are you saying that I should edit ThunkPalmOS.c and create my own *NoThunk functions? I'm confused. Rich I'm converting my code to run in expanded mode for CW8.3. I read Ben's white paper and found the Palm function wrappers in the ThunkPalmOS.h header file

Re: NoThunk functions

2006-02-09 Thread Richard Coutts
Thanks for the post. Are you saying that I should edit ThunkPalmOS.c and create my own *NoThunk functions? I'm confused. No, I'm saying that 1) you need to add ThunkPalmOS.c to your source files. 2) you need to remove the prefix file from the C/C++ language settings 3) include

Re: NoThunk functions

2006-02-09 Thread Richard Coutts
Thanks for the clarification. The only thing in my prefix file is a single #define and the #include for PalmOS_Headers_Strict -- does the latter need to be removed? I'm hoping not, since it wrecked havoc when I did. If so, I'm assuming I can still have a prefix file with my #define, but let

Re: [OT, kind of] Best way to convert Palm app to Pocket PC

2006-01-08 Thread Richard Coutts
You are correct, this is both off topic and an inappropriate posting to this forum. On the other hand, it would be on topic to discuss general ways of writing a Palm app so that it would be in the Palm idiom and also portable to other operating systems. (And I'd be interested to know if anyone

Repost: Linking to Glue

2005-12-31 Thread Richard Coutts
I'm trying to use the Glue function CtlGlueSetFrameStyle. I dragged PalmOSGlue.lib into my Resources folder in CodeWarrior 8.3 (where it installed in Segment1) and include CtlGlue.h in the files that use CtlGlueSetFrameStyle. It compiles okay, but the odd thing is the function calls to

Re: Synchronize data through Memory Slot.

2005-12-28 Thread Richard Coutts
Hotsync doesn't back up the expansion card. You need a 3rd party app, such as MissingSync. Rich - Original Message - From: pritam hasabnis [EMAIL PROTECTED] To: Palm Developer Forum palm-dev-forum@news.palmos.com Sent: Wednesday, December 28, 2005 9:24 AM Subject: Synchronize data

Re: Changing the frame style of a button (again)

2005-12-28 Thread Richard Coutts
My code in frmOpenEvent section looks like -- ControlType* ctl = (ControlType*)FrmGetObjectPtr(formP, FrmGetObjectIndex(formP, MainOption1GraphicPushButton)); CtlGlueSetFrameStyle(ctl, noButtonFrame); FrmDrawForm(formP); But, on FrmDrawForm the buttons and their borders are drawn. I've

Re: Changing the frame style of a button (again)

2005-12-26 Thread Richard Coutts
It looks like you are using a graphic push button, which begs the question why you ever set it for a border anyway. So why not simply remove the button frame in the resource editor? Roger. Thanks. That sounds like the good alternative. I've been using Constructor, which doesn't give an

Changing the frame style of a button (again)

2005-12-23 Thread Richard Coutts
how do I change (in a documented and portable way) the frame style of a button (e.g., from bold to standard and back)? Did you checked the GlueLib-Functions from the SDK? API Reference-Libraries-PalmOSGlue Library: CtlGlueSetFrameStyle This is an old thread, but the answer isn't working for

Trouble changing background form color

2005-12-21 Thread Richard Coutts
I created a toolbar with popups out of four graphical pushbuttons and four forms that are show above the pushbuttons. Like most apps, I have have different form colors and button colors. My four forms have each non-graphical pushbuttons ('under' the button is a label, icon, and field -- a

Unique IDs for records

2005-12-14 Thread Richard Coutts
I've been reading up on unique record IDs and have a few questions -- -- I got several hits saying that http://oasis.palm.com/dev/kb/faq/1085.cfm has everything you wanted to know about unique IDs, but the link is dead -- can someone point me to the article? -- I understand that that

Explicitly closing a form

2005-12-07 Thread Richard Coutts
To date I've been opening my forms using FrmDoDialog and closing most of them by having the form handler return 'false' when a button is pressed. Now I have a field in a form that invokes a second form when entered. If the user selects a particular button, I want to close both forms. I

Repost: Not connecting to m515 with BT sled

2005-11-06 Thread Richard Coutts
I posted this to the BT forum and didn't get a response and am hoping I have better luck here My app isn't finding the BT library for a user's m515 with the BT sled. I don't have this hardware configuration and can't test / develop it inhouse, so I'm flying a bit blind. The user's happy

Doing presentations on the Palm

2005-07-24 Thread Richard Coutts
What are people using for demo presentations of the Palm apps to groups? I'd used Presenter-to-Go by Margi for presentations in the past, but now I'm having trouble getting it to work with my T5. Their webpage has a patch for the T5, but it's not working for me. Does anyone know what the

Weird FldSetSelection problem

2005-07-13 Thread Richard Coutts
Some code that was working fine is suddenly started to give me trouble. I have a form with some text fields. The handler for the form and the fields also does some house cleaning-type stuff during a nilEvent. When the form opens, I want to select a certain field so that character input by

Re: need Tapwave navigator clarification

2005-06-07 Thread Richard Coutts
You're testing for the wrong thing. The navFtrVersion returns the version of five-way navigation support that's in the system. This is the combination of fnav resource support and FrmNav APIs that was introduced on the Treo 600. The use of vchrRocker codes is orthogonal to that; TapWave

need Tapwave navigator clarification

2005-06-06 Thread Richard Coutts
I've been getting reports that my app does not handle the Tapwave navigator properly. Running its Simulator I see that my function for detecting the navigator is failing. The function is listed below: Err // errNone if navigator present cfIsNavigatorPresent() { UInt32 version; Err

Some Gremlin bugs disappear when stepping thru code

2005-03-30 Thread Richard Coutts
I've notice for some time now that some of my more nasty bugs that appear when running gremlins on POSE often disappear I put in a break point before the bug and step through the code. For example, I have a bug right now that causes some buttons to get left behind when running gremlins. So,

Re: App writing to globals

2005-03-25 Thread Richard Coutts
Which emulator are you using? Does the emulator reset without the warning? Do you have any other application installed on the emulator. (Using a saved session?) The sony emulator often cause this warning (among others) while booting. Miro, Thanks for the response. Sorry for not posting enough

App writing to globals

2005-03-24 Thread Richard Coutts
About 10% of the time I run gremlins, I'm getting the warning written to the log file: 0.050 (0): === WARNING: 0.050 (0): === WARNING: App just wrote to memory location 0x0254, which is in the Palm OS global

calling the TblSetLoadDataProcedure callback

2005-03-23 Thread Richard Coutts
I have an uneditable table that I'm populating with the TblSetLoadDataProcedure callback. The beginning of the callback looks something like this: static Err cfLoadTextTableItem(void *table, Int16 row, Int16 col, Boolean editable, MemHandle *dataH, Int16 *dataOffset, Int16 *dataSize,

Re: Referencing the second memory card

2005-03-11 Thread Richard Coutts
I just iterate over all volumes until I find the one, with the data I'm looking for. Then I remember this one until my app quits. This o.c. only works if you want to read something. If you have to write, you better present the user all volume names found in the system. Someone could prefer to

Re: Referencing the second memory card

2005-03-11 Thread Richard Coutts
Err cfVolNum( UInt16 volNum,// returned UInt8 cardIndex) // 0 for first volume, 1 for second, etc. { Err err; UInt32 volIterator = vfsIteratorStart; while (volIterator != vfsIteratorStop) { err = VFSVolumeEnumerate(volNum,

Referencing the second memory card

2005-03-10 Thread Richard Coutts
I need to be pointed in the right direction. My app currently supports a single memory card, but I want to add support for the T5's second memory card -- the removable one. (At the moment, my app only sees the internal card.) I'm currently finding a volume using UInt16 volRefNum;

Re: Referencing the second memory card

2005-03-10 Thread Richard Coutts
I need to be pointed in the right direction. My app currently supports a single memory card, but I want to add support for the T5's second memory card -- the removable one. (At the moment, my app only sees the internal card.) You've got the loop already. I believe you just need to select the

Re: Referencing the second memory card

2005-03-10 Thread Richard Coutts
My code for finding the volume number of the T5's external card is running and works great on the simulators, but I'm having trouble on a physical T5. When I pass a cardIndex of zero, everything's fine, but when cardIndex is 1, then expErrCardNotPresent is being returned (when on the physical

FrmAlert and DIA

2005-03-09 Thread Richard Coutts
I have several FrmAlerts and FrmCustomAlerts in my app. They work fine on 160x160 and 320x320 devices, but I find on the full screen devices with a DIA, the FrmAlert gets rendered in the center of the screen, rather than the bottom, and when dismissed, the bottom portion of the screen gets

Re: Invalid chunk ptr after exiting app

2005-03-08 Thread Richard Coutts
I've been reading through the architives and seeing that this is likely because I'm overwriting a chunk header, or something to that effect. My apps pretty big, so I'm having a tough time tracking down where this might be happening. When I make changes to the code, it sometimes goes away, but

Re: Invalid chunk ptr after exiting app

2005-03-08 Thread Richard Coutts
Thanks Chris, I definately need to do this. Does anyone have this code posted somewhere or be willing to share it with me? To say that I'm under a time constraint, would be an understatement. As Ben wrote some days ago, the emulator with debug roms have this feature included. But I guess it looks

Re: Exit Application

2005-03-08 Thread Richard Coutts
At 01:15 PM 3/8/2005, you wrote: Zen for Palm is fine and dandy, however: 2) It is better for the user when multi-platform applications have exactly the same user interface on all supported platforms. Only true when the user is expected to use the application on all of the platforms, instead of

Re: Overloading the newa and delete operators

2005-03-07 Thread Richard Coutts
I'm using CW8.3 and need to keep better track of whether or not I'm over- or underwriting memory and possibly stomping on stuff I don't own. If you test under the Palm OS Emulator, it does this testing for you automatically. Thanks Keith. That saves me a lot of time. One thing I need

Overloading the newa and delete operators

2005-03-05 Thread Richard Coutts
I'm using CW8.3 and need to keep better track of whether or not I'm over- or underwriting memory and possibly stomping on stuff I don't own. My app makes a lot of use of new and delete (and not so much of MemHandleNew and MemHandleFree for various reasons). So, I'd like to overload the

Strange stack on opcode / gremlin crash

2005-03-01 Thread Richard Coutts
My app seems fine on the device, but I'm often getting a strange error when running gremlins on POSE. I don't get the crash every time I run gremlins -- maybe 20% of the time. If it crashes, it only crash at the very beginning, before the first event is passed. After starting the app on POSE

Re: Strange stack on opcode / gremlin crash

2005-03-01 Thread Richard Coutts
(App) just executed an illegal or unknown machine language instruction. The opcode executed was 0xA0AD The call stack looks like this: (PenCalibrate) (PrefOpenPreferencesDB) (PrefOpenPreferencesDB) (ErrDisplayFileLineMsg) The call stack shows a call to the PenCalibrate function,

Invalid chunk ptr after exiting app

2005-02-27 Thread Richard Coutts
I'm having trouble finding a nasty bug. It only happens in my Release build on certain devices and their corresponding simulators. Specifically the T3. I've been reading through the architives and seeing that this is likely because I'm overwriting a chunk header, or something to that effect.

Re: Invalid chunk ptr after exiting app

2005-02-27 Thread Richard Coutts
FWIW, the exact error is MemoryMgr.c, Line:3757, Invalid chunk ptr running on the T3 Simulator, Palm OS 5.2.1. Rich -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Invalid chunk ptr after exiting app

2005-02-27 Thread Richard Coutts
FWIW, the exact error is MemoryMgr.c, Line:3757, Invalid chunk ptr running on the T3 Simulator, Palm OS 5.2.1. I just bumped up my pref - stack size from 5120 to 6144 and the problem went away. I'm not too savvy on the black magic of some settings like the stack size, so I have a couple of

Removing Access Paths with CW8.3

2005-02-14 Thread Richard Coutts
I dragged and dropped a file into my project and then realized it was from a backup folder and not the folder I wanted. So, I deleted the file and dragged and dropped the proper one and everything was fine. A while later, the backup folder got renamed and when I opened up my project, I got a

Re: Repost: Problems with Discovery Form

2005-02-08 Thread Richard Coutts
something. Rich Richard Coutts wrote: I thought I'd post this one more time before I had at it, since it's probably a little thing and I'm not looking forward to coding my own Discovery form. I'm having some trouble with the Discovery form used when locating a bluetooth device. The function calls

Forcing the CmdBar

2005-02-07 Thread Richard Coutts
With the collapsible DIA, the CmdBar is only accessible with the DIA displayed. I'd like to show the CmdBar every time the user taps on the menu button, so they see the pulldown menus and the CmdBar. I have the following code with adds a menuCmdBarOpenEvent to the event queue... case

Re: The Simulator Gremlins

2005-01-20 Thread Richard Coutts
I agree that the Simulators are Not Ready for Prime Time and I use them just as you describe to find specific failures. It wouldn't be so bad if the program failed gracefully but most of the time it fails catastrophically with the send info to Microsoft error. Getting the simulators up to snuff

Setting a default menu

2005-01-20 Thread Richard Coutts
The Palm OS has the nice behavior of remembering the last menu accessed and defaults to that one the next time the menu button is tapped. But, it's memory seems short-lived and it forgets which menu was open after a few taps and reverts to the first menu. I'd like it to always default to the

The Simulator Gremlins

2005-01-17 Thread Richard Coutts
Running Gremlins on POSE has been invaluable in flushing an embarassing large number of bugs in my app. Plus, they're just plain darn fun to watch do their thing. But, I'm not having much success running Gremlins on the Simulators. The Switch After option, which is great for limiting the

Constructor's 99 resource limit

2005-01-14 Thread Richard Coutts
I just went to add a couple objects to my main form and ran into the 99 limit. From the docs: To keep resource ID numbers of interface items in a form from conflicting with the ID numbers of items in other forms, Constructor imposes a limit of 99 user interface items in a form I

Re: Constructor's 99 resource limit

2005-01-14 Thread Richard Coutts
Define your form using Rez or PilRC, rather than Constructor. You can mix resources from multiple sources, so doing one form in a non-graphical tool won't stop you from using Constructor for others.. What tool would you recommend using to convert my Constructor file to PilRC? I tried running

Re: 5-way and 'fnav' (again)

2005-01-13 Thread Richard Coutts
'fnav' has nothing to do with detecting the 5-way. It is a direction for the OS to handle 5-way on your non-modal forms. Oh, Okay. Thanks Henk. For T3 it is the following feature: UInt32 version; Err err = FtrGet(navFtrCreator, navFtrVersion, version); Don't know if it is the same for T5. The

Re: 5-way and 'fnav' (again)

2005-01-13 Thread Richard Coutts
All I'm looking for is a function that returns true if the T5 navigator is present. I think I can take it from there. If someone could point me to a step-by-step posting or spell thinks out, I will be indebted. In simple pseudo-code: if FtrGet(navFtrCreator, navFtrversion) succeeds It has a

5-way and 'fnav' (again)

2005-01-12 Thread Richard Coutts
Can some explain to me, using only small words, how to detect the 5-way navigator on the T5? I've read through the archives and even posted here a while back, but I'm having trouble following the explanations. The rocker defines are simple enough, but creating a 'fnav' resource makes my head

Repost: Some weirdness w/ Discovery Form

2005-01-11 Thread Richard Coutts
I posted this in the Bluetooth forum, but I'm guessing it has more to do with forms than bluetooth. I'm having some trouble with the Discovery form used when locating a bluetooth device. The function calls are... SysLibFind(btLibName, BTRefNum); BtLibOpen(BTRefNum, false);

Repost: what's _btobex file for?

2004-12-28 Thread Richard Coutts
I'm writing my first Bluetooth / Exchange manager code. The manufacturer of a bluetooth device has given me a list of protocols the device understands. E.g., b follow by a carriage return and linefeed (b\r\n) will turn the device off. From the Palm documentation I see I can initiate a

Looking for Bluetooth ExgMgr examples

2004-12-16 Thread Richard Coutts
I'm getting up to speed on Bluetooth and have found the BtLibTest, Tic Tac Toe, and other examples that come with the OS 5 SDK. These are very helpful, but hoping to find a generic sample app that uses the ExgMgr and allows a Palm to connect to and queries local BT devices and display any

Newbie installing Bluetooth Library

2004-12-06 Thread Richard Coutts
I'm trying to get up to speed on Bluetooth programming and just compiled and ran the sample program BtLibTest on Codewarror and ran it on the Simulator running OS 5.35c. When I run it, I get the error Missing required Bluetooth components... What do I need to install? Thanks, Rich -- For

Repost: Getting started with Bluetooth

2004-12-01 Thread Richard Coutts
I need to add some bluetooth functionality to my palm app. I've installed the SDK and have read through the Bluetooth section of the Palm OS Companion 2, but could use something more introductory to get me up to speed. I see there are 50 or so titles on Bluetooth at Amazon.com. Are any of

T5 Simulator navigator issues

2004-11-12 Thread Richard Coutts
I'm running the T5 simulator for the first time and finding that the navigator isn't working for me. I read in the ~History.txt document bundled with the simulator To simulate the 5-way keys, you need to use your Desktop numeric keypad with numlock *OFF* the arrows correspond to

Re: T5 Simulator navigator issues

2004-11-12 Thread Richard Coutts
The keys mentioned in the text file are incorrect. The right keys are Alt+Enter for Center, Alt+Left/Right/Up/Down for navigation. I tried these. The Alt+Up and Alt+Down seem to work okay, but the Alt+Left and Alt+Right are not working with my app. They seem to work fine with the native

T5 Simulator

2004-11-09 Thread Richard Coutts
Can some point me to where I can download the T5 simulator? I can never find these things. Thanks, Rich -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Tiny fonts on 160x160 devices

2004-04-23 Thread Richard Coutts
Currently I'm rendering tiny fonts using the FntSetFont(g_fontID_tinyStd) and the font resource NormalHalfSizeLatinFont.rsrc. These work great on high res devices, but when I run them on the Treo 600 simulator, the smaller fonts render, but they're barely legible (the appear to be tuned for

Trouble with Treo 600 Navigator

2004-04-21 Thread Richard Coutts
I have some code to detect when a navigator is present and handle the event if (errNone == FtrGet(navFtrCreator, navFtrVersion, version)) { if (EvtKeydownIsVirtual(eventP) (eventP-data.keyDown.chr == vchrNavChange)) { if (NavKeyPressed(eventP,

Re: Sending an e-mail from an app

2004-04-15 Thread Richard Coutts
I think in theory the Helper API is what you want Chris, Thanks for pointing me in the right direction. The target platform is the Treo 600, which I believe is running OS5, so the Helper API looks like just what I want. The only snag I see is that I'd like to have an attachment to the email,

CW break points dim

2004-04-15 Thread Richard Coutts
CW 8.2 / XP I just created a new .cpp file and added it to my project. When I set a break point in the new file, it's shown as dimly lit and not the bright red of break points in other files. Execution is not stopping at the break points in my new file, but is in my older existing files. What

Re: CW break points dim

2004-04-15 Thread Richard Coutts
CW 8.2 / XP I just created a new .cpp file and added it to my project. When I set a break point in the new file, it's shown as dimly lit and not the bright red of break points in other files. Execution is not stopping at the break points in my new file, but is in my older existing files.

Sending an e-mail from an app

2004-04-14 Thread Richard Coutts
I need to add the ability to compose and send an email from within my application. I'm not sure where to begin with this one -- can someone give me some pointers as to which functions I should be looking at to do this? I did i cursory search though the docs and didn't see anything. Thanks!

Writing a PDB to the desktop

2004-03-26 Thread Richard Coutts
I have a conduit that takes a text file and converts it to a PDB specific to my app. I'm currently packing a buffer that represents each record and writing the record to the handheld with SyncWriteRec when hotsyncing. A potential customer is looking for a stand-alone version of the conduit that

Re: drawing functions, thick lines

2004-03-23 Thread Richard Coutts
You can easily simulate a thick line by two lines: Line(x1 ,y1 ,x2 ,y2 ) Line(x1+1,y1+1,x2+1,y2+1) Thanks, that should do it for now. Could have thought of that myself. Hmm, silly me. Doesn't work. It always depends on the direction, so in some direction the lines overlay, in other

Re: drawing functions, thick lines

2004-03-23 Thread Richard Coutts
Therefore, Palm OS Cobalt has a great path-based drawing model, similar to PostScript or OpenGL. Is there a 3-D graphics library in Cobalt? An OpenGL port would be very nice. Rich -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: Cobalt porting: No longer single prc for all OS versions

2004-03-01 Thread Richard Coutts
Microsoft will throw a beta of an operating system/SDK/Framework (.Net being my example) out to the development community years before it is actually officially released. I remember playing with .NET when it was in it's infancy. It wasn't very stable, but we got familiar with it long before

Re: Converting Palm App to Win CE App

2004-02-21 Thread Richard Coutts
Aaron, Thanks for the clarifications. some people have already done it here in this forum. its done in bits and pieces - not difficult at all to support both easily. I'm getting ready to start a port myself and am not feeling very intrepid. If anyone could recommend some online articles on

Re: Converting Palm App to Win CE App

2004-02-20 Thread Richard Coutts
Manoel, I'm very interested in these, too -- are you distributing the source or just the libs? Will it work with the Codewarrior, or just GCC? Thanks, Rich -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Converting Palm App to Win CE App

2004-02-20 Thread Richard Coutts
if you just wanted palm/pocket pc support - you just need to write a pocket pc library that is called via palmos API's and viola, statically link it in. you are done. Aaron, I'm not being flippant -- is it really that easy?!?! That would be very cool. I agree with your comments about

Re: port to WinCE

2004-02-11 Thread Richard Coutts
if you want games you'r best bet is mobilewizardry's shark. Why is that? My apps a vector drawing program, so I think it would fall more in this latter category. Rich -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: port to WinCE

2004-02-10 Thread Richard Coutts
http://www.palmside.com/dal.htm http://www.mobilewizardry.com/multi-platform/index.php These abstractions are a great idea, but I wonder about to the memory and performance overhead they introduce, and whether the effort they save by having a single code base is offset by implementation

Re: Sharing preferences

2004-01-15 Thread Richard Coutts
My PDE software comes in six main versions Demo, Evaluation, Personal, Professional:Development, Professional:Runtime and Enterprise:Runtime. All the PRC's have the same name and CRID. What happens if some owns the Personal version and is thinking of upgrading to one of the

Re: Sharing preferences

2004-01-14 Thread Richard Coutts
Do what I do. I have a bunch of different pedits and they come with an additional peditFixer application whose job is to delete any of the pedits and/or their prefs and/or any other auxiliary file. Then the user can decide what and how to delete. /PaulN I'm not familiar with pedits -- what

Re: Sharing preferences

2004-01-14 Thread Richard Coutts
If your programs are variations on the same thing, based on increasing levels of functionality for, presumably, more money, then perhaps they should all have the same CRID. Which would also effectively prevent more than one being installed on the same unit. The PDB's could have the same

Sharing preferences

2004-01-13 Thread Richard Coutts
I'm about to release a few products that share the same Preferences. So, the applications do not share the same Creator ID as the Preferences. Rather, they each have their own Creator ID and the Preferences have a unique ID. I obviously don't want to orphan the Preferences, but at the same time,

Looking for skins for new devices

2004-01-08 Thread Richard Coutts
This is a repost from the PEF group. Like a lot of people, I used the skins for POSE to create screen grabs of my product running on a device. Unless I'm missing something, the new simulators don't accept skins. I don't really need a skin for the simulator, but nice images of the newer devices,

Re: Can you find out if you are running on the emulator

2004-01-06 Thread Richard Coutts
Boolean onPOSE() { UInt32 value; Err err; // works on all versions of the Palm OS return (FtrGet('pose', 0, value) == errNone); } Aaron -- your paper also has the routine Boolean onPOSE() { return HostGetHostID() == hostIDPalmOSEmulator; } Is this one less guaranteed? Rich

Re: Software Protection question

2004-01-05 Thread Richard Coutts
I need a quick verification on Aaron's paper. On page 11 it has a loop that executes CODE_RES_COUNT times -- is CODE_RES_COUNT the number of segments? Rich Based upon your white paper I would like to delete one segment of my application if a modification is identified. I assume I use

Re: Software Protection question

2004-01-05 Thread Richard Coutts
I need a quick verification on Aaron's paper. On page 11 it has a loop that executes CODE_RES_COUNT times -- is CODE_RES_COUNT the number of segments? Actually, I need a lot more than that -- has anyone ported the code on page 11 of Aaron's paper to CW that can post the code? I started doing

Re: Software Protection question

2004-01-05 Thread Richard Coutts
Actually, I need a lot more than that -- has anyone ported the code on page 11 of Aaron's paper to CW that can post the code? I started doing it, but it way over my head. thats what your job was to do. i just did the gcc version - because that is what i use in my developments :) works

Re: MemHandleLock slow for big records?

2004-01-03 Thread Richard Coutts
MemHandleLock is surprisingly slow function. I've benchmarked it many times and got awful results - it was a times slower than everything else in my program. I found no way to avoid it - even if I use the the handle as a pointer to pointer (and the value it points is the actual value I

Re: Software Protection question

2004-01-02 Thread Richard Coutts
Based upon your white paper I would like to delete one segment of my application if a modification is identified. I assume I use DmDeleteDatabase, but how do I get the ID of the segment's Database? Can someone point me to this white paper? I had email issues and missed the post that had the

MemHandleLock slow for big records?

2003-12-29 Thread Richard Coutts
My database has typically 300 or so records where each records is from 100 byts to 65535 bytes long, with the typical size being around 10,000 bytes. The first 20 or so bytes of each record is a table that describes what's in the rest of the record, so when searching the database I often only need

Re: MemHandleLock slow for big records?

2003-12-29 Thread Richard Coutts
What happens when you incrementally take things out of the loop you show below? That was the problem -- other code was slow, not the record reading. I was jumping to conclusions. Thanks! Rich -- For information on using the Palm Developer Forums, or to unsubscribe, please see

Re: crappy T3 simulator

2003-12-22 Thread Richard Coutts
What windows OS are you running? This same thing happen to me with WinMe but when I upgraded to XP the problem went away. - Original Message - From: palmDev [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Monday, December 22, 2003 4:40 PM Subject: crappy T3 simulator

Error when copying a record

2003-12-22 Thread Richard Coutts
CW 8.3 I'm trying to copy a record, byte-for-byte and am getting the access error: MyApp just wrote to memory location 0x00055202, which is in the storage heap. In order to protect the integrity of the storage data, such direct access is not allowed. Instead, applications should use special

Re: Regd VFS

2003-12-16 Thread Richard Coutts
Use VFSFileOpen to open a directory for reading or writing. You can create or delete a directory with VFSDirCreate and VFSFileDelete. - Original Message - From: Deepak TVS [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 1:33 AM Subject: Regd

Re: Regd VFS

2003-12-16 Thread Richard Coutts
access it. --Deepak - Original Message - From: Richard Coutts [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 7:45 PM Subject: Re: Regd VFS Deepak, You specify the entire path when using VFSDirCreate -- from the Palm OS Companion

Re: Palmsim crashing on Windows Me [Solved]

2003-12-16 Thread Richard Coutts
It looks like my problem Palmsim crashing problem was I didn't have enough memory on my WinMe machine. I had 128M. I just added another 256M, bringing the total up to 384M and everything seems to be okay now (though the T3 emulator's still struggling a little, but atleast it's running, which it

Palmsim crashing on Windows Me

2003-12-15 Thread Richard Coutts
Dell Dimension 4100 / Windows Me / Palmsim 5.0 5.3 / CW 8.3 I recently downloaded the Palm Simulator and the simulators for the T3 and the large-screen Clies (portrait and landscape). Unfortunately, they've been very unstable on my Windows Me machine. Specifically, after they start and splash

  1   2   3   >