By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,574 Members | 1,157 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,574 IT Pros & Developers. It's quick & easy.

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

P: n/a
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

Feb 13 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On Feb 13, 1:34 am, SheetalGandh...@gmail.com wrote:
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

Feb 14 '07 #2

P: n/a
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
br**********************@hotmail.com
Remove only "_nos_pam"
Feb 14 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.