Hi Gurus,

I am making a Win32 DLL with _UNICODE defined.
H ere I have a function FindKey(TCHAR * target, TCHAR *key) wherein I have to search the target for occurence of key and replace it with a constant. My problem is that while using _tcscpy on these strings, I am getting unpredictable results, sometimes the calling .exe is also abruptly terminated. What I want to know that while writing a DLL is there some extra precaution to be taken while defining strings and performing operations.