Re: [Cegcc-devel] Small example for rshd ?

2007-07-01 Thread Pedro Alves
Danny Backx wrote: - Error handling at the CreatePipe call. Read the comment, it would be better, in my opinion, to be able to send a string back to the rsh. Do you agree; and if so, shall I make changes in that direction ? I was going though the code, and since it was easy I ended up doin

Re: [Cegcc-devel] Small example for rshd ?

2007-07-01 Thread Pedro Alves
Danny Backx wrote: - Error handling in PipeLib. On my system, ActivateDevice returns with ERROR_DEVICE_IN_USE if all is well, or with ERROR_FILE_NOT_FOUND if the PipeDev.dll is not installed. (Respectively codes 2404 and 2.) I've committed the attached patch to handle this case. Cheers,

Re: [Cegcc-devel] C++ exceptions

2007-07-01 Thread Pedro Alves
Kevin O'Connor escreveu: > On Sun, Jul 01, 2007 at 08:12:33PM +0100, Pedro Alves wrote: >> Danny Backx wrote: >>> void Handle(struct _EXCEPTION_RECORD *ExceptionRecord, >>> void *EstablisherFrame, >>> struct _CONTEXT *ContextRecord, >>> struct _DISPATCHER_CONTEXT

Re: [Cegcc-devel] C++ exceptions

2007-07-01 Thread Kevin O'Connor
On Sun, Jul 01, 2007 at 08:12:33PM +0100, Pedro Alves wrote: > Danny Backx wrote: > > void Handle(struct _EXCEPTION_RECORD *ExceptionRecord, > > void *EstablisherFrame, > > struct _CONTEXT *ContextRecord, > > struct _DISPATCHER_CONTEXT *DispatcherContext) > > { >

Re: [Cegcc-devel] C++ exceptions

2007-07-01 Thread Pedro Alves
Danny Backx wrote: > On Sun, 2007-07-01 at 09:41 -0400, Kevin O'Connor wrote: >> On Fri, Jun 22, 2007 at 09:37:21PM +0200, Danny Backx wrote: >>> The null.C example however - when used with my exception handling code - >>> shows a dialog from my new exception handler, but never makes its way to >>>

Re: [Cegcc-devel] Small example for rshd ?

2007-07-01 Thread Pedro Alves
Danny Backx wrote: > I've attached a patch. > > Three pieces : > - be able to quit rshd without rebooting my PDA. Do you have another way > to do this? Just kill the process with synce-pkill, or if you launch it on the device in PocketCMD.exe or CMD.exe, just CTRL-C it (or press the red hand -

Re: [Cegcc-devel] Rshd - blanks in path names

2007-07-01 Thread Pedro Alves
Danny Backx wrote: Pedro, One of the todo's in your rshd.c source is to process blanks in path names. The attachment has a patch for this. Can I commit ? *** rshd.c-12007-07-01 12:00:36.0 +0200 --- rshd.c

[Cegcc-devel] Serial port (COM1) and fileio?

2007-07-01 Thread Eduard Heimann
Hi all, is there some way to do a call similar to fd = open("COM1:", O_RDONLY); to access the serial communications port driver? Setting baud rate? Maybe this is a newbie's question... however, i didn't find any hint till now. I remember from my good old CPM-days one had to fiddle a bit ins

Re: [Cegcc-devel] C++ exceptions

2007-07-01 Thread Danny Backx
On Sun, 2007-07-01 at 09:41 -0400, Kevin O'Connor wrote: > On Fri, Jun 22, 2007 at 09:37:21PM +0200, Danny Backx wrote: > > The null.C example however - when used with my exception handling code - > > shows a dialog from my new exception handler, but never makes its way to > > the C++ exception han

Re: [Cegcc-devel] C++ exceptions

2007-07-01 Thread Kevin O'Connor
On Fri, Jun 22, 2007 at 09:37:21PM +0200, Danny Backx wrote: > The null.C example however - when used with my exception handling code - > shows a dialog from my new exception handler, but never makes its way to > the C++ exception handler. Have you figured out a way to raise a c++ exception from t

[Cegcc-devel] Rshd - blanks in path names

2007-07-01 Thread Danny Backx
Pedro, One of the todo's in your rshd.c source is to process blanks in path names. The attachment has a patch for this. Can I commit ? Danny -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info *** rshd.c-1 2007-07-01 12:00:36.0 +0200 --- rshd.c 2007-07-01 12

Re: [Cegcc-devel] Small example for rshd ?

2007-07-01 Thread Danny Backx
Pedro, I've attached a patch. Three pieces : - be able to quit rshd without rebooting my PDA. Do you have another way to do this? - Error handling at the CreatePipe call. Read the comment, it would be better, in my opinion, to be able to send a string back to the rsh. Do you agree; and if s