I dunno if this answers your exact question, but I do have two hacks out
there that were developed using Codewarrior and have source code available
(one is freeware the other is GPLed).

AlarmRepeater is more well documented (in terms of the Codewarrior parts)
and has both Mac and PC versions (I think), but it's a bit old (I think it
was written under CW R4)

FlipHack is still decently documented, but only has a Mac version available
(it shouldn't be hard to convert to a PC version, since the formats are
very similar).


..both of my solutions use one project file per code resource.  At one
point in time in the past I tried to use one project and multiple targets,
but I couldn't figure out how to link one target of a project into another
target of the same project (doesn't mean it's not possible, I just couldn't
figure it out at the time).  Also, in both solutions I don't use the trap
id in the linker panel--I just have a TRAP resource in a resource file.

---

--On Tue, Feb 8, 2000 8:45 AM -0800 Dan Munk <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> I have been trying to write some simple Hackmaster hacks with Codewarrior
> R5.2 on Windows NT.
> 
> I have a target that is a Palm OS resource with the linker settings on.
> The entry point is the trap routine with the resource type as CODE and
> the id as 1000.  The appropriate trap id is set on the Linker panel
> (0xA1BF) to handle menu events.  This works great.
> 
> Then I added a resource file created in constructor with an tFRM resource
> with id 3000 and the icon showed up in Hackmaster and the about dialog
> worked fine.
> 
> I want a control panel form so I added a tFRM resource with an id of 2000
> to the same resource file in constructor and added a new target of type
> code resource to the project and created an association between it
> and the original target.  The entry point of the new target is the form
> handler the resource type is CODE and the id is 2000.  The linke is turned
> off.
> 
> It didn't work.  I am pretty new to Palm and especially Codewarrior.  Is
> this approach at all valid?
> 
> I checked out DemoHack and it works great, but the way the project must be
> setup in Codewarrior seems extremely clumsy.  Is there a cleaner/better
> way to add the control panel form and multiple patch routines?  Should I
> switch back to GCC for hacks?
> 
> Thanks,
> Dan Munk
> [EMAIL PROTECTED]
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palm.com/devzone/mailinglists.html





-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to