CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2001
    Posts
    9

    c# console app - missing using / assembly ref

    I have a VC++ COM DLL which has been though TlbImp.exe and works fine in a ASP .NET web application, now I want to use this in a C# Console Application but I can't get it to compile, where do I put the DLL converted with TlbImp.exe for it to work or do I have a missing command ?

    compile error:-
    D:\lees\vcprogs\ConsoleAppTest\Class1.cs(8): The type or namespace name 'TestCOM' could not be found (are you missing a using directive or an assembly reference?)



    using System;
    using TestCOM.CMyProg; // COM component here


    namespace ConsoleAppTest
    {
    /// <summary>
    /// Summary description for Class1.
    /// </summary>
    class Class1
    {

    /// <summary>
    /// The main entry point for the application.
    /// </summary>
    [STAThread]
    static void Main(string[] args)
    {

  2. #2
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    1,890
    actually when u compile this program by compiler csc option there is a parameter for specifiing the dll refered.

    Paresh
    - Software Architect

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