The Standalone Application

This standalone application, which consists of a call to a single function, forms the basis of our distributed application. The function, HelloProc, is defined in its own source file so that it can be compiled and linked with either a standalone application or a distributed application.

/* file hellop.c */
#include <stdio.h>
#include <windows.h>

void HelloProc(char * pszString)
    printf("%s\n", pszString);
/* file: hello.c, a stand-alone application */
#include "hellop.c"

void main(void)
    char * pszString = "Hello, World";