Click to See Complete Forum and Search --> : c# console app - missing using / assembly ref


comone
March 27th, 2003, 08:52 AM
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)
{

pareshgh
March 28th, 2003, 04:02 PM
actually when u compile this program by compiler csc option there is a parameter for specifiing the dll refered.

Paresh