Typecast _bstr_t to int?
C / C++ / MFC
4
Posts
3
Posters
0
Views
1
Watching
-
Can't you just use
atoi()
?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
-
Don't know what you like to achieve, but if you are up to put a integer value into a string a type cast is the wrong way. Use
atoi()
to convert character arrays to integers. Hope this helped you out. Walter