Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
R

Ram Murthi

@Ram Murthi
About
Posts
4
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • IHTMLTxtRange::pasteHTML crash, any idea???
    R Ram Murthi

    i am working in a code, in which they have used DHTML Edit Control(Dhtmled.ocx) to implement IE HTML editor sort of application. pasteHTML method is crashing when it get some strange HTML text. this is not happening at all the time. i have added the code below. but i cannot add the HTML code which is causing the problem ,since it is too huge text. this is happening at client's place only. this happens with Windows XP , IE6-SP3 it is working fine in Windows 2003 server with IE 7. I am passing HTML text as 1'st argument. i have searched all over the place in the net, but nobody discussed about the problem. i know microsoft dropped supporting DHTML Edit for long time before, but we can not migrate it to MSHTML, , because it will take long time for me to rewrite exact the code to simulate DHTML Edit control wrapper class in MSHTML, i have to give a fix for time being, Please throw me a clue if anybody have an idea, if 1. is there any way to find out a HTML tag which is causing the crash, 2. any workaround for pasteHTML method , . void CDHTMLEdit::ReplaceSel(LPCTSTR lpszNewText,bool bHTML/* = true */) { try { CHTMLSelectionObject SelObj = GetDom().GetSelection(); CString strText = SelObj.GetType(); LPDISPATCH lpIDispatch= SelObj.createRange(); IHTMLTxtRange * lpTxtRange; if(S_OK != lpIDispatch->QueryInterface(IID_IHTMLTxtRange,(void **)&lpTxtRange)) { lpIDispatch->Release(); return; } if(bHTML) { CComBSTR bstrReplaceText = lpszNewText;

    lpTxtRange->pasteHTML(bstrReplaceText);

    } else { CComBSTR bstrReplaceText = lpszNewText; lpTxtRange->put_text(bstrReplaceText); } lpTxtRange->collapse(false); lpTxtRange->select(); lpTxtRange->Release(); lpIDispatch->Release(); } catch(COleDispatchException * pDE) { FILETRACE(_T(" COleDispatchException caught in CDHTMLEdit::ReplaceSel.")); pDE->Delete(); ASSERT(FALSE); } catch(...) { FILETRACE(_T("CDHTMLEdit::ReplaceSel - Unhandled exception caught")); ASSERT(FALSE); } }

    C / C++ / MFC help html sysadmin question announcement

  • why WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired?
    R Ram Murthi

    problem is fixed !!! As microsoft says, notification messages of child window is posted to parent window here, my parent windows is a splitter so it needs a message feeder in order to convey all messages to top level window. adding the following thing in the splitterwnd sets a pullstop to the problem.. FORWARED_MESSAGES() RAM ** i've never seen a wand it gives anything ** ** i am never going to deny it after seeing CP **

    ATL / WTL / STL csharp c++ com tools help

  • why WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired?
    R Ram Murthi

    why WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired? i am a WTL beginner i have a WTL SDI framewnd application and a user-defined class, which is inherited from WTL CListViewCtrl to create a virtual listview control, will act as view class of the application i've set the(LVS_OWNERDATA) style for it. i've also read the following thread <WTL: Reflect notifications to a control> http://www.codeproject.com/script/Forums/View.aspx?fid=4486&msg=468889 my problem is somehow different listview is wrapped by a WTL::CSplitterWindow class then the splitter is added to MainFrame window, acutally the mainframe window is splitted into two views i have reflected the message in mainframe class and i am processing it in my view class ( which is inherited from WTL CListviewctrl) using REFLECTED_NOTIFY_CODE_HANDLER(LVN_GETDISPINFO,OnGetDispInfoFileList) DEFAULT_REFLECTION_HANDLER() as the above mentioned thread reply says (by MIKE) mainframe message is reflected back ... but i don't know if there is problem in splitterwindow class, which is in between the listview and framewindow ...i don't know how to modify splitterwindow( i suppose not ) because it is pre-written WTL class ... my machine soft config is WIN XP-SP2 DOTNET 2005 enterprise ed. latest PSDK IE 6 anyone if you know, could you tell me why :confused: Thanks in advance. RAM *********

    ATL / WTL / STL csharp c++ com tools help

  • Blue-ray Disc Protection BD+ Cracked
    R Ram Murthi

    hay leppie...you're a funny guy ... you will see much bond movies i think. they will show self destructing things.( like cars, pen, blah!!!blah!!!). it's nice for reel life not for real life. :) :) :) ***** RAM ***** i've never seen i am never going a wand to deny it it gives anything after seeing codeproject ===================================

    The Lounge c++ com architecture
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups