Hi Fellows.

I got the RPC example code from MSDN. I am trying to compile and execute it using visual studio but it is giving me errors. But when i compile it using the makefile and nmake command on commandline it works fine.

I am creating the .h and _s.c and _c.c using the midl compiler and then i add these files in my server and client application but the both are giving me the error.

The client application error is
fatal error C1189: #error : You need a Windows 2000 or later to run this stub because it uses these features:

The Server application errors are
Hellos.obj : error LNK2001: unresolved external symbol _hello_ServerIfHandle
libcmt.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16
Debug/Server.exe : fatal error LNK1120: 2 unresolved externals