halo all, 

aku mau tanya, Cara mengambil mengambil pid(Process Id) di dos/windows.
saat baca help Borland C5. dengan mengambil getpsp dan disini ada contohnya. 
saat contohnya dijalankan samapai di mengalami ke salahan program yaitu
Unresolved external _getpsp referenced module pic.c

this program pid.c is

#include <stdio.h>
#include <dos.h>
#include <process.h>
#include <stdlib.h>


int main(void)
{
   static char command[128];
   char far, *cp;
   int len, i;

   printf("The program segment prefix is: %u\n", getpsp());
   //cp = (char *) MK_FP(_psp, 0x60);
   len = *cp;

   for (i = 0; i < len; i++)
      command[i] = cp[i+1];

   printf("Command line: %s\n", command);

   return 0;
}

jika ada yang tau tolong kasih tau yaa. 

Thx.
 
 

--
Utk berhenti langganan, kirim email ke [EMAIL PROTECTED]
Informasi arsip di http://www.linux.or.id/milis.php3

Kirim email ke