Click here to Skip to main content
15,911,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can an app know if computer is connect to the internet? Pin
John R. Shaw10-Jun-05 22:24
John R. Shaw10-Jun-05 22:24 
AnswerRe: can an app know if computer is connect to the internet? Pin
ThatsAlok10-Jun-05 23:24
ThatsAlok10-Jun-05 23:24 
AnswerRe: can an app know if computer is connect to the internet? Pin
David Crow11-Jun-05 6:28
David Crow11-Jun-05 6:28 
Generalproblem with bstr Pin
pardis10-Jun-05 20:45
pardis10-Jun-05 20:45 
GeneralRe: problem with bstr Pin
ThatsAlok10-Jun-05 21:09
ThatsAlok10-Jun-05 21:09 
GeneralRe: problem with bstr Pin
S. Senthil Kumar10-Jun-05 21:51
S. Senthil Kumar10-Jun-05 21:51 
GeneralRe: problem with bstr Pin
pardis11-Jun-05 1:21
pardis11-Jun-05 1:21 
GeneralRe: problem with bstr Pin
S. Senthil Kumar12-Jun-05 4:59
S. Senthil Kumar12-Jun-05 4:59 
Where exactly does it bomb? I presume your code will be looking like this
HRESULT ISysR::GetP(BSTR *Blob1)
{
    SetB(_bstr_t(*Blob1));
}

First, if Blob1 is an out parameter, it means that there would be no memory allocated (SysAllocString memory) to it, so calling any BSTR methods on Blob1 will blow up. The code calling GetP will probably be like
BSTR val;
GetP(&val);

It's GetP's job to allocate memory for the BSTR and return it back. What does you SetP method look like?

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: problem with bstr Pin
pardis18-Jun-05 18:40
pardis18-Jun-05 18:40 
GeneralWord Automation Pin
Veera Raghavendra10-Jun-05 19:38
Veera Raghavendra10-Jun-05 19:38 
Generalproblem in tab control Pin
chethu66510-Jun-05 19:29
chethu66510-Jun-05 19:29 
GeneralRe: problem in tab control Pin
John R. Shaw10-Jun-05 23:23
John R. Shaw10-Jun-05 23:23 
GeneralRe: problem in tab control Pin
chethu66511-Jun-05 0:02
chethu66511-Jun-05 0:02 
GeneralCHtmlView problem Pin
zoid ! 10-Jun-05 16:41
zoid ! 10-Jun-05 16:41 
GeneralCreating Multiple Windows Pin
Anonymous10-Jun-05 16:10
Anonymous10-Jun-05 16:10 
GeneralRe: Creating Multiple Windows Pin
John R. Shaw10-Jun-05 19:39
John R. Shaw10-Jun-05 19:39 
GeneralRe: Creating Multiple Windows Pin
shatterstar645710-Jun-05 22:31
shatterstar645710-Jun-05 22:31 
Generalvariable spin control range Pin
10-Jun-05 15:03
suss10-Jun-05 15:03 
GeneralRe: variable spin control range Pin
Chris Losinger10-Jun-05 15:40
professionalChris Losinger10-Jun-05 15:40 
GeneralWinHTTP & attachments Pin
Ed K10-Jun-05 10:16
Ed K10-Jun-05 10:16 
GeneralRe: WinHTTP & attachments Pin
ThatsAlok10-Jun-05 19:34
ThatsAlok10-Jun-05 19:34 
GeneralRe: WinHTTP & attachments Pin
ThatsAlok10-Jun-05 20:37
ThatsAlok10-Jun-05 20:37 
GeneralCOM Question Pin
Jamie Nordmeyer10-Jun-05 9:18
Jamie Nordmeyer10-Jun-05 9:18 
GeneralRe: COM Question Pin
David Crow10-Jun-05 10:25
David Crow10-Jun-05 10:25 
GeneralRe: COM Question Pin
TheGreatAndPowerfulOz10-Jun-05 10:26
TheGreatAndPowerfulOz10-Jun-05 10:26 

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.