Click here to Skip to main content
16,016,738 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Program executes automatically Pin
Identity Undisclosed30-May-05 21:40
Identity Undisclosed30-May-05 21:40 
GeneralRe: Program executes automatically Pin
Flit31-May-05 1:41
Flit31-May-05 1:41 
GeneralRe: Program executes automatically Pin
Identity Undisclosed31-May-05 2:29
Identity Undisclosed31-May-05 2:29 
GeneralRe: Program executes automatically Pin
Flit31-May-05 3:24
Flit31-May-05 3:24 
GeneralRe: Program executes automatically Pin
Christian Graus31-May-05 11:10
protectorChristian Graus31-May-05 11:10 
GeneralRe: Program executes automatically Pin
FlyingTinman31-May-05 14:24
FlyingTinman31-May-05 14:24 
GeneralWhy BSTR conversion not working Pin
Imtiaz Murtaza30-May-05 8:18
Imtiaz Murtaza30-May-05 8:18 
GeneralRe: Why BSTR conversion not working Pin
Christian Graus30-May-05 12:05
protectorChristian Graus30-May-05 12:05 
What's actually happening is that the third BSTR is being created to point to the same memory as the first, and therefore the first now points to memory that has been assigned the value of the third. It makes no difference what order you do it in, the third _bstr_t returns a BSTR that points to the same memory as the first one did. If I add a fourth BSTR field, it happens again. It still happens if I avoid std::string and use constant fields. Basically, the only way I could avoid it was to turn the fields in the struct to be _bstr_t's.

I used to use _bstr_t a lot to convert strings, and I've never seen it do this before.


Christian Graus - Microsoft MVP - C++
GeneralRe: Why BSTR conversion not working Pin
S. Senthil Kumar30-May-05 20:33
S. Senthil Kumar30-May-05 20:33 
GeneralRe: Why BSTR conversion not working Pin
Christian Graus31-May-05 10:59
protectorChristian Graus31-May-05 10:59 
GeneralRe: Why BSTR conversion not working Pin
S. Senthil Kumar31-May-05 17:17
S. Senthil Kumar31-May-05 17:17 
GeneralRe: Why BSTR conversion not working Pin
S. Senthil Kumar30-May-05 19:57
S. Senthil Kumar30-May-05 19:57 
GeneralBode diagram Pin
alvarillo30-May-05 7:39
alvarillo30-May-05 7:39 
GeneralRe: Bode diagram Pin
Ravi Bhavnani30-May-05 7:55
professionalRavi Bhavnani30-May-05 7:55 
GeneralCComboBox & MSVS .NET 2003 Pin
oldbayray30-May-05 6:13
oldbayray30-May-05 6:13 
GeneralRe: CComboBox & MSVS .NET 2003 Pin
Jack Puppy30-May-05 6:57
Jack Puppy30-May-05 6:57 
GeneralRe: CComboBox & MSVS .NET 2003 Pin
oldbayray30-May-05 7:45
oldbayray30-May-05 7:45 
GeneralRe: CComboBox & MSVS .NET 2003 Pin
Ravi Bhavnani30-May-05 7:56
professionalRavi Bhavnani30-May-05 7:56 
GeneralRe: CComboBox & MSVS .NET 2003 Pin
Tom Archer30-May-05 11:29
Tom Archer30-May-05 11:29 
GeneralRe: CComboBox & MSVS .NET 2003 Pin
Ravi Bhavnani30-May-05 11:35
professionalRavi Bhavnani30-May-05 11:35 
GeneralRe: CComboBox & MSVS .NET 2003 Pin
Jack Puppy30-May-05 12:43
Jack Puppy30-May-05 12:43 
GeneralRe: CComboBox & MSVS .NET 2003 Pin
oldbayray30-May-05 12:52
oldbayray30-May-05 12:52 
GeneralRe: CComboBox & MSVS .NET 2003 Pin
oldbayray30-May-05 12:51
oldbayray30-May-05 12:51 
GeneralDisplay file!!! Pin
Anonymous30-May-05 5:41
Anonymous30-May-05 5:41 
GeneralRe: Display file!!! Pin
Tom Archer30-May-05 11:36
Tom Archer30-May-05 11:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.