AssemblyInfo.cpp & Resource.h ***MISSING***

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    #1

    AssemblyInfo.cpp & Resource.h ***MISSING***

    Hello,

    I really need help. I use C++ VisualStudio.ne t version 2002. I
    tried to create a very simple console app. However, it won't compile, then I
    found out that I am missing two important files that pre-load when you create
    a Console Application, AssemblyInfo.cp p and Resource.h files. According to
    the long search I did, these files help compile statements like
    Console::WriteL ine() or int _tmain(). I tried repariing it but it still
    won't load. I was wondering if any one of you could tell me what I could do.
  • Jochen Kalmbach [MVP]

    #2
    Re: AssemblyInfo.cp p & Resource.h ***MISSING***

    Hi David!
    [color=blue]
    > I really need help. I use C++ VisualStudio.ne t version 2002. I
    > tried to create a very simple console app. However, it won't compile, then I
    > found out that I am missing two important files that pre-load when you create
    > a Console Application, AssemblyInfo.cp p and Resource.h files. According to
    > the long search I did, these files help compile statements like
    > Console::WriteL ine() or int _tmain().[/color]

    No.

    First you need to decide what you want to do:
    1. Managed C++ application (=> needs the .Net-Framework on the target
    computer and you can use constructus like "Console::Write Line()"
    2. Unmanaged (native) c++ (=> needs "nothing" and you can use constructs
    like "printf")
    [color=blue]
    > I tried repariing it but it still
    > won't load. I was wondering if any one of you could tell me what I could do.[/color]

    If you want to create a managed app, you need to add a reference to
    mscorlib.dll
    To create a managed console app go to "File|New|Proje ct|Visual
    C++|Console Application (.NET)"

    To create an unamaged (native) C++ console app go to
    "File|New|Proje ct|Visual C++|Win32 Console Project"

    The main difference between these tow is the useage of the "/clr"
    compiler flag.

    --
    Greetings
    Jochen

    My blog about Win32 and .NET

    Comment

    • David

      #3
      Re: AssemblyInfo.cp p & Resource.h ***MISSING***

      This is exactly what I do and this is the problem I get. I want to create a
      new Console Application. So I click on new projects, then I click on Win32
      application. window pops up then I click on settings and click on "Console
      Application." after that I click on finish. Now, comapred to the book there
      are several files that I need that arne't showing up.

      For some reason I don't have Console Application (.net) as a selection. I
      only have Win32applicatio n. Then I choose Console Application. I don't know
      what you call it but when I copy the Hello world code from the book, when the
      code builds, theres an error. And I traced the error to the files that are
      missing which are AssemblyInfo.cp p & resource.h.

      "Jochen Kalmbach [MVP]" wrote:
      [color=blue]
      > Hi David!
      >[color=green]
      > > I really need help. I use C++ VisualStudio.ne t version 2002. I
      > > tried to create a very simple console app. However, it won't compile, then I
      > > found out that I am missing two important files that pre-load when you create
      > > a Console Application, AssemblyInfo.cp p and Resource.h files. According to
      > > the long search I did, these files help compile statements like
      > > Console::WriteL ine() or int _tmain().[/color]
      >
      > No.
      >
      > First you need to decide what you want to do:
      > 1. Managed C++ application (=> needs the .Net-Framework on the target
      > computer and you can use constructus like "Console::Write Line()"
      > 2. Unmanaged (native) c++ (=> needs "nothing" and you can use constructs
      > like "printf")
      >[color=green]
      > > I tried repariing it but it still
      > > won't load. I was wondering if any one of you could tell me what I could do.[/color]
      >
      > If you want to create a managed app, you need to add a reference to
      > mscorlib.dll
      > To create a managed console app go to "File|New|Proje ct|Visual
      > C++|Console Application (.NET)"
      >
      > To create an unamaged (native) C++ console app go to
      > "File|New|Proje ct|Visual C++|Win32 Console Project"
      >
      > The main difference between these tow is the useage of the "/clr"
      > compiler flag.
      >
      > --
      > Greetings
      > Jochen
      >
      > My blog about Win32 and .NET
      > http://blog.kalmbachnet.de/
      >[/color]

      Comment

      • Severian [MVP]

        #4
        Re: AssemblyInfo.cp p & Resource.h ***MISSING***

        On Tue, 19 Jul 2005 10:38:17 -0700, "David"
        <David@discussi ons.microsoft.c om> wrote:
        [color=blue]
        >This is exactly what I do and this is the problem I get. I want to create a
        >new Console Application. So I click on new projects, then I click on Win32
        >application. window pops up then I click on settings and click on "Console
        >Application. " after that I click on finish. Now, comapred to the book there
        >are several files that I need that arne't showing up.
        >
        >For some reason I don't have Console Application (.net) as a selection. I
        >only have Win32applicatio n. Then I choose Console Application. I don't know
        >what you call it but when I copy the Hello world code from the book, when the
        >code builds, theres an error. And I traced the error to the files that are
        >missing which are AssemblyInfo.cp p & resource.h.[/color]

        In .NET 2003, when you create a new project, one of those listed for
        the category ".NET" is "Console Application." I skipped 2002, so I
        don't know if they are organized the same way.

        --
        Phillip Crews aka Severian
        Microsoft MVP, Windows SDK
        Posting email address is real, but please post replies on the newsgroup.

        Comment

        • David

          #5
          Re: AssemblyInfo.cp p &amp; Resource.h ***MISSING***

          In 2002, there is no console app icon. You have to turn it on in the win32
          settings.

          "Severian [MVP]" wrote:
          [color=blue]
          > On Tue, 19 Jul 2005 10:38:17 -0700, "David"
          > <David@discussi ons.microsoft.c om> wrote:
          >[color=green]
          > >This is exactly what I do and this is the problem I get. I want to create a
          > >new Console Application. So I click on new projects, then I click on Win32
          > >application. window pops up then I click on settings and click on "Console
          > >Application. " after that I click on finish. Now, comapred to the book there
          > >are several files that I need that arne't showing up.
          > >
          > >For some reason I don't have Console Application (.net) as a selection. I
          > >only have Win32applicatio n. Then I choose Console Application. I don't know
          > >what you call it but when I copy the Hello world code from the book, when the
          > >code builds, theres an error. And I traced the error to the files that are
          > >missing which are AssemblyInfo.cp p & resource.h.[/color]
          >
          > In .NET 2003, when you create a new project, one of those listed for
          > the category ".NET" is "Console Application." I skipped 2002, so I
          > don't know if they are organized the same way.
          >
          > --
          > Phillip Crews aka Severian
          > Microsoft MVP, Windows SDK
          > Posting email address is real, but please post replies on the newsgroup.
          >[/color]

          Comment

          • David

            #6
            Re: AssemblyInfo.cp p &amp; Resource.h ***MISSING***

            In 2002, there is no Console Application icon, in the selection screen. You
            have to turn it on in the the win32 settings.

            "Severian [MVP]" wrote:
            [color=blue]
            > On Tue, 19 Jul 2005 10:38:17 -0700, "David"
            > <David@discussi ons.microsoft.c om> wrote:
            >[color=green]
            > >This is exactly what I do and this is the problem I get. I want to create a
            > >new Console Application. So I click on new projects, then I click on Win32
            > >application. window pops up then I click on settings and click on "Console
            > >Application. " after that I click on finish. Now, comapred to the book there
            > >are several files that I need that arne't showing up.
            > >
            > >For some reason I don't have Console Application (.net) as a selection. I
            > >only have Win32applicatio n. Then I choose Console Application. I don't know
            > >what you call it but when I copy the Hello world code from the book, when the
            > >code builds, theres an error. And I traced the error to the files that are
            > >missing which are AssemblyInfo.cp p & resource.h.[/color]
            >
            > In .NET 2003, when you create a new project, one of those listed for
            > the category ".NET" is "Console Application." I skipped 2002, so I
            > don't know if they are organized the same way.
            >
            > --
            > Phillip Crews aka Severian
            > Microsoft MVP, Windows SDK
            > Posting email address is real, but please post replies on the newsgroup.
            >[/color]

            Comment

            Working...