Re: Static functions

2003-11-24 Thread Gearoid Murphy
Nope, if an application is large enough the handlers for different forms could be in different source files and, in this case, could not be declared as static as they generally must be visible to the AppHandleEvent function. From: rguevara [EMAIL PROTECTED] Reply-To: Palm Developer Forum

Re: Source Code for LFTP

2003-10-24 Thread Gearoid Murphy
http://lthaler.free.fr/ and see The sources... section. From: RĂ©gis Daniel de Oliveira [EMAIL PROTECTED] Reply-To: Palm Developer Forum [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Subject: Source Code for LFTP Date: Fri, 24 Oct 2003 11:56:40 -0200 Does anybody know where can i

Re: Help with sockets! plz!

2003-10-15 Thread Gearoid Murphy
The problem may be that the unit is running out of resources because the created sockets are 'lingering' after they are shutdown. I had the very same issue before that the ftp client could not create or connect sockets after a certain number of data connections had been made. The following

Re: NetLibOpen returns netErrPPPTimeout

2003-10-13 Thread Gearoid Murphy
You can't establish a PPP connection via serial cable automatically. The PC must be set up to accept an incoming connection via the serial port. If you are running Windows 2000 or NT then take a look at the following link http://www.users.globalnet.co.uk/~echobase/network/win2k/#linkdirect It

Re: NetLibOpen returns netErrPPPTimeout

2003-10-13 Thread Gearoid Murphy
Unless you're running Linux or Unix, of course. Pardon my Windowcentricity :) For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ _ Add photos to your

Re: NetLibOpen returns netErrPPPTimeout

2003-10-09 Thread Gearoid Murphy
Your device is not able to establish a network connection for some reason. The reason the emulator works without a problem is that it is using the hosts tcp/ip stack and therefore is already on a network (most likely). Therefore NetLibOpen will succeed automatically. Are you sure you have set

Re: CheckBox in List.

2003-09-12 Thread Gearoid Murphy
I had exactly this requirement for a project but I approached it differently. I wrote two functions, the first to draw an unchecked checkbox and the second to draw a checked checkbox (functions used WinDrawLine). Each of the records to be displayed on the list began with a Boolean value to

Re: list of network services

2003-09-08 Thread Gearoid Murphy
Take a look at http://www.whizoo.com/index.php or www.petereaston.com if you're willing to spend a few bob. I've asked a similar question quite a few times (i.e. how to programmatically change the current network service) and never really got an answer. Ger From: Jim [EMAIL PROTECTED]

Saving Bitmap as resource programmatically

2003-09-04 Thread Gearoid Murphy
I am creating a test bitmap (160x120 16 bit depth, BitmapV2) and trying to save it as a bitmapRsc resource in a database. I create the bitmap, associate it with a created offscreen window, draw some simple lines. After its created BmpGetSizes results in the expected header size of 24 bytes and

Re: Where can i find a good FTP source code for Palm?

2003-08-18 Thread Gearoid Murphy
Try 'Palm OS Network Programming' by Greg Winton or the source code to the LFtp application at http://lthaler.free.fr/. Regards, Ger From: Alexandre Barreto [EMAIL PROTECTED] Reply-To: Palm Developer Forum [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Subject: Where can i find a

Re: newbie question: how to read a string from a MemHandle?

