CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: c# components.

  1. #1
    Join Date
    Aug 2004
    Posts
    391

    c# components.

    Hi,

    Is it possible to make a C# component that can be used in other applications. Aiming at creating something like a COM component in .net, that can be registered and accessed, say from toolbox in MS Word/Excel or other applications that can use components. I looked into class library project template in VISUAL STUDIO 2008, but according to MIcrosoft:
    "You can use the Class Library template to quickly create reusable classes and components that can be shared with other projects."

    I am assuming they mean .Net projects from within Visual Studio only. Can please someone point me in right direction?

  2. #2
    Join Date
    Aug 2005
    Location
    Seattle, Wa
    Posts
    179

    Re: c# components.

    In the "New Project" dialog, under "Visual C#" you should have an "Office" subsection.

    There you will find project templates for creating Office add-in's. (Excel, Word, etc.)

  3. #3
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: c# components.

    No, you can make any class "ComVisible" and then create a native Wrapper (tlbexp.exe) . Those should be your starting points.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  4. #4
    Join Date
    Aug 2004
    Posts
    391

    Re: c# components.

    <quote>
    In the "New Project" dialog, under "Visual C#" you should have an "Office" subsection.

    There you will find project templates for creating Office add-in's. (Excel, Word, etc.)
    </quote>

    I didn't just mean office. I meant creating Components in general that will work not only for .Net , but elsehere in windows systems too.



    I will look into Type LIbrary Exporter. Thanx for the tip

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured