memcpy anomaly

the memcpy function only works of i have

WCHAR var1[5];
WCHAR var2[5];

after it. this makes no sense because statements should never have an effect on previous lines of codes

(btw, WCHAR is a typedef of wchar_t)

what on earth is going on??
memcpy always works. You're probably corrupting memory somehow.

I can't give you a more specific answer unless you give me a more specific question. "it's not working" could mean any number of things.
"not working" as in it has the same effect has me not calling it at all
Post your code.
[edit] Rant removed. [/edit]

Post your code.
Last edited on
Topic archived. No new replies allowed.