2003-08-14 Thread Gearoid Murphy
correction, should be err = MemHandleResize(h, MemHandleSize(h)+(len+1)); From: Gearoid Murphy [EMAIL PROTECTED] Reply-To: Palm Developer Forum [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Subject: Re: newbie question: how to read a string from a MemHandle? Date: Thu, 07 Aug 2003

Re: newbie question: how to read a string from a MemHandle?

2003-08-14 Thread Gearoid Murphy
for your reply. However, when i try to access strP my programm crashes telling me it read memory from the memory manager data structures. Any idea what i did wrong? i locked the handle to write it, unlocked it, locked it again by strP = (Char *)MemHandleLock(h); accessed strP and it crashed. Gearoid

Re: newbie question: how to read a string from a MemHandle?

2003-08-11 Thread Gearoid Murphy
Char *strP; strP = (Char *)MemHandleLock(h); // h is a MemHandle if (strP) { // Do stuff with strP } // Make sure to unlock MemHandle MemHandleUnlock(h); From: blaman [EMAIL PROTECTED] Reply-To: Palm Developer Forum [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Subject: newbie

Re: FTP a PDB inside a app.

2003-08-01 Thread Gearoid Murphy
I think its a good idea to look at Greg Winton's book. It gave me a great introduction to how the net library works (although I still have a lot to learn). I would suggest that you take a look at the LFtp application at http://lthaler.free.fr/. You can download both the application and the

NetLib System use only functions

2003-07-15 Thread Gearoid Murphy
I would very much like to devise my own means by which a user could view a list of the available network configurations and select the one to be made active (I don't want to go to the Network preferences panel). The functions NetLibConfigList and NetLibConfigMakeActive look perfect to achieve

Re: How to use a non editable text field to display text during runtime?

2003-04-02 Thread Gearoid Murphy
You can untick the fields 'Editable' attribute in Constructor and programmatically set the fields text using FldSetText, FldSetTextHandle or FldSetTextPtr (FldSetTextPtr only to be used with non-editable fields). Regards, Ger From: Jeremy Roberson [EMAIL PROTECTED] Reply-To: Palm Developer

Re: Handling the contrast button on Palm V and Palm IIIx

2003-03-27 Thread Gearoid Murphy
What about doing something like the following? In your application, re-map the contrast button so that it launches some application (e.g. Calc) using PrefSetPreference. Create a global variable that delermines whether or not you allow an exit from your application: Boolean bAllowAppExit;

Re: Handling the contrast button on Palm V and Palm IIIx

2003-03-27 Thread Gearoid Murphy
Come to think of it I'm not sure if you're able to re-map the contrast button. From: Gearoid Murphy [EMAIL PROTECTED] Reply-To: Palm Developer Forum [EMAIL PROTECTED] To: Palm Developer Forum [EMAIL PROTECTED] Subject: Re: Handling the contrast button on Palm V and Palm IIIx Date: Thu, 27

Re: Pls Help! - to to prevent accidental deletion of Palm Application?

2003-03-21 Thread Gearoid Murphy
Palm applications such as Calc, Memopad etc are installed on the ROM and therefore can only be deleted by reconfiguring the ROM and downloading it to the unit. Why don't you install your application in flash memory using something like FlashPro by Handera. That way your application won't show

Re: symbol sdk

2003-03-04 Thread Gearoid Murphy
The Symbol 1700/1800 SDK (3.10 is the latest, I think) seems to include the types that were discontinued in the Palm OS SDK from version 3.5 onwards (e.g. DWord, Word, SWord etc). Is it possible to include the Symbol SDK in a project that uses the latest Palm OS SDK? Do you use the

Urgent: HotSync and Samba connection to UNIX machine

2002-09-19 Thread Gearoid Murphy
Hi, Is it possible to have the HotSync Manager running on a Windows machine and sending and retrieving files via a Samba connection to and from a UNIX machine during synchronisation? Can this kind of network drive be treated as any other drive? The HotSync manager would only be installed on

bus error in Emulator when adding Connection profile

2002-05-17 Thread Gearoid Murphy
Can anyone tell me why the following code would cause a bus error in POSE when the added connection is viewed in the Connection Preferences Panel. The AddMyProfile function is taken directly from the documentation on CncAddProfile in the kb. // found in documentation for CncAddProfile void

RE: Parameter block with SysAppLaunch

2002-05-10 Thread Gearoid Murphy
Thanks lads, I was looking at old documentation. Regards, Ger ps: I think the bus error in the Emulator may be a problem with the Emulator adding connections in this way. The reason is that I completely transcribed the AddMyProfile example in the documentation on CncAddProfile. Even when this

Network Preferences

2002-04-30 Thread Gearoid Murphy
I know I've asked this before and the fact that I haven't got a definitive answer should tell me to let it lie but here goes anyway. Is there any way to programmatically change Network preferences? I'm thinking specifically of the connection that a Windows RAS network connection uses. Does

-Current- connection in Network Preferences Panel

2002-04-18 Thread Gearoid Murphy
In the Network Preferences Panel you can set the Connection to -Current-. I'm not sure how the current connection is determined. Is it possible to set the current connection programmatically beforehand so that when a Network HotSync is done it will use this connection? Regards, Ger

Retain user details after hard reset.

2002-04-05 Thread Gearoid Murphy
I know this is a long shot but is there anyway to force a Palm unit to retain its user details when the battery goes flat or after a hard reset. Is there a database that can be flashed that will allow the unit to retain the userID etc. The reason I am asking is that we are doing a network

Accessing network preferences

2002-03-31 Thread Gearoid Murphy
I've noticed that some applications (ScoutSync for example) have access to the Network preferences panal so that the user can configure network settings from the application. The 'Done' button returns the user to the main application. I want to have access to this in my application but the

Calling a Windows RAS connection programmatically

2002-03-26 Thread Gearoid Murphy
Hello everyone, On the Network Preferences panel you can configure a Windows RAS type connection and specify a particular connection method and phone number etc. You can then press the connect button to make the connection to the host. Once this RAS connection has been configured is it

Accessing HotSync settings

2002-02-05 Thread Gearoid Murphy
I have asked this question before in a round about way but haven't been able to solve the problem. Does anyone know where the HotSync settings are stored and if it is possible to access or modify them from another application? I have 2 remote connection configurations configured on the unit

Finding the current remote HotSync configuration

2002-01-29 Thread Gearoid Murphy
Hello everyone, My application launches HotSync programmatically after asking the user to choose between a remote or direct serial connection. if (commsMode==REMOTE_COMMS) { err=SysUIAppSwitch(cardNo, dbID, sysAppLaunchCmdSyncRequestRemote, 0); } else if (commsMode==LOCAL_COMMS) {

Pop-up lists close when alarm is triggered

2002-01-11 Thread Gearoid Murphy
Hello everyone, Here is just something I noticed. If you call another application within your application and then set an alarm, any pop-up lists in the called application will close when the alarm is triggered. This is really problematic when the alarm is called continuously until some

Switching backup bit for a database

2002-01-10 Thread Gearoid Murphy
Hello everyone, This is a simple problem. I have a checkbox that when ticked causes the backup bit for a database to be set and when unticked causes the backup bit to be unset. The problem is that I don't know the syntax for unsetting the backup bit: error = DmDatabaseInfo(0, dbID, NULL,

Launching application directly after reset

2002-01-07 Thread Gearoid Murphy
Hello everyone, My problem is very similar to Marta's. I would like to launch my application directly after a (soft) reset so that no key has to be pressed. Since SysUIAppLaunch cannot be used as a response to a SysAppLaunchCmdSystemReset launch code I have tried sending my application a launch

Notification manager

2001-12-23 Thread Gearoid Murphy
Does anyone know what version of CodeWarrior you need to make use of the Notification manager. I am using CodeWarrior Release 6 and NotifyMgr.h is not present. Is it possible to upgrade without buying a new development environment. Regards, Ger

Launching HotSync programmatically

2001-12-22 Thread Gearoid Murphy
Hi all, I am wondering whether it is possible to launch HotSync programmatically from an application I am developing. Ideally I would like to launch HotSync as a subroutine so that it returns to the same point in my application once it is finished. I haven't been able to find any code to do

fixed width fonts

2001-08-01 Thread Gearoid Murphy
I am using a lot of lists where each line in the list contains a number of fields eg. product quantity price. However Constructor does not seem to have any fixed width fonts making it very difficult to format the lines so that a particular field in each line always starts and ends at the same