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. Compile/Link Work, Code Doesn't

Compile/Link Work, Code Doesn't

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpquestion
3 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.
  • K Offline
    K Offline
    KenWill
    wrote on last edited by
    #1

    I'm building a normal set of .h and .cpp code files using VAC++ 6.0 with all the latest fix packs installed. I've run into a real progress stumper. The code compiles fine but when I try to run a test the items declared in the .h file are not found in the .cpp file. I've compared the settings to many other projects that work fine and I've never seen this type of problem before. Suggestions? class CSapRfc // .h file down to minimum { public:... private:... bool bSapFunctionsAdded; // Easy enough to declare }; bool CSapRfc::OnLogon() // .cpp file down to minimum { bSapFunctionsAdded = false; // this statement blows up! } Ken

    M 1 Reply Last reply
    0
    • K KenWill

      I'm building a normal set of .h and .cpp code files using VAC++ 6.0 with all the latest fix packs installed. I've run into a real progress stumper. The code compiles fine but when I try to run a test the items declared in the .h file are not found in the .cpp file. I've compared the settings to many other projects that work fine and I've never seen this type of problem before. Suggestions? class CSapRfc // .h file down to minimum { public:... private:... bool bSapFunctionsAdded; // Easy enough to declare }; bool CSapRfc::OnLogon() // .cpp file down to minimum { bSapFunctionsAdded = false; // this statement blows up! } Ken

      M Offline
      M Offline
      marinme
      wrote on last edited by
      #2

      What's the error message you are getting about that line?

      K 1 Reply Last reply
      0
      • M marinme

        What's the error message you are getting about that line?

        K Offline
        K Offline
        KenWill
        wrote on last edited by
        #3

        :sigh:Thank you for the response and question. However, I resolved it this morning by changeing from CSapRfc mSapRfc; to CSapRfc * new = CSapRfc; and associated changes. I suppose that is what I get from trying to work with a recent brain injury. Makes things much more difficult to see side issues. ken

        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