Delphi unit for msctf.h header file (from Platform SDK)?

290 views Asked by At

Is there any Delphi unit available corresponding msctf.h header file from Platform SDK?

I have checked Delphi 2010 source folder, but it seems Delphi doesn't come with that.

Thanks in advance for your time!

1

There are 1 answers

1
Ondrej Kelle On BEST ANSWER

You can use Visual Studio's MIDL to generate a type library (.tlb) from the .idl file and then use Delphi's tlibimp.exe to generate the Delphi interface unit.

The problem with the original .idl is that it doesn't contain a library statement so I added it manually (otherwise MIDL wouldn't generate the .tlb).

See if the result helps you (you may still need to fix some parts by hand).