Results 1 to 9 of 9

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    N/A Demoman's Avatar
    Join Date: Sep:2005
    Location:
    Posts: 3,098

    Rich Text Visual C++ 6.0

    m_richtextbox.LoadFile(filename,???);

    ??? RTF ? MSDN, Google . , const VARIANT, , . , ?

  2. #2
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    RichTextBox .NET , Visual C++ 6.0 ( ) . LoadFile() RichTextBoxStreamType RTF RichTextBoxStreamType.RichText.
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  3. #3
    N/A Demoman's Avatar
    Join Date: Sep:2005
    Location:
    Posts: 3,098
    Microsoft Rich Textbox Control 6.0 (SP6) - . richtx32.ocx . , - (struct tagVARIANT).

  4. #4
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    OCX OLE-COM Object Viewer (File -> View Typelib), LoadSaveConstants, :
    Code:
    typedef [uuid(9FAEAB20-894B-11CE-9576-0020AF039CA3), helpstring("LoadSave constants."), helpcontext(0x000445c9)]
    enum {
        rtfRTF = 0,
        rtfText = 1
    } LoadSaveConstants;
    rtfRTF ( 0, rtfRTF).

    COM , Visual Basic 6.0.
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  5. #5
    N/A Demoman's Avatar
    Join Date: Sep:2005
    Location:
    Posts: 3,098
    m_richtextbox.LoadFile("c:\test.rtf",0);
    :
    error C2664: 'LoadFile' : cannot convert parameter 2 from 'const int' to 'const struct tagVARIANT &'
    Reason: cannot convert from 'const int' to 'const struct tagVARIANT'
    No constructor could take the source type, or constructor overload resolution was ambiguous


    MFC->Dialog Based, .

  6. #6
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    , VARIANT IRichText. 0- , CComVariant ATL COleVariant MFC. struct tagVARIANT , .
    Code:
    COleVariant vRTF(0);
    vRTF .

    LoadFile optional, ( ).
    Last edited by icaci; 25th April 2009 at 20:43. Reason:
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  7. #7
    N/A Demoman's Avatar
    Join Date: Sep:2005
    Location:
    Posts: 3,098
    optional, , .

    error C2668: 'COleVariant::COleVariant' : ambiguous call to overloaded function - . , , . MSDN , , . , 0 int ( )?

  8. #8
    philosophus duratea icaci's Avatar
    Join Date: Oct:2006
    Location: Aachen
    Posts: 2,698
    : COleVariant((long)0); COleVariant(0L); ( ) COleVariant(0L, VT_I4);
    Internet - it doesn't make you stupid, it just makes your stupidity more accessible to others

  9. #9
    N/A Demoman's Avatar
    Join Date: Sep:2005
    Location:
    Posts: 3,098
    !
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Copyright © 1999-2011 . .
iskamPC.com | mobility.BG | Bloody's Techblog | | 3D Vision Blog |