Eugene,

I'm afraid that you've set yourself a silly goal.  All .NET code is
managed, except unmanaged C++.  (C# is definitely managed -- no other
options).  Until a managed version of Office comes out (probably sometime
in 2003), automating Word can only be done through COM Interop (i.e,
calling out to unmanaged code).

That's the basic data.  Now, why the result would be silly.  What you're
proposing is writing managed code that calls unmanaged (Word) code, then
wrapping that in an unmanaged interface (which certainly is possible).  The
result would be the most inefficient code imaginable, with every call
crossing the managed-unmanaged boundary twice.

Most likely, you should stick with Visual Studio 6.0 for this project.  Not
every application is destined for .NET.  If you insist on using .NET, I
encourage you to use C++.

Your subject line asked about automating MsWord using C#, but that doesn't
seem like what you really want.  If it is, there are lots of posts in the
archives of this list about how to do it, not to mention a KB article
devoted entirely to that subject.

Bill

On Thu, 27 Jun 2002 17:08:08 -0400, Eugene Mortimore <EugeneMort@NET-
SOFT.COM> wrote:

>Hi,
>
>I want to automate MsWord using C# (NOT C++) in VsNet and target the result
>to a
>unmanaged .DLL. Is that possible? If so, any examples?
>
>If NOT, how to create unmanaged MsWord Automation DLL in VsNet to target
>unamanaged platform. C++, VSA, VB - which is best and
>where's the best info.
>
>Thanks
>Gene
>
>You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
>subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to