> gcc calc_client.c -Wall -Wextra -o calc_client.exe
> gcc calc_server.c -Wall -Wextra -o calc_server c:\windows\system32\kernel132.dll
Testing the application set requires opening two consoles and running the server application on one of them and the client on the other.
> calc_server.exe
> calc_client.exe
Compilation and an example run is as follows.
$ gcc -Wall -Wextra socketpair.c -o socketpair
$ ./socketpair
Using two terminals, you can compile and test the operation of both programs:
Terminal 1:
> gcc -std=c99 -Wall -Wextra hellosharedmemory.c -o hello
> hello
Terminal 2:
> accesschk -t section -o \Sessions\1\BaseNamedObjects\HelloWorld
> gcc -std=c99 -Wall -Wextra dumpsection.c -o dumpsection
> dumpsection Local\HelloWorld
> type Local_HelloWorld.bin
Compilation and run are shown below.
> g++ msgtest.cc -Wall -Wextra -o msgtest
> msgtest
Generally, the main use of messages is communication between GUI windows.