Author Topic: An implemention of ITextHost  (Read 7110 times)

TouEnMasm

  • Member
  • *****
  • Posts: 1340
    • EditMasm
An implemention of ITextHost
« on: August 28, 2012, 07:09:17 PM »
Hello,
I have made some modifies to make it more usable,complet and simple.
Fa is a musical note to play with CL

blue_devil

  • Member
  • **
  • Posts: 112
    • SCTZine
Re: An implemention of ITextHost
« Reply #1 on: August 29, 2012, 06:45:10 AM »
cannot compile on my machine, i think some files -includes or libs- are missing ?
like
translate.inc
tom.sdk
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
SCTZine Assembly

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: An implemention of ITextHost
« Reply #2 on: August 29, 2012, 10:49:51 AM »
Yves uses his "ready-to-use SDK" set of include files
you can install his SDK or maybe change the INCLUDE's

TouEnMasm

  • Member
  • *****
  • Posts: 1340
    • EditMasm
Re: An implemention of ITextHost
« Reply #3 on: August 29, 2012, 03:43:28 PM »

For include files see this post
http://masm32.com/board/index.php?topic=563.msg4563#msg4563
Have also a look on others include in the windows.inc subforum
Fa is a musical note to play with CL

blue_devil

  • Member
  • **
  • Posts: 112
    • SCTZine
Re: An implemention of ITextHost
« Reply #4 on: September 10, 2012, 06:56:37 AM »
I have downloaded the cab file

But i still get the error message:
Code: [Select]
TextDraw.obj : error LNK2001: unresolved external symbol _FindTextA@4
TextDraw.exe : fatal error LNK1120: 1 unresolved externals
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
SCTZine Assembly

TouEnMasm

  • Member
  • *****
  • Posts: 1340
    • EditMasm
Re: An implemention of ITextHost
« Reply #5 on: September 10, 2012, 04:11:04 PM »
The   FindText   is one of those named api function used also in the interface.This put ml in trouble and the linker search for this function even if it is not in use in the proc.
You have two choice:
Just add the comdlg32.lib with the FindText function.
Or modify the name of the functions in the interfaces as follow.

           Actually:
Quote
E:\sdkrc7\Mshtmlc.sdk
10927   : findText                        comethod5 ?
27150   : FindText                        comethod5 ?
28341   : FindText                        comethod5 ?


E:\sdkrc7\TOM.sdk
366   : FindText                        comethod5 ?
460   : FindText                        comethod5 ?

E:\sdkrc7\UIAutomationClient.sdk
1761   : FindText                        comethod5 ?

E:\sdkrc7\UIAutomationCore.sdk
1765   : FindText                        comethod5 ?


The modify of  the tom.sdk will be enough.
He is the only one header of textdraw using FindText in it's interface

Quote
E:\sdkrc7\Mshtmlc.sdk
10927   : findText                        comethod5 ?
27150   : aFindText                        comethod5 ?
28341   : aFindText                        comethod5 ?


E:\sdkrc7\TOM.sdk
366   : aFindText                        comethod5 ?
460   : aFindText                        comethod5 ?

E:\sdkrc7\UIAutomationClient.sdk
1761   : aFindText                        comethod5 ?

E:\sdkrc7\UIAutomationCore.sdk
1765   : aFindText                        comethod5 ?


Fa is a musical note to play with CL

blue_devil

  • Member
  • **
  • Posts: 112
    • SCTZine
Re: An implemention of ITextHost
« Reply #6 on: September 11, 2012, 06:03:41 AM »
i have added comdlg32.lib, and finally it works no errors but also there is no second line ::)
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
SCTZine Assembly

TouEnMasm

  • Member
  • *****
  • Posts: 1340
    • EditMasm
Re: An implemention of ITextHost
« Reply #7 on: September 11, 2012, 03:24:54 PM »

You have a richedit20.dll version 2 instead of version 3.This don't allow the proc to work.I have verify this with your dll  in the directory of the proc.
I don't know wich system you have (very old,mine is XP SP3),try windows update.
Perhaps can you find a separate download for it,many dll can be found in separate download.
Fa is a musical note to play with CL

blue_devil

  • Member
  • **
  • Posts: 112
    • SCTZine
Re: An implemention of ITextHost
« Reply #8 on: September 12, 2012, 04:40:34 AM »
thanks ToutEnMasm
i have downloaded Richedit20.dll v3.1 from:
Code: [Select]
http://thehandofagony.com/alex/dll/riched20.dllthen i compiled the source and it is now working like mercedes amg ;)
(and i also use XP SP3)
..Dreams make the future
But the past never lies..
BlueDeviL // SCT
My Code Site:
SCTZine Assembly

japheth

  • Guest
Re: An implemention of ITextHost
« Reply #9 on: September 22, 2012, 10:46:40 PM »
Wrong thread, sorry!