Scott MacMaster
March 24th, 2003, 12:11 AM
I'm working on porting a program from VC++ 6 to C++ .NET. I currently have 2 problems in doing so.
One problem involves the iostream library. My code uses one of the constructor for fstream that takes a file descriptor (as an int). The iostream library in C++ .NET does not seem to have this constructor. How can I instantiate a fstream object using a file descriptor?
The other problem arises because the program uses files in several different folders. One folder is a common folder that contains code used by several programs. I can't seem to find a place in C++ .NET to specify include paths. I could probably deal with this by using macros and other preprocessor commands but any such attempt will require changing a lot of lines of code and require numerous hours of work. I can't believe Microsoft would drop a feature that is practically a requirement for an IDE. Espacially since it would break a lot of programs that is being ported from C++ 6 to C++ .NET. Does someone know how to set include paths in C++ .NET?
Thanks
One problem involves the iostream library. My code uses one of the constructor for fstream that takes a file descriptor (as an int). The iostream library in C++ .NET does not seem to have this constructor. How can I instantiate a fstream object using a file descriptor?
The other problem arises because the program uses files in several different folders. One folder is a common folder that contains code used by several programs. I can't seem to find a place in C++ .NET to specify include paths. I could probably deal with this by using macros and other preprocessor commands but any such attempt will require changing a lot of lines of code and require numerous hours of work. I can't believe Microsoft would drop a feature that is practically a requirement for an IDE. Espacially since it would break a lot of programs that is being ported from C++ 6 to C++ .NET. Does someone know how to set include paths in C++ .NET?
Thanks