Hi..
Well my problem is this: In C I had some code like this:
where "fake_ptr" contained the address of some variable of type "someType" and it was passed to "function". I had to do this because I couldn't pass directly a pointer of "someType" type to "function". And in C it worked very well.Code:int function(int fake_ptr) { someType *pointer = fake_ptr; /* More code here */ return some; }
But now I tried to do the same in C++ but the compiler got this error:
" invalid conversion from 'int' to 'someType*' "
So I would like to know if there is some way to solve this without pass directly a "someType" pointer to "function" but a int variable by containing the address of some "someType" variable in C++ ??
I hope you have understand me... sorry for my bad english