<p>I'm looking for a method, or a code snippet for converting std::string to LPCWSTR</p>

If you are in an ATL/MFC environment, You can use the ATL conversion macro:
```
```
#include <atlbase.h>
#include <atlconv.h>

. . .

string myStr("My string");
CA2W unicodeStr(myStr);
```
```
You can then use unicodeStr as an LPCWSTR.  The memory for the unicode string is created on the stack and released then the destructor for unicodeStr executes.