Click here to Skip to main content
15,919,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Single computer identification Pin
TyMatthews16-Sep-02 10:49
TyMatthews16-Sep-02 10:49 
GeneralURGENT required help on Multiple Dialog & SetTimer problem! Pin
16-Sep-02 4:52
suss16-Sep-02 4:52 
GeneralRe: URGENT required help on Multiple Dialog & SetTimer problem! Pin
Renjith Ramachandran16-Sep-02 8:18
Renjith Ramachandran16-Sep-02 8:18 
GeneralRe: URGENT required help on Multiple Dialog & SetTimer problem! Pin
ATC16-Sep-02 9:34
ATC16-Sep-02 9:34 
GeneralRe: URGENT required help on Multiple Dialog & SetTimer problem! Pin
Renjith Ramachandran19-Sep-02 2:26
Renjith Ramachandran19-Sep-02 2:26 
GeneralUpdate detail SetTimer problem Pin
Anonymous16-Sep-02 9:07
Anonymous16-Sep-02 9:07 
GeneralGetting HTML source given a IHTMLDocument2* Pin
dabs16-Sep-02 4:53
dabs16-Sep-02 4:53 
GeneralRe: Getting HTML source given a IHTMLDocument2* Pin
dabs16-Sep-02 6:10
dabs16-Sep-02 6:10 
Nevermind - found it out myself:

<br />
//errorhandling left out to increase clarity:<br />
IHTMLDocument2Ptr piDoc = ...;<br />
IPersistStreamInitPtr piPersistStreamInit;<br />
IStreamPtr piStream;<br />
HGLOBAL hGlobal = NULL;<br />
<br />
::CreateStreamOnHGlobal( NULL, TRUE, &piStream );<br />
piDoc->QueryInterface( IID_IPersistStreamInit, (void**)&piPersistStream );<br />
piPersistStream->Save( piStream, FALSE );<br />
<br />
::GetHGlobalOnStream( &hGlobal, piStream );<br />
<br />
size_t nNumBytes = ::GlobalSize( hGlobal );<br />
if ( nNumBytes > 0 )<br />
{<br />
    BYTE* pBytes = reinterpret_cast< BYTE* >( ::GlobalLock( hGlobal ) );<br />
    if ( pBytes[0] == 0xFF && pBytes[1] == 0xFE )<br />
    {<br />
        //It's a LPCWSTR:<br />
        LPCWSTR pszwHTML = reinterpret_cast< LPCWSTR >( pBytes + 2 );<br />
    }<br />
    else<br />
    {<br />
        //It's LPCSTR:<br />
        LPCSTR pszHTML = reinterpret_cast< LPCSTR >( pBytes );<br />
    }<br />
    ::GlobalUnlock( hGlobal );<br />
}<br />
<br />






Wenn ist das Nunstück git und Slotermeyer? Ja! Beierhund das oder die Flipperwaldt gersput!
QuestionVB 6.0 How do I open a .txt file???? Pin
BHBAD200216-Sep-02 4:52
sussBHBAD200216-Sep-02 4:52 
AnswerRe: VB 6.0 How do I open a .txt file???? Pin
Pavel Klocek16-Sep-02 5:02
Pavel Klocek16-Sep-02 5:02 
AnswerRe: VB 6.0 How do I open a .txt file???? Pin
Jeremy Falcon16-Sep-02 8:33
professionalJeremy Falcon16-Sep-02 8:33 
GeneralADOX and adding two databases Pin
ns16-Sep-02 4:18
ns16-Sep-02 4:18 
GeneralRe: ADOX and adding two databases Pin
Michael P Butler16-Sep-02 5:23
Michael P Butler16-Sep-02 5:23 
GeneralRe: ADOX and adding two databases Pin
ns16-Sep-02 5:38
ns16-Sep-02 5:38 
GeneralRe: ADOX and adding two databases Pin
Bill Wilson16-Sep-02 9:15
Bill Wilson16-Sep-02 9:15 
GeneralRe: ADOX and adding two databases Pin
ns16-Sep-02 9:22
ns16-Sep-02 9:22 
GeneralRe: ADOX and adding two databases Pin
Bill Wilson16-Sep-02 10:57
Bill Wilson16-Sep-02 10:57 
GeneralDouble-click notification not received (or not sent) Pin
Le centriste16-Sep-02 4:05
Le centriste16-Sep-02 4:05 
GeneralRe: Double-click notification not received (or not sent) Pin
Mustafa Demirhan16-Sep-02 7:23
Mustafa Demirhan16-Sep-02 7:23 
GeneralMetafileDCs without Clip region Pin
Peter Stark16-Sep-02 3:54
sussPeter Stark16-Sep-02 3:54 
GeneralRe: MetafileDCs without Clip region Pin
Mike Nordell16-Sep-02 5:09
Mike Nordell16-Sep-02 5:09 
GeneralA problem using Vc++.net and ATL Server to create Web Service Pin
victorswan16-Sep-02 3:31
victorswan16-Sep-02 3:31 
GeneralAbout net send message Pin
Simon.W16-Sep-02 3:25
Simon.W16-Sep-02 3:25 
GeneralRe: About net send message Pin
Mike Nordell16-Sep-02 5:18
Mike Nordell16-Sep-02 5:18 
GeneralRe: About net send message Pin
Daniel Lohmann16-Sep-02 6:53
Daniel Lohmann16-Sep-02 6:53 

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.