Results 1 to 5 of 5

Thread: Passing Framework as Parameter:Please reply

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    Passing Framework as Parameter:Please reply

    hi

    i am having problem in following Line

    i have shown in RED

    public static void DisplaySwitchingToRefWarning(Framework framework, string sampleTitle)

    Error is:

    The type or namespace name 'Framework' could not be found (are you missing a using directive or an assembly reference?)


    I have added aFrameWork Reference still this error comes

    I am sending this question since many days

    Please reply

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Passing Framework as Parameter:Please reply

    You either haven't added a reference to the assembly that contains the class to your project, or else you haven't imported the namespace of which the class is a member with a 'using' statement. If you have added the reference then you either need to import the namespace or qualify the class name in code with the namespace.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    Re: Passing Framework as Parameter:Please reply

    I have added reference Microsoft.Build.Framework

    also
    directive

    using Microsoft.Build;

    Still it says same problem.

    I double clicked on References->Microsoft.Build.Framework in Solution Explorere

    but there is no Types like Frame work.


    Is there any other reasons



    Quote Originally Posted by jmcilhinney
    You either haven't added a reference to the assembly that contains the class to your project, or else you haven't imported the namespace of which the class is a member with a 'using' statement. If you have added the reference then you either need to import the namespace or qualify the class name in code with the namespace.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Jan 2006
    Location
    Bangalore
    Posts
    172

    Re: Passing Framework as Parameter:Please reply

    Actually Problem is in the file

    C:\Program Files\Microsoft DirectX 9.0 SDK (February 2005)\Samples\Managed\Common and select the dxmutmisc.cs file.

    So if u have DirectX installed u can check this..




    Quote Originally Posted by jmcilhinney
    You either haven't added a reference to the assembly that contains the class to your project, or else you haven't imported the namespace of which the class is a member with a 'using' statement. If you have added the reference then you either need to import the namespace or qualify the class name in code with the namespace.

  5. #5
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Passing Framework as Parameter:Please reply

    What is the fully qualified name of the class you are trying to use? If you've added a reference to the Microsoft.Build.Framework assembly then I very much doubt that you're using a class of that same name, so importing the Microsoft.Build namespace and specifying a class named Framework is not likely to produce the result you want.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

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