Search:

Type: Posts; User: p3p

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,697

    im sorry 7stud i should of stated that it was...

    im sorry 7stud i should of stated that it was pseudo code,

    thanks for all you help,

    p3p
  2. Replies
    4
    Views
    1,697

    vector of derived classes

    hi, i am wondering how to do this or a similar implementation

    eg.


    class shape{}
    class square : public shape{}
    class triangle : public shape{}

    std::vector<shape> vector;
  3. Replies
    3
    Views
    753

    thanks for the explanation daved, now to go see...

    thanks for the explanation daved, now to go see if i can fix it :), my font class releases the font when the Form class is deconstructed, so bad things happen

    p3p
  4. Replies
    3
    Views
    753

    Vector Class calling deconstructer

    hi, im writing a gui for my 2d engine(sdl powered) and hit snag, it apears that each time i add a form class to the vector the deconstructer of every item in the vector is called,

    why is this?...
  5. Replies
    6
    Views
    1,405

    well i wrote a inifile handling class and still...

    well i wrote a inifile handling class and still had the same error until i added


    bool PINIFile::active()
    {
    int i=0;
    if(inifile.is_open() && inifile.good()){ return true; }
    ...
  6. Replies
    6
    Views
    1,405

    ok traced it to the file not staying open...

    ok traced it to the file not staying open sumtimes, made the program check and try reopening it 10 times with a 500ms delay between atemps n it still fails, will get back 2 it later need sleep
  7. Replies
    6
    Views
    1,405

    thank you, i will convert to ifstream, the...

    thank you,
    i will convert to ifstream, the function is more then 200 lines long and is dependant on a fair amount of other custom functions and classes so posting compilable code wouldnt be...
  8. Replies
    6
    Views
    1,405

    reading file weird access violation

    the following is a part of my sprite loading function,
    using vc++ .net 7

    running in the debuger and running the debug exe it runs perfectly, running the release exe from the debuger runs...
Results 1 to 8 of 8