|
-
March 27th, 2003, 09:52 AM
#1
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)
{
-
March 28th, 2003, 05:02 PM
#2
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|