I have a function that takes 'LPTSTR' as one of its input, but I am having a hard time
converting a string into it. What I need to do is create a string that holds the path to
a folder with a number at the end.
Like this:
int n = 0;
string path = "c:\\myData\\Image_";
path += intToString(n++);
path += ".bmp";
But I am then unable to convert path into a 'LPTSTR'.
If it matters, the function I am trying to call is this one ( it works with the TEXT() )
capFileSaveDIB(hWndC1,TEXT("C:\\folder\\test.bmp") );
Any ideas?