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

    System.Web.Mail problem

    Guys:
    I added refeence to system.web.dll in a VS project, and put "using namespace System::Web::Mail;" in StdAfx.h, but when I buiild solution , it gave me error says "system is not a class or namespace name" and " Mail a namespace with this name does not exist". I change the project properties, I changed "Use managed Extensions" from No to Yes, it says Command line error D2016:'/RTC1' and '/clr' command-line options are incompatible.
    Anyone can give a reason of why it is working for all other dll but it does not work for system.web.dll? And how to solve this probelm.
    Thanks A lot .
    pom

  2. #2
    Join Date
    Sep 2002
    Location
    14° 39'19.65"N / 121° 1'44.34"E
    Posts
    9,815

    Re: System.Web.Mail problem

    Quote Originally Posted by pompom
    I added refeence to system.web.dll in a VS project, and put "using namespace System::Web::Mail;" in StdAfx.h, but when I buiild solution , it gave me error says "system is not a class or namespace name" and " Mail a namespace with this name does not exist". I change the project properties, I changed "Use managed Extensions" from No to Yes, it says Command line error D2016:'/RTC1' and '/clr' command-line options are incompatible.
    Well, first of all: Is this supposed to be a managed C++ app, using the .NET framework, or native C++?

  3. #3
    Ejaz's Avatar
    Ejaz is offline Elite Member Power Poster
    Join Date
    Jul 2002
    Location
    Lahore, Pakistan
    Posts
    4,211

    Re: System.Web.Mail problem

    [ Moved Thread ]

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