Now I have included ddraw.lib and dxguid.lib, but now I have one error:

--------------------Configuration: Direct Draw1 - Win32 Debug--------------------
Compiling...
DD1.CPP
Linking...
DD1.OBJ : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16
Debug/Direct Draw1.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Direct Draw1.exe - 2 error(s), 0 warning(s)