OK, I was have the huge function, and I was going to break it apart and add sections of it to a new module. In the new module I was going to add a function that took like a dozen variables, I thought that I might make a new class to hold this data, declare it dynamically and send a pointer to that class to the function in the module. It worked first time out.
Dose this sound good, whats the overhead beside the function call? Should the members of the 'data transfer' class be pointers to the real values, and not the values them selves, would that boost speed?
If I dynamically declare something in a constructor, and put the delete command in the destructor, do I have to implicetly call the destructor, or dose it get called with the program exits?