Well the code explains what i am trying to do
auto haystack = wstring(L"\REGISTRY\MACHINE\SOFTWARE\WOW6432Node\Data\0\Path");
auto needle = wstring(L"\WOW6432Node\Data\0\Name");
auto found = haystack.find(needle) != haystack.npos;
cout << found << endl;
it returns true although needle is different than haystack notice the former ends with \Path while the latter ends with \Name... how could i exactly tell if certain string contains another ?