pointer casting

I am trying to cast this but it gives me it is not a pointer
1
2
3
4
5
6
7
8


         int *j=new int;
	 *j=i;
	my_Func (void *)j);// This is how i pass the argument to the func.
  void* my_Func(void *arg)
  int id=*((int)*arg);
	

any idea? Thanks
Last edited on
Move that first asterix to the left, in between the 'int' and 'id'.
I have no idea how to answer the OP, and @Computergeek01 I have no idea what you're even referring to in the OP.
It appears that I was made to look foolish by an edit. Look at his edit time and my post time. He's missing a brace on line 5, line 4 doesn't make a lick of sense, and line 7 was the original post in it's entirety.
Topic archived. No new replies allowed.