Hi,
I sequentially created a number of controls using CtlNewControl with
labels "A" to "Z":
CtlNewControl(ppFrm, wIdCtl, pushButtonCtl, rtcBuf,
Rect.topLeft.x,
Rect.topLeft.y,
Rect.extent.x,
Hi,
The SyncWriteRec Doc says..
You can overwrite an existing record by specifying its record
ID.
You can add a new record by supplying 0 as the record ID.
Note that the application on the handheld is responsible for
assigning new record IDs.
does it really mean there is no way to assign a u
> > Metrowerks compiler seems to support RTTI on PalmOS (Targeting PalmOS
> > doc). However I do not succeed in compiling the typeid function: There
> > is an error, which says:
>
>
> What runtime library are you linking with? The RTTI support functions
> are only included in the "MSL Palm OS
I mean SDK of course, sorry
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
Metrowerks compiler seems to support RTTI on PalmOS (Targeting PalmOS
doc). However I do not succeed in compiling the typeid function: There
is an error, which says:
Error: undefined identifier ::std::typeinfo
( typeinfo is the return value of typeid ).
RTTI is enabled within the compiler optio
PalmOS 3.3
Hi everyone, please help me understand why I can only store 4 bytes in
the app preferences.
My preference _pPrefs is a pointer to a structure of type
//===
typedef struct
{
UInt32 dwRecordId;
Char tcLandCode;
} AppPreferenceType;
//
PalmOS 3.3
Hi,
My preference _pPrefs is a pointer to a structure of type
//===
typedef struct
{
UInt32 dwRecordId;
Char tcLandCode;
} AppPreferenceType;
//===
allocated with operator new. It is stored as an app pref into saved
hd 0 is a console command of the palm debugger (look into Dev_Tools_Guide.pdf)
and makes a dump list of the heap's chunks which includes the owner ids. I
haven't used it yet, but I already had a look at, because I received the same
message. You can also use your emulator and set logging options, w
Hi,
can one set a form's position at runtime? It was suggested earlier by
Sasha Avanesov to get the WinPtr and set the windows position using "=".
This is probably not really supported, is it?
Thank you
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http
Ah - is it simply because the text - Pointer of a visible Field is always
in locked state?
Werner Poschenrieder schrieb:
> Hi,
>
> does anyone know why the following code leads to an "unlocked chunk"
> message? FldGetTextPtr actually requires unlocking (the lock count in
Hi,
does anyone know why the following code leads to an "unlocked chunk"
message? FldGetTextPtr actually requires unlocking (the lock count in
the lock:owner byte is 1 after retrieval).
CharPtr ptcReleaseMe = FldGetTextPtr(
(FieldPtr)::GetObjectPtr(_wFieldId) );
if (!ptcReleaseMe || !*p
Look for an app which is named AsciiChart: It shows all fonts, all signs, all
codes.
You can alternatively look for the font definition enumerations in the header
files which have "speaking" names.
Regards Werner
George Bassili schrieb:
> Hi everyone,
> is there a way to look at whats in a font
This was the fastest answer I ever received in any discussion forum. (2
minutes). I like this one really (and I should have read the doc more
intensively). Thank you!
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
Can record-ids take any UInt32 value? Is 0 ever used? Thanks.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
ct
anymore, but areas on the bg win with same relative position do the
buttons' job). WinDisableWindow was an elegant and well working solution
for that, but the way you recommended works very fine as well. Thanks.
--
Keith Rollin schrieb:
> At 10:18 AM +0200 5/27/02, Werner Poschenrieder wro
In Constructor create a table. Watch the table attributes: Select the entry "Column
Widths" there. In the Constuctor
menu select 'Edit' and 'Add column width'. You get an additional column width i.e. a
new column. Adjust the widths
of the previous single column and the new column :-).
Werner
V
I had better done the encapsulation actually: It works. Now I understand what's
happened. This was great :-) :-) help. Thank you.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
I observed Register A7, which is the stack pointer. The stack overflow
occurs within an object member function, which does subsequent and
identical calls to other member functions:
MemSet(&AusRec, sizeof(AusRec), 0); StrCopy(AusRec.rtcText, "SomeText1");
PositionSetLost(); RecordInsert();
MemSet(
There is a "close to overflowing the stack" after
DmNewRecord(_PalmDatabase, &uiPos, ulSize);
in my application
where uiPos == 80 and ulSize == 40.
The stack view within the debugger does not indicate any recursion.
DmNewRecord is called from a function about three levels higher, which
makes
http://www.palmos.com/cgi-bin/sdk40.cgi
download sdk40-tools.zip
PalmDebugger.exe
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
Form.c, Line:4374, NULL form
appears after about 20 gremlin events in my app and does not seem to
be reproducable when I subsequently repeat the actions, the gremlin had
done.
What does the message mean? Which are the most frequent mistakes, which
can produce this error?
Thanks
--
For in
mhmm..
I've been looking for the Palm Debugger in the SDK but couldn't see it.
What's the name of the .exe?
Keith Rollin schrieb:
> At 5:29 PM +0200 5/24/02, Werner Poschenrieder wrote:
> >I was looking for the Palm Debugger at palmos.com. While I could find
> >th
WinDisableWindow is now reserved for system use only. If I want to
disable a window, how can I do it?
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
This message was cancelled from within Mozilla.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
I was looking for the Palm Debugger at palmos.com. While I could find
the docs, the debugger seems not to be available for download. True?
Thanks, Werner
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/
I have used WinDisableWindow, because at the time I did so it was not
prohibited to do, and this function was documented like any other. When
I tested my app on a 3.5 debug rom , I was told that WinDisableWindow
was for system use only.
Indeed, the recent doc doesn't name it anymore. Ok. What can
Its a 4.0.1. I think your suggestion is exactly the point: When I made a "PilotMain
only" app without any ressources attached the same thing happened.
Ben Combee schrieb:
> In article <87017@palm-dev-forum>, [EMAIL PROTECTED] says...
> >
> > I've got the same! And only when the CW Debugger runs.
It even occurs then, when I make a "pilot main only" project without
ressources. It is certainly not of much relevance.
Werner Poschenrieder schrieb:
> It even occurs when I put "return errNone;" immediately at the entry of
> PilotMain.
> I am using some ressource
It even occurs when I put "return errNone;" immediately at the entry of
PilotMain.
I am using some ressources. Could this have to do with wrong implementation
of ressource databases at programming time?
Werner Poschenrieder schrieb:
> There is a mysterious "records lef
There is a mysterious "records left locked in closed unprotected DB2
when I run my app in a session with the CW debugger on a 3.5 debug rom.
The first one occurs, when the debugger has not even stopped at the
initial breakpoint of pilot main (huh?)
The second occurs, when the program stops.
A r
I've got the same! And only when the CW Debugger runs. Did you find the answer
meanwhile? Thank you,
Cheers Werner
Ayers Family Member schrieb:
> I created a new emulation session without any databases. I start the
> debugger in CodeWarrior, then I tap the Home icon to leave the app. The
> erro
The answer was simple: There was an "abort" button within my app, so the
gremlin left the app but worked on as before and pressed anything it could
find.
Werner Poschenrieder schrieb:
> Hi,
>
> When I start a gremlin hord with my app chosen as the only app to
> launch, o
I have been searching for DR9. Any idea where it is still available? Thanks
anyway!
Ben Combee schrieb:
> In article <86396@palm-dev-forum>, [EMAIL PROTECTED] says...
> >
> > The simulator published at the PalmSource forum calls GetLongPathnameA
> > in Kernel32.dll.
> >
> > This Entry does not e
Hi,
When I start a gremlin hord with my app chosen as the only app to
launch, other apps are launched as well. I neither want to debug
AddressDB nor Memo. How can I keep those Gremlins from launching other
apps than mine?
--
For information on using the Palm Developer Forums, or to unsubscribe
The simulator published at the PalmSource forum calls GetLongPathnameA
in Kernel32.dll.
This Entry does not exist in Kernel32.dll prior to Win2000.
Is there an update version to the simulator where this call is replaced?
Cheers Werner
--
For information on using the Palm Developer Forums, or
Forget it - the code is ok, i made some stupid nonsense somewhere else.
Werner Poschenrieder schrieb:
> Hi,
>
> I used the following code to always walk to the NEXT record in a given
> Category and I am certain id did work.
>
>uiCat = CategoryFind(_P
Hi,
I used the following code to always walk to the NEXT record in a given
Category and I am certain id did work.
uiCat = CategoryFind(_PalmDatabase, pcCat);
uiIdx = (UInt)_Position;
error = DmSeekRecordInCategory(_PalmDatabase, &uiIdx, 0,
dmSeekForward, uiCat);
i
Is it technically possible at all to trick out the mechanism which checks
access permission to certain memory areas by using an asm {}?
Chris DiPierro schrieb:
> Gah! That'd almost certainly break on OS/5 on an ARM device.
>
> "Werner Poschenrieder" <[EMAIL PROTECTE
Woohoo.. but ..sniff.. couldn't one actually hack that by writing an asm { } and
copy
to the atts member with a 68x command (within a separate own interface of
course)? (Harhar)
Terry Dennis schrieb:
> Welcome to the club of frustrated noFrame users ...
>
> I faked it out. Create the button as
I had a button control created dynamically with CtlNewControl under
PalmOS V3.3. I wanted it without frame. There was no API function to
access ControlType.attr.frame but it was permitted to access attr.frame
directly:
pUp->attr.frame = noButtonFrame;
Under V3.51 the access to ControlType.attr is
r) that they are stored in
> separate datbases, one of which has its backup bit set, the other of which
> doesn't.
>
> -bob (former yfi exchange student nach Deutschland) mckenzie, palmsource
> pdx.
>
> -Original Message-
> From: Werner Poschenrieder [mailto:[EMAIL
So when I use PrefSetAppPreferences with true, the prefs data will be stored in
the Preferences and have some property "backup to the desktop". When I use it
with false, they will be stored with some property "no backup". Correct?
When I use PrefGetAppPreferences with true, it will use a version
Hi,
According to the API manual
PrefGetAppPreferences with last argument saved = true
retrieves the "current Preferences"..
hm.. what what is meant by "current Preferences".
I understood, that preferences are saved in a resource db (hence there
are saved ones), and I can retrieve them from th
StrAtoI(CharPtr str);
Siegbert Glodek schrieb:
> Hello all,
> I'm new in C and have to convert numbers from number format to string and
> back.
>
> Reason :
> I work with Sybase-UltraLite on a database that stores some numerical values
> (with decimals, not integers). I read the values as numeri
Hm - which is the OS of these full color cell phones?
"Michael S. Davis" schrieb:
> I told you so (Palm).
>
> Over a year ago, I said that Palm would have to bend to market demands
> for Color, sound and other features offered by the PocketPC. Many of
> the palm supporters and some employees of
Hello Todd,
I am new to Palm as well actually, and I have not yet used lists as Popup
Lists.
Whatsoever, here are two possible approaches I might try for the List
object:
1 Building the list
1.1 Approach one (see PalmOS doc for details)
1.1.1 Load your DB-Records into an array of text strings,
This message was cancelled from within Mozilla.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
You can create multiple databases with DmCreateDatabase, which takes the
CreatorId and the DatabaseName (and ..) as arguments.
You can search them with DmFindDatabase, which takes the DatabaseName (and ..)
as argument and returns the ***DatabaseId***.
You may open them with DmOpenDatabase then,
Could someone please tell me, how to make a popupTriggerTableItem left
justified? I would prefer this, since the item text is always situated
right to the popup arrow (well - or could one get the text to the left)?
Thanks a lot
--
For information on using the Palm Developer Forums, or to unsub
.. You are perfectly right.
Thank you all so much and sorry..
Thomas Maeder schrieb:
> Werner Poschenrieder wrote:
> >
> > // This is "Member2" (private)
> > void CTableForm::HighlightSelection()
> > {
> > RectanglePtr pR;
> >
> &g
Hello James,
watch below..
James Nicholls schrieb:
> Hi,
>
> In C++, every member function has an implicit initial argument that takes
> the value of this. In your case, Member1 actually has two arguments of
> MyObject* this and EventPtr pEvent. When you write
> myObject->Member1(pEvent), the co
This is a good idea, well ..
MyObject has not been allocated on stack, it has been allocated by new
(i.e. nonmoveable chunk) and referenced by a living objects pointer:
StarterPalmMain -> CApp * pApp -> CBusiness * pBusiness -> CTableForm *
pTableForm
Only ~CBusiness( ) can destroy pTableForm, a
>
> Please post some real code, the above isn't C++.
Ar .. yes it ain't really .. here is the real code .. thank you ..
// This is "Member1" (protected)
Boolean CTableForm::HandleTableEvent(const EventPtr pEvent)
MemHandle hRecMem;
RectanglePtr pR;
switch (pEvent->eType) {
c
I was so in panic, that I forgot to say "Hi".
And thank you in advance.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
Code Warrior light V4.0.1, Target = PalmOS
PalmOS 3.5
ROM-Image IIIe
SysAppCmdNormalLaunch
Situation:
virtual protected MyObject::Member1( EventPtr pEvent ) {
Member2( );
}
private MyObject::Member2( void ) {
// operate on some members and local vars
}
***
>
Hi,
>From my own experience..
when you download the PalmOS SDK, it includes stationery, which again includes a
starter app framework. There is also a very goog tutorial in 20 steps.
Start with chapter 1 of the tutorial, and do some reading into the Companion
document to understand, what the
I am new to programming tables.
The OS I am using is Palm OS 3.5, ROM image is IIIe.
When I initialize my table, I select the initial item with
TblSelectItem().
When I touch another item with the pen and lift it again,
I can see the following in the debugger:
TblHandleEvent is called through e
Thank you Richard,
I've checked the launch code, it really is sysAppLaunchCmdNormalLaunch. I am not
using any other launch code in my app yet.
I can give some further details:
Indeed the address of an object is assigned to a global pointer (to make access
easier - it's a database's table).
Obj
Dear reader,
Could you please help:
===
Whithin a debug session in metro's ide I downloaded an application to
POSE.
The download progress window indicates download to 100% but the app
doesn't start: There is no more response from the ide
The messages window of the debugger is at "gc
Well, the whole thing is not too serious anyway:
I made a type cast UInt->Int16 of my database record position. This is actually not
so concerning, because I will hardly try to show more than 32767 records in my
list.
Still I try to understand why you used an Int16 for the list position, which d
The callback function for drawing a list's lines (see
LstSetDrawFunction) is defined in the handbook of SDK 3.5 as
void ListDrawDataFuncType (UInt itemNum, RectanglePtr bounds, CharPtr
*itemsText).
When I define a callback function of that type in SDK 3.5, the compiler
will complain, that ListDr
Hm...
MemHandleLock returns VoidPtr.
I assume that RecPointer is CharPtr, so you should explicitly cast the
result:
RecPointer = (CharPtr)MemHandleLock(RecHandle);
name[i] = RecPointer[i+offset];
if(RecPointer[i+2] == '\n') {
If I do remember that correctly, void pointers cannot be casted
impli
Florent Pillet schrieb:
> on 24/07/01 17:37, Ralph Krausse at [EMAIL PROTECTED] wrote:
>
> > Does anyone know any information on what Palm and Metrowerks will do for us
> > when they port to an ARM processor? Do we have to get a totally new complier
> > or would this be an upgrade? Any guesses?
Thank you! Just a few additional minor questions..
(1)
What is the additional information I can get from the debugger, when I am using
a flash ROM device? Why does it make a difference?
(2)
This is a very good idea, but I do not handle SyncNotify explicitly: My app
does nothing but return errNon
This message was cancelled from within Mozilla.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
Sometimes, after a HotSync, the device (OS3.3) presents a message, which
says: "Form.c 3696 no Event Handler". Subsequently the message
"exception sys0502" pops up.
This is not always happening, and I could not tell you when, and when
not it does happen.
The exception sys0502 is SysErrParamErr.
Hi,
The chunk which you receive by DmGetRecord from the AddressDB-Table
includes an
AddrPackedDBRecord.
You will find this probably in file AddressDB.h in the examples folder of
your
PalmOS SDK.
The complete structure of the chunk's data is
1st) the AddrPackedDBRecord, which does not comprise t
Could you also check the conditions and call FormAlert before calling
FrmGotoForm?
Alessandro Zummo schrieb:
> In a form of mine, i need to check some conditions
> within a frmClose event (typically enqueued by
> a FrmGotoForm() )
>
> If those conditions are not met, i need to warn the
> use
Thank you Brian, sounds fairly reasonable. If Palm would really change the
structure, I do believe they would also provide an interface:
Still one can e.g. run a 16bit WinApp on a Win2000 or WinME, and I should
think,
that palm will provide a similar flexibility to its own platforms: On a market,
if ( StrCompare( rcCheck, pcCat ) ) ErrThrow( (long)0x200 | 18 );
if ( StrCompare( rcCheck, pcCat ) ) ErrThrow( (long)dmErrInvalidCategory
);
causes a fatal exception on the device and on the emulator. The
StrCompare part is ok: No unallocated pointers, no leaks a.s.o..
On the emulator the exce
This message was cancelled from within Mozilla.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/
I think I had this too. Reinstalled CW. Worked again.
Dave Lippincott schrieb:
> Searching the Knowledge Base with the key "BDWM" returns...
> http://oasis.palm.com/dev/kb/faq/1790.cfm
> Does that help?
>
> - Original Message -
> From: "Essell" <[EMAIL PROTECTED]>
> Newsgroups: palm-dev-
if ( StrCompare( rcCheck, pcCat ) ) ErrThrow( (long)dmErrInvalidCategory
);
or the equivalent
if ( StrCompare( rcCheck, pcCat ) ) ErrThrow( (long)0x200 | 18 );
causes a fatal exception on the device and on the emulator
"..0xA3cc..neither RAM..nor ROM.."
(honestly not the StrCompare part)
The AddressDB structure is Open Source, so anyone knows about it and
can access the AddressDB from his own application. That's fine, as long
as the Address App programmers do not change their data structures.
Do the Address App programmers provide an API-Interface to the
AddressDB, which guarant
74 matches
Mail list logo