Article # 253, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Sending messages from .asm when classes are in .goc
Q. Our partner has an application that has a .GOC and a .ASM file. She declares her classes and messages in the .GOC file, but wants to be able to send the messages from her .ASM file. Should she just define a .def file that has all the corresponding class and message definition and include that file in her assembly. A. Yes. If any of the messages take parameters or return values, she'll have to use the GOC syntax to bind them to registers. See any of the .goh files for examples of doing this. Also, make sure the assembly definition of the message uses a different name than the C definition. Otherwise glue will complain that the message is multiply defined. Adding the suffix "_ASM" is the standard thing to do in this case.