This is a discussion on process id from exe within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by kryptkat Code: and printf("%lu", (unsigned long)dwPID); return; } to printf("%lu", (unsigned long)dwPID); return 0; } getting unresolved ...
did the int main thing .... forgot to say....Code:C:\borland\bcc55\bin>bcc32 processid.cpp Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland processid.cpp: Warning W8012 processid.cpp 31: Comparing signed and unsigned values in functi on GetProcessByFileName(char *) Warning W8057 processid.cpp 57: Parameter 'argc' is never used in function mai n(int,char * *) Warning W8057 processid.cpp 57: Parameter 'argv' is never used in function mai n(int,char * *) Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external 'EnumProcesses' referenced from C:\BORLAND\BCC55\BIN\ processid.OBJ Error: Unresolved external 'GetModuleBaseNameA' referenced from C:\BORLAND\BCC55 \BIN\processid.OBJ C:\borland\bcc55\bin>
Missing import library.
All the buzzt!
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law
if i compile as win32 i get missing winmain if i try other libs like import32.lib and cw32.lib same error.
which import lib missing?