Click here to Skip to main content
15,916,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
Daniel Turini22-Aug-02 10:55
Daniel Turini22-Aug-02 10:55 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
txseedhead22-Aug-02 11:11
txseedhead22-Aug-02 11:11 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
Tomasz Sowinski22-Aug-02 11:15
Tomasz Sowinski22-Aug-02 11:15 
GeneralRe: VC++ 6.0 hangs during link on WinXP Pin
Mike Nordell25-Aug-02 3:34
Mike Nordell25-Aug-02 3:34 
Questionhow to compare _variant_t with "a" Pin
ns22-Aug-02 10:20
ns22-Aug-02 10:20 
AnswerRe: how to compare _variant_t with "a" Pin
Daniel Turini22-Aug-02 10:28
Daniel Turini22-Aug-02 10:28 
AnswerRe: how to compare _variant_t with "a" Pin
Michael Dunn22-Aug-02 10:29
sitebuilderMichael Dunn22-Aug-02 10:29 
Generalbstr question Pin
ns22-Aug-02 10:04
ns22-Aug-02 10:04 
I have :

_bstr_t bstrFile(L"");


I want to detect later if its empty. How do I do this?

CanI say if(bstrFile == "") DoThis();

Or will it have to be a strcmp or something?

Actually I dont really know why it has to be a bstr. Heres the code thats using it. Perhaps some object in it needs a bstr:

CFileDialog pDialog1(TRUE,"*.bmp", "*.bmp", OFN_HIDEREADONLY ,"Image Files
                             (*.bmp;*.dib;*.gif;*.jpg;*.jpe;*.ico;*.cur)");
pDialog1.m_ofn.lpstrTitle = "Open Sketch";
if(pDialog1.DoModal() == IDOK)
{
    CFile file((LPCTSTR)pDialog1.GetFileName(),CFile::modeRead);
    bstrFile1 = file.GetFilePath();
}


which is then used by:

strmBlob->Type = adTypeBinary;
strmBlob->Open(vtEmpty,adModeUnknown,adOpenStreamUnspecified,bstrEmpty,bstrEmpty);

// load image to the blob field
if(bstrFile strmBlob->LoadFromFile(bstrFile);

so it might be that the _StreamPtr strmBlob (__uuidof(Stream) ); needs to read in a bstr filename....

Thanks,
ns
GeneralRe: bstr question Pin
Ernest Laurentin22-Aug-02 10:27
Ernest Laurentin22-Aug-02 10:27 
GeneralRe: bstr question Pin
Stephane Rodriguez.22-Aug-02 10:48
Stephane Rodriguez.22-Aug-02 10:48 
GeneralDialog Bars Pin
Chun Te, Ewe22-Aug-02 9:51
Chun Te, Ewe22-Aug-02 9:51 
GeneralRe: Dialog Bars Pin
Ernest Laurentin22-Aug-02 10:16
Ernest Laurentin22-Aug-02 10:16 
GeneralNo ole object (blob) entered in database Pin
ns22-Aug-02 9:20
ns22-Aug-02 9:20 
GeneralRe: No ole object (blob) entered in database Pin
Tomasz Sowinski22-Aug-02 9:34
Tomasz Sowinski22-Aug-02 9:34 
GeneralRe: No ole object (blob) entered in database Pin
ns22-Aug-02 9:41
ns22-Aug-02 9:41 
GeneralRe: No ole object (blob) entered in database Pin
Tomasz Sowinski22-Aug-02 10:01
Tomasz Sowinski22-Aug-02 10:01 
GeneralDistribution problem Pin
Keith Goddard22-Aug-02 9:08
Keith Goddard22-Aug-02 9:08 
GeneralRe: Distribution problem Pin
Tomasz Sowinski22-Aug-02 9:25
Tomasz Sowinski22-Aug-02 9:25 
GeneralTrouble passing CTreeCtrl parameter Pin
brianwelsch22-Aug-02 8:57
brianwelsch22-Aug-02 8:57 
GeneralRe: Trouble passing CTreeCtrl parameter Pin
Chris Losinger22-Aug-02 9:08
professionalChris Losinger22-Aug-02 9:08 
Generalmulti-tier architecture Pin
Anonymous22-Aug-02 8:46
Anonymous22-Aug-02 8:46 
QuestionFont: Exist or not? Pin
BlackSmith22-Aug-02 7:09
BlackSmith22-Aug-02 7:09 
AnswerRe: Font: Exist or not? Pin
l a u r e n22-Aug-02 7:17
l a u r e n22-Aug-02 7:17 
AnswerRe: Font: Exist or not? Pin
Tomasz Sowinski22-Aug-02 7:29
Tomasz Sowinski22-Aug-02 7:29 
GeneralDefault CSP and GetLastError() (Encryption Problems) Pin
esapp42022-Aug-02 6:11
esapp42022-Aug-02 6:11 

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.