Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
The Standalone Application

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";



Community Additions

© 2015 Microsoft