I am having a small problem. I have written a piece of code and want to find what exactly it will react as.
The code is as follows.
BSTR bstr ;
CString str="hello this is a test" ;
bstr = str.AllocSysString() ;
I wanted to show a message box or u can say wanted to extract the data in the BSTR variable without using a _bstr_t or CString avriable.
So i tried this stunt i.e AfxMessageBox((LPCTSTR)(_bstr_t)bstr);
Please tell me if this will work only as a typecast operator , or it will allocate memory for the BSTR to _bstr_t conversion.
The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.
Hints for the grid button. Nested classes, templated collections. Squash that darned bug!
Continuing from the sixth article about sudoku.
Open the project in visual studio.
First we will finish with the SUD_SETVALUE messa…
The undo support, implementing a stack.
Continuing from the eigth article about sudoku.
We need a mechanism to keep track of the digits entered so as to implement an undo mechanism. This should be a ‘Last In First Out’ collec…