title: Bringing another app's window to front on Mac in C
body: <p>How do I bring another app's window to front on Mac in C/C++?
  I have the app's pid.
  I found solutions for AppleScript, but I'm not familiar with AppleScript. (and also not with Objective C)
  Thanks!</p>
  
  <p>edit: I cannot use Carbon in this program, because it must be a 64 bit binary.
  edit2: I'm also interested in Carbon and Cocoa solutions. I could put this into an exernal 32 bit app to use Carbon.</p>