Hello every body
I made a small prog. to click mouse , but when i tried to make it parallel using mpi it doesn't work
can any body lead me where is the error
#include "mpi.h"
#include <windows.h>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int myid, numprocs;
int n1=0;
MPI_Init(&argc,&argv);
MPI_Comm_size(MPI_COMM_WORLD,&numprocs);
MPI_Comm_rank(MPI_COMM_WORLD,&myid);
if(myid<5)
{
while (n1 <5000)
{
mouse_event(MOUSEEVENTF_LEFTDOWN | MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
n1++;
}
}
MPI_Finalize();
return 0;
}
thanks