CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2005
    Location
    Pittsburgh
    Posts
    2

    Exclamation dll/com programming basics

    Hi,

    Can anyone walk me through the basic steps to implement a .dll in C#? And also, what is the difference between a com object and dll object? Thank you very much.

  2. #2
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    Re: dll/com programming basics

    Right click the solution in solution explorer. Goto 'add new item' and select 'class library'. That's about it.

    Or File/New project and select class library.

    dlls in .NET are assemblies. These are .NET dlls, and are 'transparent' i.e. the classes in them can be referenced as if they were a part of your main application.

    COM dlls use a technology called COM which is designed as a standard interface to dlls.

    Both are different technologies with plus and minus points. COM dlls generally are written in C++ (or VB6).

    The ability to register a .NET assembly as a COM dll seems primarily to be there so you can use .NET dlls in ordinary (native) C++ applications.

    Darwen.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

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