News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

An implemention of ITextHost

Started by TouEnMasm, August 28, 2012, 07:09:17 PM

Previous topic - Next topic

TouEnMasm

Hello,
I have made some modifies to make it more usable,complet and simple.
Fa is a musical note to play with CL

bluedevil

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:
BlueDeviL Github

dedndave

Yves uses his "ready-to-use SDK" set of include files
you can install his SDK or maybe change the INCLUDE's

TouEnMasm


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

bluedevil

I have downloaded the cab file

But i still get the error message:
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:
BlueDeviL Github

TouEnMasm

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

bluedevil

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:
BlueDeviL Github

TouEnMasm


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

bluedevil

thanks ToutEnMasm
i have downloaded Richedit20.dll v3.1 from:
http://thehandofagony.com/alex/dll/riched20.dll
then 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:
BlueDeviL Github

japheth