Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Upgraded to 2005, now my code is broke. PLEASE HELP!

Upgraded to 2005, now my code is broke. PLEASE HELP!

Scheduled Pinned Locked Moved C / C++ / MFC
helpcsharpc++visual-studiotutorial
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Dustin Henry
    wrote on last edited by
    #1

    I recently upgraded from Microsoft Visual Studio 2003 to 2005, and now my project won't compile, and I have no idea how to fix it. The code that is broken: // Copy Constructor CImageManager(const &CImageManager); // Assinment Operator CImageManager operator = (const &CImageManager); The error I recieve is: 1>c:\programming\programming\programs\calypso\imagemanager.h(44) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int These constructors are declared as private in a class so that only one instance can be created. This is happening with about 12 other files/classes as well. Please let me know if anyone knows what is wrong with my syntax and why this all of a sudden changed in the new version of visual studio. Thanks in advance, Dustin

    M 1 Reply Last reply
    0
    • D Dustin Henry

      I recently upgraded from Microsoft Visual Studio 2003 to 2005, and now my project won't compile, and I have no idea how to fix it. The code that is broken: // Copy Constructor CImageManager(const &CImageManager); // Assinment Operator CImageManager operator = (const &CImageManager); The error I recieve is: 1>c:\programming\programming\programs\calypso\imagemanager.h(44) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int These constructors are declared as private in a class so that only one instance can be created. This is happening with about 12 other files/classes as well. Please let me know if anyone knows what is wrong with my syntax and why this all of a sudden changed in the new version of visual studio. Thanks in advance, Dustin

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      This worked in VS 2003? // Copy Constructor CImageManager(const &CImageManager); // Assinment Operator CImageManager operator = (const &CImageManager); I thought it should be: // Copy Constructor CImageManager(const CImageManager &); // Assinment Operator CImageManager operator = (const CImageManager &);

      D 1 Reply Last reply
      0
      • M Mark Salsbery

        This worked in VS 2003? // Copy Constructor CImageManager(const &CImageManager); // Assinment Operator CImageManager operator = (const &CImageManager); I thought it should be: // Copy Constructor CImageManager(const CImageManager &); // Assinment Operator CImageManager operator = (const CImageManager &);

        D Offline
        D Offline
        Dustin Henry
        wrote on last edited by
        #3

        Why does Microsoft have to go and fix things so not to allow my bad coding practices. Yes, I just tried this and it fixes the problem. You are a life saver. If I ever meet you, the beer is on me.

        M 1 Reply Last reply
        0
        • D Dustin Henry

          Why does Microsoft have to go and fix things so not to allow my bad coding practices. Yes, I just tried this and it fixes the problem. You are a life saver. If I ever meet you, the beer is on me.

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          mmmm ... beer :) Cheers!

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups