exist example for dll very easy? like hello world? - page 2

 
i add windows.h in folder now  work but ask me  : fatal error C1034: winapifamily.h: no include path set  winapifamilily isaw in internet but is for windows 8 o_O

 
faustf #:

i have just install VS2019 , but cl.exe is not in enviroment path  iadd in enviroment path i add  cl.exe  (64bit)  i  opena  file text i past  this code

i call by cmd  the cl.exe   like  this 

but  return 

Microsoft Windows [Version 10.0.19045.3448]
(c) Microsoft Corporation. All rights reserved.

C:\Users\pct>cl
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30151 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

usage: cl [ option... ] filename... [ /link linkoption... ]

C:\Users\pct>cd C:\Users\pct\source\repos\Dlltest\Debug

C:\Users\pct\source\repos\Dlltest\Debug>cd C:\Users\pct\Desktop\test-dll-mql4

C:\Users\pct\Desktop\test-dll-mql4>cl.exe /LD sampledll.cpp /link user32.lib
Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30151 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

sampledll.cpp
sampledll.cpp(1): fatal error C1034: windows.h: no include path set

C:\Users\pct\Desktop\test-dll-mql4>

cl cannot locate the INCLUDE folder

cl.exe /LD sampledll.cpp /link user32.lib /I <the include folder for windows>

i hope i remember correctly for the cmd-line param.