Using System.IO in a VC.NET Win32 console application

  • Thread starter Thread starter SheetalGandhi24
  • Start date Start date
S

SheetalGandhi24

Hi

I need to use the System.IO namespace in the Win32 console
application. Any clues for doing the same?
Basically, I need to load the files of a particular folder in an
array. I need to do this in a VC++.NET Win32 console application. I am
very new to using VC++.
Can anyone please help?

Thanks in anticipation,
Silky
 
Hi

I need to use the System.IO namespace in the Win32 console
application. Any clues for doing the same?
Basically, I need to load the files of a particular folder in an
array. I need to do this in a VC++.NET Win32 console application. I am
very new to using VC++.
Can anyone please help?

Thanks in anticipation,
Silky


Sorry no help, but I am told that System.IO namespace is not a
beginner's topic, but is an advanced topic. Good luck.

RL
 
I need to use the System.IO namespace in the Win32 console
application. Any clues for doing the same?
Basically, I need to load the files of a particular folder in an
array. I need to do this in a VC++.NET Win32 console application. I am
very new to using VC++.
Can anyone please help?

Hi,
Are there specific reasons you want to use a win32 console app instead of a
CLR console app?
Because that would use the System.IO namespace automatically.

If you cannot do that
- rightclick your project
- select properties
- enable 'common language runtime' support in the config properties -
general tab
- rightclick your project
- select 'references'
- add a .NET reference to 'System'

in your cpp file add
using namespace System;
using namespace System::IO;

and then you can simply do things like
Console::WriteLine(L"test");

--

Kind regards,
Bruno van Dooren
(e-mail address removed)
Remove only "_nos_pam"
 
Back
Top