Void __fastcall TForm5: : Button1Click (TObject * Sender)
{
Int the iPid=(int) getpid ();
Form5 - & gt; Caption=the iPid.
}
For the current process ID, 32 normal, 64 cannot compile the following error
Error: [ilink64 Error] Unresolved external 'getpid referenced from C: \ DOCUMENTS \ \ USERS \ BB EMBARCADERO \ STUDIO \ PROJECTS \ WIN64 \ DEBUG \ UNIT5 O