Copy memory buffer
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/05/2006 at 03:19, xxxxxxxx wrote:
User Information:
Cinema 4D Version: 9.5
Platform: Windows ; Mac ;
Language(s) : C++ ;---------
Hi,I am trying to copy a CPolygon buffer to another CPolygon buffer but I get crashes everytime I use it, or it doesn´t work.
I tried CopyMem and also std::copy but none of them work (CopyMem crashes and std::copy has no effect). Is it that CPolygon cannot be copied?
std::copy(poly, poly + d_pc, cp + pc);
CopyMem(poly, cp + pc, sizeof(CPolygon) * d_pc);I need this urgently!!!
Thanks i.a.
Katachi -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 05/05/2006 at 04:46, xxxxxxxx wrote:
ok, worked. Had a logic error in it.