Here's me error:"invalid conversion from 'char*' to 'char'.
This is much different than what I found on google because I'm using actual pointers not return values n' stuff.
Well heres a watered down version of the code:
char* LOCK = new char[501];
char ret[501] = "this is fine in program";
*LOCK=ret;
The last line is getting the error.
Two more things:
It is very important it is a c-style string (array if chars)
It is very important that it uses the heap.
The memory allocated to the heap is deleted after a while.