i want to make use of Com intefaces into my .net application, but this is related to Text Services Framework and i reasearched on this and it was like it only supports COM servers can anyone help me on this can i use TSF intefaces into my .net application and if yes Please tell me how to do it plzzzzzz :) thanks
how to make use of Text Services Framework into .net application
1.8k Views Asked by shraddha At
1
There are 1 best solutions below
Related Questions in .NET
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
Related Questions in COM
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
Related Questions in TEXT-SERVICES-FRAMEWORK
- C++ using std::vector across boundaries
- Linked list without struct
- Connecting Signal QML to C++ (Qt5)
- how to get the reference of struct soap inherited in C++ Proxy/Service class
- Why we can't assign value to pointer
- Conversion of objects in c++
- shared_ptr: "is not a type" error
- C++ template using pointer and non pointer arguments in a QVector
- C++ SFML 2.2 vectors
- Lifetime of temporary objects
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Hey I have the same problem, I am evaluating if i really have to use C++ for doing the job. You can of course create a COM Server in any COM compatible environment, so also in .NET. I am by far not in any usable state, but I can tell you what I did so far. First, the msctf.dll only has a header and an IDL file (in Windows SDK 7.0), which has to be modified such that you get a type library (tlb). I used the tlbimp2 from codeplex, it has an xml based rewriting mechanism (that eases the heavy use of pointers in the type library: Here is my batch file
And here my XML rule file (to be expanded of course) http://clrinterop.codeplex.com/
Then I was trying to wrap the interfaces to be more .NET friendly:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Globalization;
The COMIFace class is just a helper to fetch the IIDs from registry, as I only found them in the .c file generated with the IDL compiler. Better would be to parse that file I think, but this works fine too. The given class works fine, I can register the service with following batch (check if regasm enabled in the C# project Options)
The problem I had is with all this that its a huge effort and there are many issues that are not worth the pain i think. I am not sure and wish anybody had some guidance. A point is, one always needs to follow some great site like this: TSF Aware blog but then u can write it in C++ anyways. One option might be C++/CLR, doing all the COM stuff and registration in C++ and the logic in C#, possible I guess
A here is some test code which shows it basically works:
var profiles = new LanguageProfiles();