Adding a COM reference in vc++ .net
-
Hey, I just found this article http://www.codeproject.com/csharp/automate\_word.asp Its a great article and I follwed it and succesfully built my program in visual c# .net. But now I would like to build the same program in visual c++.net, however I get stuck on the first step, adding the microsoft word COM object. I have tried every way to get the reference window open but cant do it. Am i doing something wrong? Cheers.
-
Hey, I just found this article http://www.codeproject.com/csharp/automate\_word.asp Its a great article and I follwed it and succesfully built my program in visual c# .net. But now I would like to build the same program in visual c++.net, however I get stuck on the first step, adding the microsoft word COM object. I have tried every way to get the reference window open but cant do it. Am i doing something wrong? Cheers.
-
Hey, I just found this article http://www.codeproject.com/csharp/automate\_word.asp Its a great article and I follwed it and succesfully built my program in visual c# .net. But now I would like to build the same program in visual c++.net, however I get stuck on the first step, adding the microsoft word COM object. I have tried every way to get the reference window open but cant do it. Am i doing something wrong? Cheers.
What problem you are facing ? If you are using CLR, then it is same way, as added in C# application. In case of MFC, you cannot add MS Word COM object, you can import its type library in you application and use it. This may give you some idea.
Prasad Notifier using ATL
-
What problem you are facing ? If you are using CLR, then it is same way, as added in C# application. In case of MFC, you cannot add MS Word COM object, you can import its type library in you application and use it. This may give you some idea.
Prasad Notifier using ATL
Ok, yes I am using mfc. Can you recommend any good articles on importing its type library in the application? Once i import it, can i then code pretty much the same as as explained in the tutorial i followed in my original post? ie. will i be able to use myWordDoc.SaveAs" for example? Or will it be completely different because im not using the com object? Thanks very much for you help.
-
Ok, yes I am using mfc. Can you recommend any good articles on importing its type library in the application? Once i import it, can i then code pretty much the same as as explained in the tutorial i followed in my original post? ie. will i be able to use myWordDoc.SaveAs" for example? Or will it be completely different because im not using the com object? Thanks very much for you help.
tmoney101 wrote:
Can you recommend any good articles on importing its type library in the application?
I've not read article , you mentioned. But you can see this article and ofcourse this article. It shows how it can be used
Prasad Notifier using ATL