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)
{
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)
{