Thank you so much!
That would be helpful.
fritz <www.mesedilla.com>
-----
+ Basta Ikaw Lord
----- Original Message -----
From: "Andres Ramirez" <[EMAIL PROTECTED]>
To: "Palm Developer Forum" <[EMAIL PROTECTED]>
Sent: Thursday, September 12, 2002 11:21 PM
Subject: Re:New Member
> Fritz Wrote:
> Hey folks!
>
> I'm a newbie in using PRC-tools for creating opensource software.
> I've looked around and found several tutorials. But none really delved
into
> the:
>
> 1) Simple Sample Hello World
> 2) Creating Makefiles
>
> I hope anyone can help me get started. So far the maker of Happy Days,
> Jaemok Jeong, was kind enough to share his source code on the internet. I
> can't seem to find other opensource projects.
>
> I hope to start simple projects first. Thanks.
>
> ------>
>
> well, u could start with this
>
> 1. put this in a file with the name 'hello.c'
> #include <PalmOS.h>
>
> // ---------------------------------------------------------------------
> // PilotMain is called by the startup code and implements a simple event
> // handling loop.
> // ---------------------------------------------------------------------
> UInt32 PilotMain( UInt16 cmd, void *cmdPBP, UInt16 launchFlags )
> {
> EventType event;
>
>
> if (cmd == sysAppLaunchCmdNormalLaunch) {
>
> // Display a string.
> WinDrawChars( "Hola , Newb !", 13, 55, 60 );
>
> // Main event loop:
> do {
> // Doze until an event arrives.
> EvtGetEvent( &event, evtWaitForever );
>
> // System gets first chance to handle the event.
> SysHandleEvent( &event );
>
> // Normally, we would do other event processing here.
>
> // Return from PilotMain when an appStopEvent is received.
> } while (event.eType != appStopEvent);
> }
> return;
> }
>
> 2. this is the Makefile
> PROGRAM=Hello
> SOURCES=hello.c
> CC=m68k-palmos-gcc
> OBJRES=m68k-palmos-obj-res
> PRC=$(PROGRAM).prc
> ICONTEXT='HelloWorld'
> BUILDPRC=build-prc
> APID=PCAI
>
> all: $(PRC)
>
> $(PRC): $(PROGRAM)
> $(BUILDPRC) $(PRC) $(APID) *.bin *.grc
>
> $(PROGRAM): $(SOURCES)
> $(CC) -o $(PROGRAM) $(SOURCES)
> $(OBJRES) $(PROGRAM)
>
>
> clean:
> rm *.grc Hello
>
> dist: all
> rm *.grc Hello
>
> 3. load the prc in the emulator, and finally Checking the Docs, ur next
step
> 4. u could fin what u r looking for in google 'Prc-Tools Tutorial', I
began
> that way
>
> Andres Ramirez
>
> --
> 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/