Link to home
Start Free TrialLog in
Avatar of jfz2004
jfz2004

asked on

How to port C++ from Unix to Window .Net C++ system?

Hi,

I need to port a large C++ system on unix (built a long time ago)
into Visual C++ on windows XP (.NET).

There are many subdirectories in that system. It can't not even
find iostream.h in Visual Studio. How  shall I do it properly?

Thanks a lot.

Jennifer Zhou
Avatar of NetworkArchitek
NetworkArchitek

Hi jfz2004,
This is actually a big topic and can be quite complex or very simple depending on your application. But to fix that issue, the easiest way is to simply do
#include <iostream>
using namespace std;

That should stop problems when using stuff from standard library.

Cheers!
Avatar of jfz2004

ASKER

Thanks so much. I will try that.

Do you also have some ideas on how to treat subdirectories?
Is it better to make them dlls or just  leave sub-dirs as they are?

Jennifer Zhou
Avatar of jfz2004

ASKER

Hi,

I just tried using namespace std; but the compiler says:
'std' : a namespace with this name does not exist.

Did I miss anything here?

Thanks,

Jennifer
Avatar of jfz2004

ASKER

Please ignore my last post. It's my fault. I placed
"using namespace std" before #include <iostream.h>.

But in C# I always put using... at the very begining. Why is
it different here?
ASKER CERTIFIED SOLUTION
Avatar of drichards
drichards

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial