Re: Common Class declaration for 2 separate .GOC files

Edward Di Geronimo Jr. (edwdig@bergen.org)
Fri, 31 Jan 1997 10:21:28 -0500 (EST)

> You possibly remember that I had two subdivide my large program (.goc)
> into multiple pieces. After a lot of experimenting, I learned that it is
> (almost?) impossible to separate UI-objects into different goc files. Now,

You can't have a link that goes between files. To attach the UI, you
MSG_GEN_ADD_CHILD in MSG_GEN_PROCESS_OPEN_APPLICATION.

> - I did not yet make a new mkmf after introducing the goh file

For a goh file you don't have to, but if you change only the .goh file
but not a .goc file, pmake won't know it has to recompile it, so you
should mkmf and pmake depend again.

> - I still have the '@classdecl HD3DialogClass;' in the two .goc files

That's the problem. Only use @classdecl once.

------------------------------------------------------------------------
| I've always been afraid to die, but I think I'm more afraid to live. |
| -Billy Corgan, Smashing Pumpkins, The Aeroplane Flys High |
------------------------------------------------------------------------
| Edward Di Geronimo Jr. edwdig@bergen.org |
------------------------------------------------------------------------