Development tool based on VB
I have made an application in VB 6.0 and EVB 3.0 for PC and Pocket PC 2002/2003 respectively.Now i want my application to run on Palm OS devices too. For this i have studied the tutorial which comes with the CodeWarrior and i have realized that it is based on C++. Is there any development tool based on VB which will allow me to make my application for Palm OS devices. I have heard about AppForge and NSBASIC but i am confused as to which i should purchase. I don't want to make a wrong decision. My application requires a strong user interface and alot of mathematical calculations. There is also some database handling involved in it. (Both local and remote i-e on the internet) I need advice on this. I hope u will all help me in making a correct choice. Mahrine This message was sent using IMP, the Internet Messaging Program. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
auto reset
Hi, all. In my application, when I create a new database, it returns to the list view form as expected. I can't read it right away, and the device reset automatically. However, when I install the application again (using shortcut 2), I can read the database. What are the possible reasons? _ Linguaphone : Learning English? Get Japanese lessons for FREE http://go.msnserver.com/HK/30476.asp -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Keyboard modifiers
Is there a way to poll the status of the option and shift keys directly on the keyboard-equipped Tungstens or Clies? I'm looking for a way to detect shift-tap and option-tap events. Although the Dana has a KybdGetModifiers and the Treos have HsKeyCurrentStateExt, for instance, I can't seem to find analogous functions for either Tungstens or Clies. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Porting a large C++ program
Plus don't forget a shared library has no access to globals, which included (IFAIK) static member variables of a C++ class. Alan <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hi > > > > I'm looking into porting a large C++ library to the PalmOS (v3.5 and > > higher). The library is certain to become bigger than 64K. Exceptions > and > > 1) create a GLib shared library. > > > > 2) create a mulit-segment application. > > > Your app will be multi-segment, but that's not a > big issue since the compilers doing all the work. > You've just got to learn a small set of things > about managing muti-segment sets of source. > > As far as the library goes the approach I used was > to break the library up into logical modules and > implement each module as a static library. You > don't specify whether you need this library to be > shared or not, but then the same thing is true - > split it into managable modules. > > I understand that there are ways to build multi- > -segment shared libraries, but I would have > thought that things like debugging would become > more difficult. > > Chris > Tutty > > > This message was sent using InSPire Net Webmail. > http://www.inspire.net.nz > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
ARM jpg lib avail for OS5+
New arm jpg library based on Matt Flemming's port is now available at http://www.toysoft.ca/quickview.html Compatible with CW, CASL etc... Includes viewier for viewing jpgs. Easy to integrate into your app. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Resizing resources and soring multidimentional arrays
Thanks! I can't believed I missed that. I opened the database in read-only mode! Now I have a problem with what lies within that resource. The resource begins with a structure, lets say 'ResHeaderType'. Following this structure is an array of 'ItemType' (of wich can have a varying # of entries), followed by a another array of say 'TileType' (of wich again can have a varying # of entries). ResHeaderType has values that state how many ItemTypes and TileTypes, lets say 'NumOfItems' and 'NumOfTiles'. Rptr is a pointer to the start of the resource. How do I obtain pointers to the first ItemType and the first TileType? Would the following work? ItemType *Iptr = (ItemType*)(Rptr + sizeof(ResHeaderType)); TileType *Tptr = (TileType*)(Rptr + sizeof(ResHeaderType) + (sizeof(ItemType) * NumOfItems)); Would Iptr and Tptr point to the data I want? When I tried to do that, I seem to get scrambled data. I had no trouble writing to them by using sizeof(ResHeaderType) as the offset for the ItemTypes and (sizeof(ResHeaderType) + (sizeof(ItemType) * NumOfItems) as the offset for the TileTypes. >>I am trying to use the fuction 'DmResizeResource', and it keeps on >>failing. I discovered that the error code (returned by DmGetLastErr) >>is 516, but I have no idea what that is. Does anyone know what error >>this is? The error code is not defined as a hex or Dec value in >>Datamgr.h, > >Why sure it is: > >#define dmErrReadOnly (dmErrorClass | 4) >Where dmErrorClass is defined in ErrorBase.h as 0x200 or 512. > >512 | 4 = 516. The error code you're getting looks like it's for trying >to resize something that's read only. > >matt __ New! Unlimited Netscape Internet Service. Only $9.95 a month -- Sign up today at http://isp.netscape.com/register Act now to get a personalized email address! Netscape. Just the Net You Need. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: LIST Object and Setting font
Fruber Malcome wrote: Well the LstGlueSetFont worked great - thanks, I'm not sure why the other method didn't work. It is very possible that the internal list code set the font ID to the font configured in the resource and then restored it after your callback. I normally do what you suggested yourself, and set the ID in the callback. thanks - bill -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
TableType - Row Height
There seems to be allow of space between the rows in my table, is there a way to decrease the size of the row height in a table? It seems that calling TblSetRowHeight just cuts the font off at the bottom, but I still have plenty of space on the top of the row. Any Ideas? thanks - bill -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: LIST Object and Setting font
Well the LstGlueSetFont worked great - thanks, I'm not sure why the other method didn't work. thanks - bill "Brad Figler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > In your list drawing callback, use FntSetFont then draw what you need to > > using WinDrawChars or some variant of that. That should use the current > > font. > > > Alternatively, you could call LstGlueSetFont(), but I think that only > works in OS 5 and up. > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: LIST Object and Setting font
I could call this function in my callback, but I'm worried about the perf hit I do this. Shouldn't be a problem. I'll let everyone know how LstGlueSetFont works. That should work fine too, but if your font has a height that is different than the stdFont (or whatever font you assign to the list when you define the resource), you might run into problems. You might need to call LstSetHeight plus some housekeeping (list erase, list redraw, erase the border rectangle, etc.). Regards, Steve Mann -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: LIST Object and Setting font
I'll try the LstGlueSetFont, currently I do call the WinDrawChars function within my callback, for some reason it doesn't seem to be using the current font. At least, during form load, I do call FntSetFont to the custom font that I want to use, I've hook my FntSetFont wrapper to ensure that it's not being called with a normal font ID, I've found no place in my code that calls FntSetFont with the (stdFont), but I do see my call to this API with a custom font. Unfortunately when I call FntGetFont from the WinDrawChars function (my wrapper), the font is stdFont and not my custom font. That leads me to believe that something - somewhere outside of my code is calling FntSetFont. I could call this function in my callback, but I'm worried about the perf hit I do this. Any ideas? I'll let everyone know how LstGlueSetFont works. thanks - bill "Brad Figler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > In your list drawing callback, use FntSetFont then draw what you need to > > using WinDrawChars or some variant of that. That should use the current > > font. > > > Alternatively, you could call LstGlueSetFont(), but I think that only > works in OS 5 and up. > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
WinScreenMode bug on Zire71/Tungsten E
Switching screen depth on my Zire71/Tungsten E device (probably happens on T1 and T2 aswell) causes a visual artifact. The display 'hickups' and a black rectangle with varying height and the width of the entire screen is displayed momentarily. Seems to me that this is the result of the DMA Controller stops providing the LCD Controller with frame data in the middle of a frame, resulting in that zeros instead of frame data are being sent out to the LCD Controller pins for the remainder of that frame. Do you others see this aswell on your devices? Perhaps someone from palmOne can comment on whether there is something one can do to avoid this behaviour? This happens when switching from one screen depth to another, i.e. from 8 bit to 16 bit and vice versa. (Trying to set the screen depth to the current value is probably ignored by WinScreenMode ) Below is some code if someone would like to test this. TIA, Jonatan Uint32 width, height, depth; Boolean enableColor=true; width = 160; height =160; depth = 16; // Set screen depth to 16 bit error = WinScreenMode ( winScreenModeSet, &width, &height, &depth, &enableColor); -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: new hi-res bitmap not being used
The only suggestion I can make is that you ensure the high-res bitmap is exactly double the height and double the width of the low-res one. You don't need to use WinSetCoordinateSystem, since the OS will automatically choose the best bitmap that it is capable of displaying. So what exactly happens at this point? Does the low-res version still show up, or nothing at all? Hope this helps, Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Brian Preston Sent: February 4, 2004 5:51 PM To: Palm Developer Forum Subject: new hi-res bitmap not being used I'm trying to add hi-res bitmaps to my existing app. I've already added one successfully as the Application Icon a while ago when I was trying to get this started. Now I've added a Double Density bitmap to an existing Bitmap Family, but when I run it with the Palm Simulator, it won't display the new hi-res bitmap inside the app, even though it does display the hi-res application icon. What am I missing? I've seen some threads mention WinGetCoordinateSystem, do I have to use that? Thanks __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Tools talk at developer conference
Hi All, We are going to be releasing some of our tools at the PalmSource developer's conference and I'll be doing a presentation on them. I think that many of you will find the tools really useful so please come to the talk. The talk is at 10:00 pm on Wednesday right after the certification exam and is titled, "Tools for Removing Roadblocks". I've only got 30 minutes and there is a lot to cover so I will end up primarily touching on the high points but it should give you an idea how to get going. Here is what I'll be talking about: 1. How to integrate PocketPurchase into an application. We have a new single-call interface that makes this easy. This is the only item that requires use of our service. 2. Creating an installer with our free Windows installer builder. The installer builder can generate separate EXEs for each web store automatically. It will install the PocketPurchase components automatically if it detects that the app is PocketPurchase enabled. It can install conduits and Palm Desktop shortcuts. It can also do some cool things like merge optional resources into your main PRC. Great for supporting multiple screen resolutions. 3. Our desktop Palm Data library. This library implements pretty much all of the Palm OS Data Manager and Memory Manager calls, plus a few more useful functions like TimGetSeconds. Using it, you can access PDB/PRC files on the desktop just as you would on the handheld, making it possible to share code between your handheld app and conduit. This library allows us to share code between our handheld app, desktop conduit and Linux back-end server. 4. PNO Glue Builder. Works as either a standalone tool for use with 'make' or as a CodeWarrior plug-in. It creates glue files to dramatically simplify using PNOs from the PACE layer. Using this tool, it took less than 15 minutes to add PNOs to WordSmith to do document compression and decompression. 5. Our Palm OS Language plug-in technology. A number of developers are using this as an easy way to create foreign language overlays. If you also use our installer, the installer will sanity check the overlays and can actually merge the foreign language overlay into the primary PRC file. 6. HotSyncDLLs auto-glue library. Why ship Palm DLLs with your app when the user already has them installed? Link with this library instead and your app will automatically link to the existing DLLs. This has the added advantage that your app can still load if none of the DLLs are present and do something appropriate. The installer, PNO Glue Builder and our language technology is already available online at http://pocketpurchase.com/tools so feel free to have a look now if you like. See you at the conference. Scott Maxwell PocketPurchase, Inc. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
streaming sound on Treo600 vs TT
I'm having problems with my palm playing ADPCM streaming sound on the Treo600. Everything works fine on the T/T. does the Treo600 have the same sound manager as the TT? it can play uncompressed wave files fine but no compressed. is extented sound manager supported by the Treo600? thanks -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: sndstreamcreate usage???
On Wed, 4 Feb 2004 20:56:35 + (GMT), =?iso-8859-1?q?vikram=20sonawane?= <[EMAIL PROTECTED]> wrote: > could u plz tell me abt the initialisation of the >buffers i.e. >typedef struct { > Int16 *bufOrigin; > Int16 *bufPastEnd; > Int16 *bufCurrent; >} BufPtrs; > >..i'm getting an error for Memmove func. saying >tht memmove to null, as i'm using the function without >initialising the first parameter i.e. the destination >buffer. You must allocate some memory, say enough for 4 blocks, and then make bufOrigin and bufCurrent both point to the beginning of that memory. Then make bufPastEnd point to the address that is one byte beyond the last bytes allocated. See how bufPastEnd is used in my callback to detect wrap-around. Then, each time the callback is called, it will advance bufCurrent by one block. As part of the nilEvent processing, you watch for changes in bufCurrent and process the filled buffers accorinding. Make sure to allow for the possibility that several buffers may have been filled when you handle the nilEvent. Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
new hi-res bitmap not being used
I'm trying to add hi-res bitmaps to my existing app. I've already added one successfully as the Application Icon a while ago when I was trying to get this started. Now I've added a Double Density bitmap to an existing Bitmap Family, but when I run it with the Palm Simulator, it won't display the new hi-res bitmap inside the app, even though it does display the hi-res application icon. What am I missing? I've seen some threads mention WinGetCoordinateSystem, do I have to use that? Thanks __ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Indexed and direct color
I went to some trouble to convert an image from direct color to indexed so that I could flash all the colors in an image by just changing the palette entries. Works great in the emulator. However, on a real Palm Zire 71 device the speed at which the flashing takes place depends on how many pixels in the image have that color. This would imply that the palette or color table in these devices is fake -- the OS is actually writing individual pixels to mimic the operation of a palette. Can anyone confirm this? Is there information out there about the actual graphics hardware in various Palm devices (i.e., do any have hardware palette DACs??). Thanks a lot. -Rainer -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: LIST Object and Setting font
In your list drawing callback, use FntSetFont then draw what you need to using WinDrawChars or some variant of that. That should use the current font. Alternatively, you could call LstGlueSetFont(), but I think that only works in OS 5 and up. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: LIST Object and Setting font
Does anyone know the API to call in order to set the font for the List control? I've tried FntSetFont - but it seems that the list control doesn't use the current font. In your list drawing callback, use FntSetFont then draw what you need to using WinDrawChars or some variant of that. That should use the current font. Regards, Steve Mann -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Fonts for developers
Did you ever find a better tool? I did find that tools like FontBucket etc, would create font binaries within a pdb. (I would just remove the PDB header and the trailing information and I would be left with a font resource that could be used.). But even that didn't create nice fonts. Since I manually creat our fonts using FontLab and have a really nice TTF with all the hints etc., it would be nice to be able to easily take this information and create a better looking glyph than the one xFont or the others create. thanks - bill "Mark Cameron" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I've searched the archives and every web site I could think of, and I've > found a ton of fonts, font tools, etc. I've tried xFONT and NDMFont, > both of which are great tools, but it's a lot of work to clean up > converted fonts. It wouldn't be too bad to clean up a few of them, > except that I also need to create high-density versions. > > I'm wondering if there are any PilRC-compatible font libraries out > there? I've found a ton that work with Hackmaster or other tools, but I > just want to embed a few of them right into my app. Ideally I'm looking > for ready-made PHN files or TXT glyph files. > > Thanks, > > Mark Cameron > Techneos Systems Inc. > > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: CheckBox in List.
May I ask, how you were able to change the font for a list control? thanks - bill "Rangababu, TNV (IndSys)" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I have very specific requirement. I have display checkbox in a list. > When every user clicks it should check and reclicked it should deselect. For > this I have taken Symbol 11 as Font and I am trying 0x00 for unselected > check box and 0x01 for selected checkbox, but I am getting different symbols > instead of checkboxes. So can any help me to place checkboxes into a list. > > Thanks in advance, > Rangababu TNV. > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
PalmDebugger over USB with Handspring Visor
I'm trying to run the PalmDebugger and connect to a Handspring visor with the USB cradle. Whenever I select the USB options from the Connection menu, the debugger window displays the message: error code: 040E over and over again. >From the header files, I believe this error is "slkErrSocketNotOpen". I'm guessing it's just a setting, but I can't seem to figure it out. I tried this on a Windows XP machine and a Windows 2000 machine. Does anyone know to get around this problem? Thanks, Craig -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
LIST Object and Setting font
I have my own callback for a list control on a form. (by calling LstSetDrawFunction). Does anyone know the API to call in order to set the font for the List control? I've tried FntSetFont - but it seems that the list control doesn't use the current font. I know that a table uses TblSetItemFont - (I believe) in order to set the font. Any ideas on the List control? thanks - bill -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re:sndstreamcreate usage???
>My application is too big to post, but the essentials >are these: >The sound stream is opened with: >Err error = SndStreamCreate(&soundStream, > sndInput, > 11025, //NominalSamplesPerSecond > sndInt16Little, > sndMono, > soundInCallback, > (void*)&Ibufptrs, > 2048, //RequestedBlockSize, > 0); //..0 = callback is >NOT ARM.. > >where the call back is: > >Err soundInCallback(void *userData, > SndStreamRef stream, > void *buffer, > UInt32 frameCount) >{ > Int16 *p; > p = ((BufPtrs*)userData)->bufCurrent; > if(p) > { >MemMove(p,buffer,RequestedBlockSize*sizeof(Int16)); > p += RequestedBlockSize; > if(p >= ((BufPtrs*)userData)->>bufPastEnd) > p = ((BufPtrs*)userData)->>bufOrigin; > ((BufPtrs*)userData)->bufCurrent = p; > > >In this way, the callback does minimal processing, >and leaves all the >heavy lifting to the event handler. > > > hi, could u plz tell me abt the initialisation of the buffers i.e. typedef struct { Int16 *bufOrigin; Int16 *bufPastEnd; Int16 *bufCurrent; } BufPtrs; ..i'm getting an error for Memmove func. saying tht memmove to null, as i'm using the function without initialising the first parameter i.e. the destination buffer. thanx, VS Yahoo! India Mobile: Download the latest polyphonic ringtones. Go to http://in.mobile.yahoo.com -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Transferring Resources from Mac to Windows
Sorry to keep dragging out this thread, but I tried your suggestion and it still isn't working. I did discover something else though; when I add the rsrc file (the zero byte one) to my project, I get the message "At least one file could not be added to the selected target(s)." My project has two targets: an old one, which uses the Macintosh 68k linker, and a new one, which uses the PalmOS 68k linker. The old target (which I no longer active) is the same as the one that I used on the Mac machine, and I can successfully add the resource to this target. But for some reason, I can't add the resource file to the new target. I checked the actual files and none of them are read only - in fact I can edit them in Constructor. If anyone can figure this one out, it will make my day! Thanks again, Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ben Combee Sent: February 4, 2004 1:15 PM To: Palm Developer Forum Subject: RE: Transferring Resources from Mac to Windows Add the zero byte files to your project, not the files in resource.frk. The linker knows about those folders and will do the right thing. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
trusted root certificates on Palm OS 5
How do you install trusted root certificates to a Palm OS 5 device/simulator certificate store? Thanks, - Stella -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: making trial Palm Apps.
Tech @ GotoITS wrote: Hello, I have a small applet compiled using prc-tools & running on PalmOS 4.0 I need to make a trialware version, but i'm not sure the best method to use to incorporate this? --John CTO/GotoITS Well, one thing I'd suggest not to do is make it time-based (as trial-ware apps commonly do). There are too many problems associated with time-based solutions, either the user resetting their clock, performing a hard reset, or the programmer installing an orphan (but hotsync'ed) db to counteract this, blah blah. Simply turn off a feature that makes your app valuable (but that doesn't interrupt the ability of people to use the app and figure out if it's worth $$ or not.) For a game, this would be removing the ability to save high scores, removing network play, removing bonus levels, etc, etc. For a media-creation tool, removing the ability to permanently save your creation would work fine, or removing the ability to save in any format other than your proprietary one. It really depends on what your app does. Rather than create separate trial/full versions of the app, I also chose to implement a registration key method. The user receives a registration key when they buy the product, and then they can enter it on an input screen in the app. If the reg-key is valid, the program unlocks the closed features and thereafter functions normally. Just use your imagination and have fun! -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
FrmDispatchEvent with POL::CForm
I'd like to dispatch an event during same as a call-back from a ButtonCommand event procedure (OnCOMMButton), which should be capture by another function (OnUpdateEvent): Here is my code : Form.h // Event map BEGIN_EVENT_MAP(CForm) EVENT_MAP_ENTRY(frmOpenEvent, OnOpen) EVENT_MAP_COMMAND_ENTRY(GenericCOMMButton, OnCOMMButton) EVENT_MAP_ENTRY(frmUpdateEvent,OnUpdate) END_EVENT_MAP() Form.cpp // Clear Text button handler Boolean CGenericCommandForm::OnCOMMButton(EventPtr pEvent, Boolean& bHandled) { SendString(m_fldOutgoingText.GetTextPtr(),true,true,true); return true; } Boolean CGenericCommandForm::OnUpdate(EventType* pEvent, Boolean& bHandled) { arrChoices.Insert(0,"Tx: Sent"); m_lstTrace.DrawList(); bHandled = false; return true; } / Inside SendString : event.eType = frmUpdateEvent; FrmDispatchEvent(&event); It didn't work. Is there another way to implement a dispatch event from CForm class? I thought that is protected. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: MemHandleFree , MemHandleUnLock
R Moon wrote: What is correct when I use very much , data types Char What's the diference in that 2 thanks Hi, MemHandleFree does make sure that the memory get's freed (so that it will be available again). MemHandleUnlock removes the lock on a handle. The lock itself is created with MemHandleLock. This does not free any memory, locking a handle is only that you can edit the content without the system moving your memory block around in Dynamic Ram. Hope that helps, Jan -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
MemHandleFree , MemHandleUnLock
What is correct when I use very much , data types Char What's the diference in that 2 thanks -- -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Porting a large C++ program
> Hi > > I'm looking into porting a large C++ library to the PalmOS (v3.5 and > higher). The library is certain to become bigger than 64K. Exceptions and > 1) create a GLib shared library. > > 2) create a mulit-segment application. > Your app will be multi-segment, but that's not a big issue since the compilers doing all the work. You've just got to learn a small set of things about managing muti-segment sets of source. As far as the library goes the approach I used was to break the library up into logical modules and implement each module as a static library. You don't specify whether you need this library to be shared or not, but then the same thing is true - split it into managable modules. I understand that there are ways to build multi- -segment shared libraries, but I would have thought that things like debugging would become more difficult. Chris Tutty This message was sent using InSPire Net Webmail. http://www.inspire.net.nz -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
making trial Palm Apps.
Hello, I have a small applet compiled using prc-tools & running on PalmOS 4.0 I need to make a trialware version, but i'm not sure the best method to use to incorporate this? --John CTO/GotoITS -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Wait Window??
I have a function that I use to display "Please Wait" bitmaps when I am retrieving large lists from my database. I like this function because I have a good amount of control over when it gets displayed and erased, and I don't need any user input. The problem I have is that when an alert displays over top of it I get an emulator message "Windows can't be under forms because they can't be redrawn". I understand what the message is telling me and why I am getting it. So is there an "accepted" way to display the type of wait dialog that I am displaying? The function I use is as follows: void PopUpWindowV20(int bmp, int toggle,int left,int top,int width,int height) { RectangleType rect; Worderr; Err error; WinHandle formWin; static Handle resH; static BitmapPtrresP; static WinHandlewin; if(toggle == ON){ RctSetRectangle(&rect,left,top,width,height); resH = DmGetResource( bitmapRsc, bmp); ErrFatalDisplayIf( !resH, "Missing bitmap" ); resP = (BitmapPtr)MemHandleLock(resH); win=WinCreateWindow(&rect,dialogFrame,true,true,&err); if(!err){ //WinEnableWindow(win); WinSetActiveWindow(win); WinSetDrawWindow(win); WinDrawWindowFrame(); WinDrawBitmap (resP, 0,0); } } if(toggle == OFF){ WinDeleteWindow(win,true); error=MemHandleUnlock(resH); //if(error) FrmCustomAlert(CustomAlert,"Unlock problem in PopUpWindow.",NULL,NULL); formWin=FrmGetWindowHandle(FrmGetActiveForm()); //WinEnableWindow(formWin); WinSetActiveWindow(formWin); FrmUpdateForm(FrmGetActiveFormID(),frmRedrawUpdateCode); } } Thanks, Phil Lachmann -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: a e-mail from Palm OS Developer Programs Team
The best help i can give you is under no circumstances to post your password like you just did !!! if i were you i would deactivate this registration immediately and setup a new one. if you want to post here, i think we all understand if you just say, "I use my mailbox and password ,but I don't log in..." "Miken" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I use my mailbox and 37677766(my password) ,but I don't log in > http://spp.palmos.com/iws/logon.jsp > I go to http://spp.palmos.com/iws/registration/lostPassword.jsp,and fill in > my mailbox.After I hit "Send",the following information appear: > The email address you specified does not exist in the database. Remember, > the email address that you specify must be the principal contact. > > Please help me,and thanks. > > > > - Original Message - > From: "Palm OS Developer Program" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, February 03, 2004 3:05 AM > Subject: Welcome to the Palm OS Developer Program > > > Dear Palm OS Developer: > > Welcome to the Palm OS Developer Program; the largest community of Palm OS > developers in the world. As a member of this program you will be provided > with the necessary resources to create great Palm OS applications. As a > Basic member, you have access to the following exciting benefits: > > ¡¤ ROM images > ¡¤ SDK's and select Source Code > ¡¤ The latest development tools & Technical documentation > ¡¤ Get business and administrative questions answered in the Information > Station: http://www.palmos.com/information > ¡¤ Access fundamental information from the Online Knowledge Base: > http://kb.palmsource.com > ¡¤ Access to fee based Technical Incident Support > > To access the ROM images you will need to do the following: > 1. Please log into the Resource Pavilion at http://spp.palmos.com/ with your > user name (email address) and password. > 2. Locate the link labeled "Apply for Development Seeding Programs" under > the "Technical Resources" column and click on this link. > 3. Please agree to the clickwrap license agreement or download the Prototype > License and Confidentiality Agreement and follow the guidelines for > completing and you will gain access to ROM images and other Development > Resources. > > Please note that device-specific ROMs will need to be acquired by the > specific licensees' developer program. A listing of these programs can be > found at http://www.palmos.com/dev/support/licensee/ > > Upon joining Palm OS Developer Program, you received a temporary password, > which will now become your permanent password to access the Palm Resource > Pavilion. Log in to the Resource Pavilion by going to > http://www.palmos.com/dev/programs/pdp/ > > Password: 37677766 > > Expand your development skills by enrolling in one of our Developer Training > courses. We offer online and instructor led classes. To learn more visit: > http://www.palmos.com/training > > Again, we welcome you to the Palm OS Developer Program. We are excited to > have you in our developer community. We look forward to developing a > long-term relationship with you. > > Palm OS Developer Programs Team > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Transferring Resources from Mac to Windows
Add the zero byte files to your project, not the files in resource.frk. The linker knows about those folders and will do the right thing. -Original Message- From: Ken Dwyer Date: 2/4/04 10:24 am To: Palm Developer Forum Subj: RE: Transferring Resources from Mac to Windows Thanks Ben, and to the others who replied directly to me. I followed the instructions in the FAQ and used DropRSR to flatten the files. This seemed to work OK, as I was able to open my rsrc files using Constructor in Windows. I now have two zero byte files named "PDAGraph.rsrc" and "Starter.rsrc" in my project's "Rsc" folder, along with the header files. The flattened files reside in a subdirectory called "Resource.frk", and have the exact same file names. Unfortunately, I still have a problem! I added the files in "Resource.frk" to my project, but now when I run the project (in both emulator and simulator), I get the error: "MemoryMgr.c, Line:3564, NULL handle". The debugger traces it back to a FrmInitForm() function. I examined the output PRC file using PRCExplorer, and there are no forms or any other resources in there. I am really stumped! What did I do wrong? I appreciate the help. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ben Combee Sent: February 3, 2004 10:47 PM To: Palm Developer Forum Subject: Re: Transferring Resources from Mac to Windows Use the DropRsr tool that comes with CW for Palm OS V8 on the Mac to convert the resource to a flattened file. See http://www.metrowerks.com/pdf/PalmFAQ.pdf for more details. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Link Error???
Don't use "activate C++" like that. It really means "compile .c files as C++". If your file has a .cpp extension, the compiler will always build it as C++. -Original Message- From: Marcelo Henrique Date: 2/4/04 10:54 am To: Palm Developer Forum Subj: Link Error??? Hello, I have a friend that can't access de PD forum, so I'm writting by him. He's proggraming on CW Lite and ever get this erro when he mark "Activate C++ compile." option: "Link Error : ftp.c: 'NetUTCPOpen(char*,char*,short)' referenced from 'CmdFTP(int,char**)'is undefined." If this option doens't check it works fine. But, he needs to compile using C++ cause he'll use some classes in the new features Thanks a lot. Marcelo Henrique _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Link Error???
Hello, I have a friend that can't access de PD forum, so I'm writting by him. He's proggraming on CW Lite and ever get this erro when he mark "Activate C++ compile." option: "Link Error : ftp.c: 'NetUTCPOpen(char*,char*,short)' referenced from 'CmdFTP(int,char**)'is undefined." If this option doens't check it works fine. But, he needs to compile using C++ cause he'll use some classes in the new features Thanks a lot. Marcelo Henrique _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: Transferring Resources from Mac to Windows
Thanks Ben, and to the others who replied directly to me. I followed the instructions in the FAQ and used DropRSR to flatten the files. This seemed to work OK, as I was able to open my rsrc files using Constructor in Windows. I now have two zero byte files named "PDAGraph.rsrc" and "Starter.rsrc" in my project's "Rsc" folder, along with the header files. The flattened files reside in a subdirectory called "Resource.frk", and have the exact same file names. Unfortunately, I still have a problem! I added the files in "Resource.frk" to my project, but now when I run the project (in both emulator and simulator), I get the error: "MemoryMgr.c, Line:3564, NULL handle". The debugger traces it back to a FrmInitForm() function. I examined the output PRC file using PRCExplorer, and there are no forms or any other resources in there. I am really stumped! What did I do wrong? I appreciate the help. Ken -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ben Combee Sent: February 3, 2004 10:47 PM To: Palm Developer Forum Subject: Re: Transferring Resources from Mac to Windows Use the DropRsr tool that comes with CW for Palm OS V8 on the Mac to convert the resource to a flattened file. See http://www.metrowerks.com/pdf/PalmFAQ.pdf for more details. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: about stack size
I create my project using PNO option,I have found a way to change 68K's stack size,please see the attachment. I can set the "Minimum Stack Size",and Can I set the max stack size?If not,what is the max stack size? But I don't set the stack size on PNO part,I don't find any option.Please help me,and thanks. There is no stack size setting for PNOs. If you want your own stack, you need to allocate memory for it and change the R13 register using inline assembly to point to the top of this stack, being sure to restore the original R13 value before returning to the OS. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
DmOpenDatabase open count
Does DmOpenDatabase keep an open count? LionScribe begin 666 Arye Schreiber.vcf M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..E-C:')E:6)E[EMAIL PROTECTED]http://www.palmos.com/dev/support/forums/
RE: Auto Load my app After a Soft Reset
It works. However, you may not be able to do this directly from the app you need to run. It may require you to create a second app that sets a timer to run the real application. DAMHIK. -Original Message- From: Alan Ingleby [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 03, 2004 6:33 PM To: Palm Developer Forum Subject: Re: Auto Load my app After a Soft Reset Why not listen for the sysAppLaunchCmdSystemReset launch notification, then enqueue an event to launch your app? Never tried this myself, but that's the first thing I'd try if I needed to. Alan "Régis Daniel de Oliveira" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Hy all! > > Does anybody can explain me how can i load my app after a soft reset? > I read that i need to use some alarm functions, but i dont know how to make > them working. > > Any code will be gratefull. > > Thanks!!! > > > Régis Daniel de Oliveira > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
How to display list of available network connections?
Hi all, What I want to do is allow user to switch between network connections. Network connection should be taken from preferences/network and should be displayed in list. I played around with NetLibConfigList and NetLibIFSettingsGet but unsuccess. The staff given by NetLibConfigList containt some internal strings with the "NetPanel" string at the end ... nothing more. I created programatically the network connection too. NetLibConfigList showed created connection but in the preferences/network was not shown. Any ideas? Thanks. === Visicom s.r.o. Viedenska cesta 5, 851 01 Bratislava, Slovakia phone: +421 (2) 57 526 111 fax: +421 (2) 57 526 112 e-mail: [EMAIL PROTECTED] http://www.visicom.sk === -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Porting a large C++ program
Hi I'm looking into porting a large C++ library to the PalmOS (v3.5 and higher). The library is certain to become bigger than 64K. Exceptions and RTTI are not used, so that should not be a problem. The library uses global const data only. Virtual methods are used too. The library will then be linked to a PalmOS specific UI level program. This will probably be written in the c++-as-a-better-c language. I intend to use the PRC-tools. >From Googling the web and then reading the found articles, it appears that I have now two options: 1) create a GLib shared library. 2) create a mulit-segment application. It's clear to me what I should to to get both cases to work. What I cannot figure out is what the best approach of the two is. Both methods appear to have their problems, but I find very hard to figure out whether one of these problems is a showstopper for what I want. So if you people could shed some light on this or point me to a website that has the state of the art and is unknown to Google, that would be very kind. -- Sander van der Wal -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: Bug in Sound Manager
Chris wrote: >> On Tue, 3 Feb 2004 21:03:41 + (GMT), >> >i tried out u'r app on tungsten T3 simulator...its >> >working fine.it did not hang at all!! >> >I think the problem is with T2 implementation. >> >> Thank you for trying. But I am really interested in having it tested >> on a real device. >> >Ran on a T3 for 40 mins without failing, on a T2 >for about 12 mins before locking up, on a T1 for >about 2 mins before locking up. Thank you! So, it is a fault in the T1 and the T2 after all! I wonder if there is any use is contacting Palm? I just went through a 6-month ordeal with Dell and the Axim X5 for a similar issue. They eventually released a patch to the Axim sound drivers, but only after I had recruited an army of complainers and found every other vendor of sound-input software for the Pocket PC and got them to confirm my complaint to Dell. I guess it would be nice if someone else could independently write some sound input software and verify that these Palm devices have a small but definite probability of hanging on SndStreamDelete() when the sound stream is "input". Robert Scott, Ypsilanti, MI (reply through this forum, not by e-mailing me directly) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: about stack size
You can change it here => app { "AppName" crea stack=0x1000 } at your app def file. Manoel Teixeira On Wed, 04 Feb 2004 06:45:26 -0400, "Marcelo Henrique" <[EMAIL PROTECTED]> escreveu: > De: "Marcelo Henrique" <[EMAIL PROTECTED]> > Data: Wed, 04 Feb 2004 06:45:26 -0400 > Para: "Palm Developer Forum" <[EMAIL PROTECTED]> > Assunto: Re: about stack size > > Mike, > > Why do you want change the max size stack? > > > > Marcelo Henrique > > > >From: "Miken" <[EMAIL PROTECTED]> > >Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> > >To: "Palm Developer Forum" <[EMAIL PROTECTED]> > >Subject: Re: about stack size > >Date: Wed, 4 Feb 2004 16:18:20 +0800 > > > >Thanks for Ben's helps. > >I download http://www.metrowerks.com/pdf/PalmFAQ.pdf,and read it.I find the > >following information: > > You can change the default stack size if you're using a recent > >version > >of Constructor for Palm OS. > > > >I don't use Constructor ,and I use PilRC designer. > > > > > > > >-- > >For information on using the Palm Developer Forums, or to unsubscribe, > >please see http://www.palmos.com/dev/support/forums/ > > _ > MSN Messenger: converse com os seus amigos online. > http://messenger.msn.com.br > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see > http://www.palmos.com/dev/support/forums/ > > > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: about stack size
Mike, Why do you want change the max size stack? Marcelo Henrique From: "Miken" <[EMAIL PROTECTED]> Reply-To: "Palm Developer Forum" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Subject: Re: about stack size Date: Wed, 4 Feb 2004 16:18:20 +0800 Thanks for Ben's helps. I download http://www.metrowerks.com/pdf/PalmFAQ.pdf,and read it.I find the following information: You can change the default stack size if you're using a recent version of Constructor for Palm OS. I don't use Constructor ,and I use PilRC designer. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ _ MSN Messenger: converse com os seus amigos online. http://messenger.msn.com.br -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
RE: about VFSFileWrite and append
I know, thank you... I sent the link as an answer to your question and not as a way to repost the question... But thanks anyway & regards, Caspar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of palmDev Sent: Tuesday, February 03, 2004 8:48 PM To: Palm Developer Forum Subject: Re: about VFSFileWrite and append what you need to do is seek to the end of the file then start writing. I think the func is VFSFileSeek() regards - Original Message - From: "Caspar Heiden, vd" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Tuesday, February 03, 2004 4:37 AM Subject: RE: about VFSFileWrite and append > http://www.escribe.com/computing/pcpqa/index.html?by=OneThread&t=VFS%20- > %20what%27s%20going%20on%3F%3F%3F > > I know, the search engine on escribe isn't exactly great, but this one > shouldn't be too hard to find... > > good luck, > > Caspar > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Miken > Sent: Tuesday, February 03, 2004 3:05 AM > To: Palm Developer Forum > Subject: about VFSFileWrite and append > > I want to add some data to the end of the file.I call VFSFileOpen with > vfsModeWrite|vfsModeCreate,then I call VFSFileWrite.I find it remove all > existing data before writing. > Why? > > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, > please see http://www.palmos.com/dev/support/forums/ > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: about stack size
Thanks for Ben's helps. I download http://www.metrowerks.com/pdf/PalmFAQ.pdf,and read it.I find the following information: You can change the default stack size if you're using a recent version of Constructor for Palm OS. I don't use Constructor ,and I use PilRC designer. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
Re: about stack size
At 12:52 AM 2/4/2004, you wrote: If I can change its size,how do I do? Google for "Palm OS change stack size" and look at some of the search results. -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/