CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    Join Date
    Dec 2008
    Posts
    17

    Re: Can't decipher errors

    I didn't even realize it until you mentioned it there. I don't know why i didn't see it before about the class being in the class. Before i thought "I've done it before why doesn't it work now?" Then i realized they were in the same file not within the class. Thank you. I know it's not the best practice, but it'll take me some time (and some hard learned lessons) to get into the right practice. I've just not been very good at linking classes in separate files. Something about just never clicked for me and i always go lost while doing it.


    What i think i'll do it is make mutators for each of the classes in their files and keep things separate

  2. #17
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Can't decipher errors

    Quote Originally Posted by jenseits View Post
    I know it's not the best practice, but it'll take me some time (and some hard learned lessons) to get into the right practice. I've just not been very good at linking classes in separate files. Something about just never clicked for me and i always go lost while doing it.
    In that case you should drop everything and spend a couple of hours practising with trivial examples - or just put all your current classes into separate files and get them working - until you fully understand the relationship between classes, packages, and directories, and how to compile and run classes in separate files and packages. It's pretty simple once you grasp the basics. But if you leave something like this because you don't quite 'get' it, it can turn into a long-term problem - and you can't afford to be a little vague about this stuff.

    If you want help understanding any of this, just ask - it always looks more complicated than it turns out to be.

    A complex system that works in invariably found to have evolved from a simple system that worked...
    J. Gall
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  3. #18
    Join Date
    Dec 2008
    Posts
    17

    Re: Can't decipher errors

    That's what i'm doing now. I managed to separate everything into its own file, now i'm practicing getting each one to work in the main program one at a time.

Page 2 of 2 FirstFirst 12

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