The MASM Forum Archive 2004 to 2012

General Forums => The Campus => Topic started by: elmo on April 30, 2011, 08:38:12 AM

Title: insert image to richedit
Post by: elmo on April 30, 2011, 08:38:12 AM
I found in C++ in here:
http://www.codeguru.com/Cpp/controls/richedit/article.php/c5383/

did anyone had make it in MASM too?

other topics:
http://msdn.microsoft.com/en-us/library/dd387916
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q141549
http://www.masm32.com/board/index.php?PHPSESSID=4897f13b179b4ba20c38a75348f9f037&topic=5612.0;prev_next=prev
http://support.microsoft.com/default.aspx?scid=kb;en-us;220844
http://blog.csdn.net/happyhell/archive/2009/06/12/4263313.aspx
Title: Re: insert image to richedit
Post by: jj2007 on April 30, 2011, 10:32:02 AM
See http://www.masm32.com/board/index.php?topic=5677.0

I haven't tried it myself; RichMasm can embed images but I use another mechanism.
Title: Re: insert image to richedit
Post by: elmo on April 30, 2011, 11:35:26 AM
I always have problem when try to get each interface. :dazzled:
Example:

assume esi:ptr IRichEditOle
invoke [esi].GetObjectCount,lpOleInterface


in the screen appear:
               error A2006: undefined symbol : GetObjectCount


or maybe:

  mov esi,lpOleInterface
  mov esi,dword ptr [esi]
  assume esi:ptr IRichEditOle
  invoke [esi].GetClientSite,lpOleInterface,addr lpClientSite
  cmp lpClientSite,0


in the screen appear:
         error A2006: undefined symbol : GetClientSite


so, how to get interface  correctly in MASM?  ::)
Title: Re: insert image to richedit
Post by: dedndave on April 30, 2011, 01:48:08 PM
 :dazzled:

from what i can see, IRichEditOle and GetObjectCount are COM functions - not data structures/members
i would try to find some way other than COM to implement rich edit