Re: programaticaly deactivate the beam receive

2003-08-22 Thread Ralf Dietrich
Regis St-Gelais wrote: I'm back to square one. Here is some old codes from the achive: --- 8- - void DisablePalmBeam() { IrStatus error; Word beam_ir_ref; Word beamLen = sizeof(beamPref); error =

problems with FrmReturnToForm (0)

2003-08-22 Thread Giorgos Sarris
Hi to all, Does anobody know how to fix this: I load my 'GameForm', and then I use FrmPopupForm(AnotherForm); to load another form on the GameForm. (As far it goes ok) then for example I change some settings and I want to get back to the first form (GameForm) and I use FrmReturnToForm (0);. In

Re: calling NETLIBSEND repeatedly

2003-08-22 Thread L.M. Fridael
Arijit Das [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am calling NETLIBSEND repeatedly to send a string to the server. On the server side I only see the first string sent, other calls are not recieved at the server side. Any pointers as to how to call NETLIBSEND repeatedly.

Re: problems with FrmReturnToForm (0)

2003-08-22 Thread kcorey
On Fri, 2003-08-22 at 09:39, Giorgos Sarris wrote: Does anobody know how to fix this: I load my 'GameForm', and then I use FrmPopupForm(AnotherForm); to load another form on the GameForm. (As far it goes ok) then for example I change some settings and I want to get back to the first form

Re: Database help.

2003-08-22 Thread Frank Schaeckermann
Steve K wrote: The way I am currently using the palm database does not seem correct. Yes I have gotten it to work, and it is doing what I ask it to do, however, It seems WAY too complex and there has to be a better way. Currently I keep my information in a struct Rec For example: Struct Rec {

NetLibSocketBind

2003-08-22 Thread Alexandre Barreto
I'm using this function and its is returning -1 so i checked the err param to see what error it was but the error don't mach with any of th ones especified in the reference if(NetLibSocketBind(libRefnum,DataSock,(NetSocketAddrType*)A,sizeof(A),timeout,errP) == -1){ WinDrawChars(Erro

inetErrReadTimeout

2003-08-22 Thread narender reddy
Hello everyone I get this error(inetErrReadTimeout or 1413)when the server is taking too long to response the request.this Mostilly happens at the peak time when many users connect to it. Anyone has solutions to overcome this problem please suggest me.Please tell me after catching this error

Problem with HRWinScreenMode()

2003-08-22 Thread marc polican
hello, im having problems with the sony sdk. whenever i call the HRWinScreenMode(..) function i get a bus error. So, i cant use the high resolution feature. can anyone help me? thanks. -marc __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design

Tungsten C and NilEvent problem ?

2003-08-22 Thread Bertrand Simon
Does anybody knows about problems on nilEvent ONLY on Tungsten C. Simple code like : EvtGetEvent(event, sysTicksPerSecond); if (event.eType==nilEvent) UpdateDisplay(); does not work on T|C only ... Any hints will be appreciated :-) Bertrand Simon. http://GPSpilot.com -- For information

Re: bus error when table custom draw routine is modularized

2003-08-22 Thread Dave Lippincott
Its overflowing because, as Ben pointed out, TimeToAscii requires timeStringLenght characters not 6. You may think it uses only 5 characters but you never know what the routine is actually doing. My bet is the routine creates the whole string and crops off the parts you specified you didn't want

Re: Database help.

2003-08-22 Thread Dave Lippincott
As already pointed out, you can't write pointers to records in your PDB file. Another way to simplify writing and reading the structure is to use a fixed size for your character string members and write the whole structure as a record. try: Struct Rec { int foo; char

Re: Problem with HRWinScreenMode()-followup

2003-08-22 Thread pocanman
btw, i forgot to mention that im developing on falch.net and using the sony sdk 3.0 --- In [EMAIL PROTECTED], marc polican [EMAIL PROTECTED] wrote: hello, im having problems with the sony sdk. whenever i call the HRWinScreenMode(..) function i get a bus error. So, i cant use the high

Re: Problem with HRWinScreenMode()-followup

2003-08-22 Thread kcorey
Did you load the HR library as the Sony docs have said? What's the code look like that you're calling to set the screen mode? What parameters are you passing in? -Ken On Fri, 2003-08-22 at 13:21, pocanman wrote: btw, i forgot to mention that im developing on falch.net and using the sony sdk

Re: T/2 Voice Memo button

2003-08-22 Thread Geoff Akens
Anyone know the key bit that is set when checking KeyCurrentState() for this button? - Original Message - Message: 5 Date: Thu, 21 Aug 2003 17:33:12 -0700 From: Rob Larson [EMAIL PROTECTED] Subject: Re: T/2 Voice Memo button I've never seen any documentation about how to use the

Re: T/2 Voice Memo button

2003-08-22 Thread Aaron Ardiri
Anyone know the key bit that is set when checking KeyCurrentState() for this button? keyBitHard5 get the latest SDK from the palmos.com website - it has the constant defined in the header files. you'll find a lot of cool stuff there if you look hard enough :) --- Aaron Ardiri

Re: Problem with HRWinScreenMode()-followup

2003-08-22 Thread pocanman
--- In [EMAIL PROTECTED], kcorey [EMAIL PROTECTED] wrote: Did you load the HR library as the Sony docs have said? What's the code look like that you're calling to set the screen mode? What parameters are you passing in? -Ken - yes i did. copy-pasted the code from sony docs :D

Regd VFSDirEntryEnumerate

2003-08-22 Thread TVS Deepak
Hi all, I have a strange problem regarding function VFSDirEntryEnumerate. I have an directory entry in my MMC Card by name Music ('M' Capital) Now when I call VFSDirEntryEnumerate, the error code that I get is vfsErrFileGeneric Now if I change the name of the directory to

Re: programaticaly deactivate the beam receive

2003-08-22 Thread Regis St-Gelais
In the documentation it says: Implemented only if 4.0 New Feature Set is present. but it looks like it is working. I did some test before with ExgControl and it was not working in OS 3 so I did not bother to check with ExgLibControl. It was my mistake to trust the documentation so mutch. I should

Re: Problem with HRWinScreenMode()

2003-08-22 Thread Frank Schaeckermann
Marc, you will have to post some more details for anybody being able to help you! I have written quite some code using the HR library of the Sony SDK and have so far been able to get everything working without bus errors. You must be making a mistake in the call to the routine I guess... Frank

Show Label

2003-08-22 Thread rguevara
Hi, i have one Label and want change thus label, with: FormType * form=FrmGetActiveForm(); UInt16 index=FrmGetObjectIndex(form,OrdenDescLabel); ControlType *ctl=GetObjectPtr(OrdenDescLabel); MemHandle recH=DmQueryRecord(PedidosDB,filtvec[posinvec+1].start+gposinord ); FrmHideObject(form, index);

Re: Tungsten C and NilEvent problem ?

2003-08-22 Thread Dave Lippincott
Just because you are not getting a nilEvent event, doesn't mean its broken. The time out specified in EvtGetEvent generates a nilEvent IFF no event has been placed in the queue within the specified time. Could the Tungsten C have a high frequency of events due to the radio? I'd change the 'if

Re: Problem with HRWinScreenMode()-followup

2003-08-22 Thread Frank Schaeckermann
Hhmmm... that looks pretty okay to me... did you have the compiler set for 16 bit integers? Just a wild guess... I am not sure it would have any effect on the types used in this particular API but it's worth checking I guess... Frank pocanman wrote: --- In [EMAIL PROTECTED], kcorey [EMAIL

Is Palm Note Pad Format known?

2003-08-22 Thread Scott D . Schmitz
Does anyone know how I can get information on Palm Note Pad, an application from palm which allows doodles to be saved? I would like to be able to read/write scribble notes to its database. Is the source available for this palm application? thanks, Scott Schmitz. -- For information on

Re: Show Label

2003-08-22 Thread Dave Lippincott
Try using a field and make it read only. Its a little easier/safer. But if you stick with a label, don't use CtlSetLabel, use FrmCopyLabel. - Original Message - From: rguevara [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Sent: Friday, August 22, 2003 10:51 AM Subject:

Re: Is Palm Note Pad Format known?

2003-08-22 Thread Ralf Dietrich
Scott D. Schmitz wrote: Does anyone know how I can get information on Palm Note Pad, an application from palm which allows doodles to be saved? I would like to be able to read/write scribble notes to its database. Is the source available for this palm application? I only know this from the

Re: calling NETLIBSEND repeatedly

2003-08-22 Thread Palm Dev Forum
I remember once forgetting to reset the buffsize to the remaining bytes in buffer. It was set to zero and nothing was sent. Why not simulate a server with another program written with sockets on the PC to read the data. All it needs to do is to write the received data to a file for your

Re: static library linker problem

2003-08-22 Thread Ralf Dietrich
Monika Kauntz wrote: Help. I have built some static libraries and now I am building a main program and when I go to make this main program with a static library linked to it I get linker errors like the following: Link Error : mycfile.c: Global Object 'function name' was already defined in

Re: new/delete problem in PALM OS

2003-08-22 Thread Jeremy Neal Kelly
Alucard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Just like to ask who has encountered this new/delete problem in PALM OS? i tried to implement one using the codewarrior.. with this given value : Char* y = babc/b n.\n; wherein i first allocate a storage e.g. Char* x

Re: MultiSegmenting Questions

2003-08-22 Thread David Martin
I just did this yesterday for the first time. (There really should be some kind of celebration for this, like crossing the equator aboard a ship) With that in mind I think I can answer some of the questions, so I'll have a go at it: Now, these are my questions: 1) When i need to segment a

Re: Regd VFSDirEntryEnumerate

2003-08-22 Thread Jan Slodicka
I also experienced vfsErrFileGeneric error when enumerating the root directory. But except receiving this error (only in root!) everything seems to be correct and ignoring it seems to be sufficient. We spent already quite some time searching for an explanation, but nothing helped. However, one

Application Icon Sizes

2003-08-22 Thread Brad Figler
What are the correct icon sizes for ICONFAMILYEX and SMALLICONFAMILYEX? Thanks, Brad -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

RE: Regd VFSDirEntryEnumerate

2003-08-22 Thread Jeff Ishaq
Original msgs trimmed for brevity: -Original Message- From:Jan Slodicka Sent: Friday, August 22, 2003 9:45 AM I also experienced vfsErrFileGeneric error when enumerating the root directory. Does anybody know something more? - Original Message - From: TVS Deepak [EMAIL

RE: Application Icon Sizes

2003-08-22 Thread Keith Rollin
22x22 and 15x9. You can see this defined in the UI Guidelines documentation: http://www.palmos.com/dev/support/docs/ui/UI_FittingIn.html#970798 -- Keith -Original Message- From: Brad Figler [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2003 9:58 AM To: Palm Developer Forum

Re: Application Icon Sizes

2003-08-22 Thread Ben Combee
At 11:57 AM 8/22/2003, Brad Figler wrote: What are the correct icon sizes for ICONFAMILYEX and SMALLICONFAMILYEX? Single density is 22x22 and 15x9. High Density is 44x44 and 30x18. One-and-a-half density (for 240x240/320 devices) is 33x33 and 23x13. (This isn't supported until Palm OS 5.3) --

Do anyone know where to find the sample for Zire 71 camera ?

2003-08-22 Thread Eccles Kwong
Do anyone know where to get the sample code for the camera capture ? I try for many time but still get error. Thx ! Eccles Kwong /*** * * FUNCTION: CameraLibCaptureCallback * * DESCRIPTION: This routine capture the image in

Re: Application Icon Sizes

2003-08-22 Thread Brad Figler
Ben/Keith, Thanks, that would explain the new warning about icon sizes that CW 9.2 beta! Brad -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Application Icon Sizes

2003-08-22 Thread Ben Combee
At 12:38 PM 8/22/2003, Brad Figler wrote: Ben/Keith, Thanks, that would explain the new warning about icon sizes that CW 9.2 beta! That warnings in PilRC 3.0... my original wizard in V9 got the bitmap sizes wrong, but that should be fixed for new wizard-generated project in 9.2. -- Ben Combee

Re: NetLibSocketBind

2003-08-22 Thread David Chevalier
Alexandre Barreto wrote: I'm using this function and its is returning -1 so i checked the err param to see what error it was but the error don't mach with any of th ones especified in the reference if(NetLibSocketBind(libRefnum,DataSock,(NetSocketAddrType*)A,sizeof(A),timeout,errP) == -1){

Creating a SHIM

2003-08-22 Thread rnayak
I want to create a SHIM on the Tungsten C such that all network traffic passes this SHIM before being transmitted by the built-in 802.11b wireless driver. Are there any examples of creating SHIMS available? In the SDK there is an example for VPN. Is there any other example I an use. Also, how

Re: NetLibSocketBind

2003-08-22 Thread David Chevalier
I just noticed your other post with the following parameters to your bind call: A.family = netSocketAddrINET; A.port = NetHToNS(1024);//_pda_float_to_sdword(porta)); A.addr = NetLibAddrAToIN(libRefnum, 192.168.10.118); Trying to bind your socket to the address 192.168.10.118 would be an error

Re: Application Icon Sizes

2003-08-22 Thread Brad Figler
Ben Combee wrote: At 12:38 PM 8/22/2003, Brad Figler wrote: Ben/Keith, Thanks, that would explain the new warning about icon sizes that CW 9.2 beta! That warnings in PilRC 3.0... my original wizard in V9 got the bitmap sizes wrong, but that should be fixed for new wizard-generated project

Resizing a bitmap in OS5

2003-08-22 Thread Danny Wong
I have a bitmap what is the quickest way to resize it 2 times? -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

Re: Application Icon Sizes

2003-08-22 Thread Keith Rollin
At 11:30 AM -0700 8/22/03, Brad Figler wrote: Where your sizes 25x22 and 50x44 by chance? I am trying to figure out where I got those numbers from. PilRC reported the correct warning becuase my bitmaps are the wrong size. There's some inconsistency in the icon sizes in the SDK samples (at

Displaying floating point num in column of table?

2003-08-22 Thread Aron Preseley
I need to display a floating point number as one of the columns in a table. Since there is no built in type for floats in TableItemType, I was looking for some advice on an easy way to deal with floating point numbers in a table. Using a textTableItem seems logical, but I don't know of an easy

Re: Displaying floating point num in column of table?

2003-08-22 Thread Ben Combee
At 02:27 PM 8/22/2003, Aron Preseley wrote: I need to display a floating point number as one of the columns in a table. Since there is no built in type for floats in TableItemType, I was looking for some advice on an easy way to deal with floating point numbers in a table. Using a

need help w/pilrc: can't get rid of frame border on modal form

2003-08-22 Thread Dave Lasker
I am a PalmOS and pilrc newbie, so forgive me if this is a dumb question: I am trying to create a notes entry form similar to the built-in NewNotesForm. I used the following pilrc code: FORM ID NoteForm AT (0 0 160 160) NOFRAME MODAL DEFAULTBTNID NoteFormDoneButton BEGIN TITLE Enter Note FIELD

Re: Displaying floating point num in column of table?

2003-08-22 Thread Aron Preseley
Actually, I didn't explain myself very well. I also need to have the user enter the floating point number as well as displaying it. Aron. From: Ben Combee [EMAIL PROTECTED] Reply-To: Palm Developer Forum [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Subject: Re: Displaying

Strings and databases

2003-08-22 Thread Yogesh Saletore
Hello, I'm fairly new at C for Palm and Palm programming. I need some help with recording strings in databases. Right now I just want it to work, and don't really want to deal with any packing until later. I have an error message I want to store, and it is part of a larger struct: typedef

Re: Strings and databases

2003-08-22 Thread Brad Figler
A simple fix would be to declare your struct as follows: typedef struct { char note[ 300 ]; enum ErrorLevel level; Boolean read; } ErrNote; The way you have it, you only allocated 4 bytes for your structure member note. Brad Yogesh Saletore wrote: Hello, I'm fairly new

Using DmGetLastErr()

2003-08-22 Thread Yogesh Saletore
Hello, I'm having some issues with getting data in and out of the database. I need to know when the data fails, but I don't know how to use DmGetLastErr(). The only way I know of checking is using an if to compare it one by one against known error constants provided by the data manager. Does

Writing ARM subroutine

2003-08-22 Thread munroel
I was wondering if anyone knew of an ARM compiler for windows that I could download to compile my ARM subroutine. I also looking for some sample code that I could use as an example of how to build the ARM routine. I haven't done this before so I am not really sure of the steps, so any help

Re: Writing ARM subroutine

2003-08-22 Thread Ben Combee
At 05:12 PM 8/22/2003, munroel wrote: I was wondering if anyone knew of an ARM compiler for windows that I could download to compile my ARM subroutine. I also looking for some sample code that I could use as an example of how to build the ARM routine. I haven't done this before so I am not

Re: Using DmGetLastErr()

2003-08-22 Thread Tom Hoelscher
DmNewRecord returns a handle of 0 if it fails, and you would call DmGetLastErr to get the error code. DmWrite returns an error code (errNone if no error), and you can use DmWriteCheck to validate what you intend to pass to DmWrite (if necessary) - it returns errNone if no error, or

Re: Do anyone know where to find the sample for Zire 71 camera ?

2003-08-22 Thread Nicolas Pabion
Eccles, Check PalmOne website for the SDK. (http://www.palmone.com/us/developers/). The Camera sample has a small issue: Files are read only and PilRC won't be able to override the resource header. Just change all the files to read/write. Nicolas Eccles Kwong [EMAIL PROTECTED] wrote in message

Re: Creating a SHIM

2003-08-22 Thread Nicolas Pabion
The Shim sample code is a bit complex. After you installed the VPPISample.prc on the device, go to the VPN Panel. You should have a choice now between 2 VPN, one being the sample the other one being mergic [I think]. Testing the Shim on the simulator is not possible right now, we need to provide

Re: Writing ARM subroutine

2003-08-22 Thread Aaron Ardiri
There are also various versions of gcc, including prc-tools 2.3, that include ARM compilers. The prc-tools implementation already has significant support for PNO creation, while other GCC builds will require a lot more tweaking. may i add: http://prc-tools.sourceforge.net/ The current

Re: new/delete problem in PALM OS

2003-08-22 Thread Albert J. Franklin
Just to clarify what Jeremy is saying: the i++ produces a side effect. For example, when i == 1, then execution of the statement x[i++] = y[i++] sets x[1] == y[2], and i ==3; or x[2] == y[1], and i ==3; depending on which side of the equation the compiler executes i++ first. Your best bet is:

RE: Strings and databases

2003-08-22 Thread Randall Pulsifer
Brad's suggestion will get you working, but when you have just one variable string, you can make future packing easy by putting this field at the end in your definition of the struct type. The code below is from one of my projects where I know the size of the first two arrays are always 6 4, but

Re: Do anyone know where to find the sample for Zire 71 camera ?

2003-08-22 Thread Eccles Kwong
Thx, actually, I use CW. And I had done this. Now, the problem that I am facing is I can't get the image pointer after the capture press. Do anyone working on that 2 ? Thx a lot ! Eccles Nicolas Pabion [EMAIL PROTECTED] ¼¶¼g©ó¶l¥ó·s»D :[EMAIL PROTECTED] Eccles, Check PalmOne website for the

Tables + dateTableItem Format

2003-08-22 Thread Julio Sejtman
Hello I'm working with a table that have a column were they items are configured like dateTableItem and it shows me the date in the format Month/Day. I want to the table shows me the date in the format Day/Month. How can I do this? Thanks Julio -- For information on using the Palm

Re: Application Icon Sizes

2003-08-22 Thread Luc Le Blanc
Ben Combee a écrit : At 11:57 AM 8/22/2003, Brad Figler wrote: What are the correct icon sizes for ICONFAMILYEX and SMALLICONFAMILYEX? Single density is 22x22 and 15x9. Interestingly, under Palm OS 2.0, a 22x22 icon gets displayed shifted down on the desktop view. I found you must make it

Tables + dateTableItem Format

2003-08-22 Thread Julio Sejtman
Hi I'm working with a table that have a column were they items are configured like dateTableItem and it shows me the date in the format Month/Day. I want to the table shows me the date in the format Day/Month. How can I do this? Thanks Julio -- For information on using the Palm

RE: Writing ARM subroutine

2003-08-22 Thread Eric Cloninger
you are better of cross compiling later versions of gcc yourself Or buying CodeWarrior. [...duck...run for cover...] But I'm biased. -E -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/

RE: Application Icon Sizes

2003-08-22 Thread Eric Cloninger
Luc, If you are using CodeWarrior, that's an artifact of the way the original Constructor shifted the 32x32 MacOS icon resource to fit the Palm launcher. Some versions of PilotRez/PalmRez shifted the icon and some centered it along the x axis. If you build your app using CodeWarrior 9.2, it