MoonchildHK
Programmer
Hi again,
I have a line of code from an example program like this:
I want to replace the text with a string variable read from a text file. So I have something like...
But that doesn't seem to work :-( Does anyone have any idea how I can do this? I have look at websites that talk about converting char * to BSTR but it looks horribly complicated.. is there an easy way?
Thanks,
Moonchild
I have a line of code from an example program like this:
Code:
CComBSTR bstrFileName( L"c:\\Test.avi" );
I want to replace the text with a string variable read from a text file. So I have something like...
Code:
char *FileName;
.
.
.
CComBSTR bstrFileName( charFileName );
But that doesn't seem to work :-( Does anyone have any idea how I can do this? I have look at websites that talk about converting char * to BSTR but it looks horribly complicated.. is there an easy way?
Thanks,
Moonchild