Hi, I need to get a subsring from the following varialbe var (VARIANT vaiable) or the _bstr_ VARIABLE WINlOGINnAME. The substring should start from the 1st char and stops right before the '@' character. Please help with how to code this. Thank you. I'm using C++ in a COM component.
winLoginName = var.bstrVal;