string usage in network provider

Hi,

In my network provider, in the NPAddConnection, I use any of the string function to access the strings, but they run in debug mode pretty fine, but crash when run through the mpr, i.e. WNetAddConnection. The code seems to be something like this.

if(strcmp(lpNetResource->lpRemoteName, "\\\\newdrive\\drive") == 0) {

Is there anything specfic to string handling through MPR, or else what should I do. Please help though this seems to be a basic question.

Regards,
Ram