The complete source code for hello.c is as follows:
#include <dce/dce_svc.h>
#include "dcehelmsg.h"
int
main(
int argc,
char *argv[])
{
dce_printf(hello_msg);
}
To build the application, you simply
· Process the hel.sams file with the sams command.
· Build and link hello from the following modules:
- dcehelmsg.c
- hello.c
When executed, the program will print the following:
Hello World
This is the text of the hello_msg message as defined in the hel.sams file.