first, I'm not new to Program in C, and I'm not new to Program for Windows,
but
I'm very new to Program in C for Windows.
what I'm trying to do is to build a program that doesn't depend on any lib except mine or the OS.
so I tried these:
in the compiler, I set target to console, and dll library.
in the linker, I deleted libs references.
in a test.c I wrote this code:
void PostQuitMessage (long nExitCode);
int main(void)
{
PostQuitMessage(0);
return 0;
}
I got a link error
then I tried to set the linker's libs to "C:\Windows|System32\kernel32.dll"
didn't work.
I tried some more, but didn't work.
note: I did manage to make a working program, when i used default settings.
can someone please show me the steps, what settings, code, etc...
I need to make for the above code to work with out any lib except Windows's ?