Difference between INetLib & NetLib
Hi All, Can anyone tell me 1.What is difference between INetLib and NetLib ? 2.In case of INetLib, is there any WebClipper/iMessanger need for Browsing Internet or No need of WebClipper and can access Internet programatically? 3.If WebClipper / iMessagner need ,then I have to create it newly or just install a predefined WebClipper to my Emulator screen. 4.How I will create a WebClipper ? 5.can my application directly access Internet without using WebBrowser? Thanks in Advance Regards, chinmaya -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Copy contents of a large DB to VFS
Donald C. Kirker wrote: for (copied = 0; copied < size; copied += numBytesWrittenP) { MemSet(tempData, 4096, 0); There is no need at all to do a MemSet(). The FileRead() is going to write over the stuff in the buffer anyway. readBytes = FileRead( cache, tempData, 4096, 1, &fileError); if (fileError != errNone) { cacheError(fileError); loopError = true; break; } This looks OK, although I'd put 4096 as a constant instead of putting it as a literal value in a zillion places. err = VFSFileWrite(fileRefP, readBytes, tempData, &numBytesWrittenP); if (err != errNone) { VfsError(err); loopError = true; break; } } This code isn't correct. VFSFileWrite() does not guarantee that it will write everything in your buffer. Your buffer could have 512 bytes in it and VFSFileWrite() might write only 17 of them the first time you call it. So, you need a loop around VFSFileWrite(); something like this: UInt32 bufferoffset = 0; do { err = VFSFileWrite (fileRefP, readBytes - bufferoffset, tempData + bufferoffset, & numBytesWrittenP); // error handling goes here bufferoffset += numBytesWrittenP; } while (bufferoffset < readBytes); What that does is starts at the beginning of your buffer, then writes as much of it as possible, advancing the offset by however much was *actually* written, then keeps going as long as what's in the buffer hasn't all been written yet. - Logan -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: code warrior log files... where?
Thank you. Wow there's a lot going on in that file. Chris Bruner Compulife Software Inc. == - Original Message - From: "Logan Shaw" <[EMAIL PROTECTED]> To: "Palm Developer Forum" Sent: Monday, January 16, 2006 10:46 PM Subject: Re: code warrior log files... where? Chris Bruner Compulife wrote: On exiting my program the debugger said that I have 7 memory leaks, and a log file would have more details (or something to that effect). I can't find a log file anywhere. Where would it end up? Are you sure it was the debugger and not the emulator? If it's the emulator, try looking in the same directory that has the emulator executable in it. - Logan -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Copy contents of a large DB to VFS
Thanks, I was thinking about that. The only problem is that only 100-400 bytes get written of a 5MB file... I'll have to do a bit mor work, but it seems hard to get anything constant on my TX. Thanks again, Donald "Thomas Damme" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > You never check if the end of the filestream maybe reached. From the > docs it seems FileRead does not throw an error when it reached EOF, you > just get 0 read bytes back. And then you still iterate endlessly in you > loop > > > Thomas > -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: code warrior log files... where?
Chris Bruner Compulife wrote: On exiting my program the debugger said that I have 7 memory leaks, and a log file would have more details (or something to that effect). I can't find a log file anywhere. Where would it end up? Are you sure it was the debugger and not the emulator? If it's the emulator, try looking in the same directory that has the emulator executable in it. - Logan -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
code warrior log files... where?
On exiting my program the debugger said that I have 7 memory leaks, and a log file would have more details (or something to that effect). I can't find a log file anywhere. Where would it end up? Chris Bruner Compulife Software Inc. == -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Chinese development?
Jeff Metzner schrieb: For a presentation, one of our salespeople wants to show a Palm form in English, and the same form in Chinese (actually Mandarin.) They can be two separate apps, if necessary. We have employees that speak Chinese, so translation is not a problem, but I don't know how to write the Chinese version of the demo app. I found Chinese versions of the E2 and TX simulators, but I'm having trouble finding information about how to create a Palm program that displays in Chinese using my English development tools (CodeWarrior 9.3). Does anyone have any experience with this, or know where I should look for information? Thanks, Jeff Metzner Hello Jeff, I'am also not aware of any development tool that supports chinese. There should be a way but I wanna help you if no one else answers.. PalmOS is able to display multi-byte characters (actually I did a quick test about 4 years ago). Therefore it should be possible to place a multibyte-string somewhere (we prefer language-datbases we embedd into our apps) and display them at runtime by copying them into a field. Or you lock and store their pointers to call CtlSetLabel(). This causes more effort on the first language but you just have to update your language-database when adding languages later. Regards, thomas -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: T3 simulator - how do I emulate slider open/close ?
Since the simulators are consistently inconsistent, I've collected these from various sources: [alt] + [ctrl] = SelectTT [alt] + [enter] = SelectT3 [home]=Treo 600/Treo 650 [alt] + [left arrow] = Navigator Left [alt] + [right arrow] = Navigator Right [alt] + [up arrow] = Navigator Up [alt] + [down arrow] = Navigator Down T3 [ctrl] + [up] = Slider Up [ctrl] + [down] = Slider Down I don't know how the T5 or TX differ. JamesS Shimon Shnitzer wrote: Hi all, Using the simulator, how can emulate using the PC keyboard the user opening and closing te slider (revieling/hiding the graffity area) ? I am implementing DIA support, and need to know how to handle a situation where a user views 320x480 with the slider open, then closes it. How is my app notified of the slider being closed, so that it can update the display to 320x320 ? Thanks ! -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Problems with shared library
Hi, I just have done a shared library to use with my NSBASIC application. In the emulator, when I am testing in the moment I leave my app the emulator show me the follow error: Project1 just read from memory location 0x, which is low memory. "Low memory" is defined as the first 256 bytes of memory. It should not be directly accessed by applications undes any circumstances. What is happening? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Treo 700w emulator or simulator
On 13 janv. 06, at 01:23, Regis St-Gelais wrote: "PalmDev" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] anybody tried the palmi 700w installer? i did and got a messages saying "could not access network location \Deviceemulation" Same thing for me. You need to have the Windows Mobile 5 SDK installed, otherwise you get the above message. I was hit by the same issue until I figure out that I only have the PocketPC 2003 SDKs installed. Florent -- Florent Pillet http://www.florentpillet.com Freelance software developer/consultant - Palm OS & Mac OS X Skype callto://florent.pillet -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Crashes after FrmDispatchEvent(&event) in AppEventLoop
Hello EB, My Application Create Dynamic Field on static Forms . If Field on Form is not Selected and Jump to Next Form Application Run Well . But if we Select Field and Jump to Next Form it will Crashes after FrmDispatchEvent(&event) in AppEventLoop. Does anybody know why this Error Has Occur and Solution for this. Code to Create Field void Create_Field(Coord Co_x,Coord Co_y,Coord Co_width,Coord Co_height,Boolean Numeric,UInt32 T_Char,Boolean B_singleLine) { Boolean B_numeric=Numeric; // Numeric pForm=FrmGetActiveForm(); Fld_ptr=FldNewField((void **)ppForm,(Q_Id),Co_x,Co_y,Co_width,Co_height,stdFont,T_Char,true,grayUnderline,B_singleLine,true,leftAlign,true,true,B_numeric); mHandle=MemHandleNew((10+T_Char)); if(mHandle==0) FrmCustomAlert(1,"MemHandleNew Failed",NULL, NULL); elseFldSetTextHandle(Fld_ptr,mHandle); if(mHandle) { FldSetTextHandle(Fld_ptr,NULL); S1=MemHandleLock(mHandle); if((StrLen(gC_pAns)>0)) { if(gC_pAns[0]=='@')StrCopy(S1,""); else StrCopy(S1,gC_pAns); } // End Of if((StrLen(gC_pAns)>0) Statement else StrCopy(S1,""); MemHandleUnlock(mHandle); FldSetTextHandle(Fld_ptr,mHandle); } FldDrawField(Fld_ptr);} Regards Shailesh Yahoo! Photos Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever. -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: sources for MemGluePtrNew
Aaron Ardiri wrote: bah.. who says that TCPMP player wrote it first? Nobody. I just mentioned where I got it from since I copied it here. And if someone copies it verbatim then the licence probably matters. Full source with copyrights is in tcpmp source in file common/palmos/pace.c But surely it is not problem to rewrite it again or take it from other sources therefore I put the wink there. Just take it as a friendly dig at Guich (because you actually can't get compilable sources of GPLed Superwaba 5.x runtime despite the licence. So you cannot tinker with it like you can with TCPMP. No big deal, just something I found funny.) Regards, Frantisek -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: sources for MemGluePtrNew
> FtrPtrNew gives you storage memory, MemGluePtrNew should give you > dynamic heap. This is from source of TCPMP player (GPL-ed). You should > rewrite it from scratch since the licence is not compatible with SuperWaba ;-) bah.. who says that TCPMP player wrote it first? if you do a google search, you'll find plenty of posts on this subject. http://news.palmos.com/read/messages?id=177303 http://www.pdarcade.com/modules.php?name=Forums&file=viewtopic&p=13643 http://www.mail-archive.com/palm-dev-forum@news.palmos.com/msg69140.html i dont remember who i found out about it; but, i first posted info on it to palm-dev-forum back in august 2002. TCPMP for palmos wasn't even started development then :) here: http://groups.yahoo.com/group/palm-dev-forum/message/76276 now i remember - it was in a resource palmsource provided to developers on how to handle native bitmaps :) no GPL there, sorry. superwaba can use it freely - actually, MemGluePtrNew is pretty much just this anyhow. -- // Aaron Ardiri -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Copy contents of a large DB to VFS
You never check if the end of the filestream maybe reached. From the docs it seems FileRead does not throw an error when it reached EOF, you just get 0 read bytes back. And then you still iterate endlessly in you loop Thomas -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Whether or not the tools build application on palm and PocketPC
j2me -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jim Cooper Sent: 15 January 2006 02:04 To: Palm Developer Forum Subject: Re: Whether or not the tools build application on palm and PocketPC > Could you tell me whether or not a tool that > can compile code for PalmOS and PocketPC? There are several cross-platform tools - looking at a list of Palm dev tools will show them to you. They don't all compile code, technically speaking, and some have 2 versions rather than truly cross-platform code > Could you comment on that tool: weakness and strong point? They all suffer from the same problem : the platforms are really quite different. You end up with an app that does not fit properly with either. Cheers, Jim Cooper __ Jim Cooper[EMAIL PROTECTED] Skype : jim.cooper Tabdee Ltdhttp://www.tabdee.ltd.uk TurboSync - Connecting Delphi to your Palm __ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: sources for MemGluePtrNew
Guilherme C. Hazan wrote: In the Perforce server at PalmSource -- the source for this code and for the whole glue library have never been released. Hacks of the world, go get them! :-D Well, i got it working with this: FtrPtrNew('SWAB',35,n<<3,(void**)&block); ... FtrPtrFree('SWAB',35); plus MemSemaphoreResearve/Release, of course. best guich FtrPtrNew gives you storage memory, MemGluePtrNew should give you dynamic heap. This is from source of TCPMP player (GPL-ed). You should rewrite it from scratch since the licence is not compatible with SuperWaba ;-) BTW, it is good when people honour the licence and share fully compilable sources ;-) MemPtr MemGluePtrNew(UInt32 Size) { MemPtr p = MemPtrNew(Size); if (!p) { SysAppInfoPtr appInfoP; UInt16 OwnerID = SysGetAppInfo(&appInfoP,&appInfoP)->memOwnerID; p = MemChunkNew(0, Size,(UInt16)(OwnerID | memNewChunkFlagNonMovable | memNewChunkFlagAllowLarge)); } return p; } -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
[debug] network application
Hi,I would like to know if there is a method for debugging network applications (on a simulator ?).In fact, I am working on a application which uses the GPRS (and so the NetSocket.lib), that'swhy I am forced to test it directly on the palm itself. The problem is that when I have a segfault or other kind of errors, the palm resets itself (it is quite unpleasante to know where the bug is :S).my solution : The idea I have is to replace the NetSocket lib by a fake lib which simulate networktransactions. So I will create a database which contains transmitted data and then when the read socket function is called, just get data from the database.What's about this idea ? Is there an ( better / quicker / already exists ) other solutionfor debugging applications which use network ?-- Patrick Guiran -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
What bit depths need to be supported under OS 5?
I'm writing an application that runs only on OS 5 devices. Obviously it must have bitmaps for both single and double resolution. What's tougher to tell is what bit depths need to be supported. All of the OS 5 device I know about support 16 bit color. Are there OS 5 devices that are only 8-bit color? 4-bit grayscale? 1-bit black & white? If so, are they single or double resolution? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Debugging on USB
Following may provide some help 1) Search on the path of Instaide.dll and usbport.dll in regedit. 2) Copy usbport.dll to same path where you have Instaide.dll. 3) You also need DotDotTwo.prc on ur treo 650 4) Make sure HotSync not running on UBS Port. On 9/17/05, g3BEPA <[EMAIL PROTECTED]> wrote: 10x a lot!!you saved my life :-)I owe you at least a beer ! :-)--For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
T650 sim - how to turn off radio search
whenever i launch the Phone app on the t650 sim it tries to search for a network. how do i disable this feature? -- For information on using the PalmSource Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/