Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / December 2004

Tip: Looking for answers? Try searching our database.

Error in reading Console

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Amrro - 28 Dec 2004 11:05 GMT
Hi,

I am trying to use a old written code by one of my senior, It is a console
application to append two files. I need to make some necessary changes in
the application, but when I try to write Console::ReadLine(), its throwing
some error

d:\Projects\myappend\append.cpp(252): error C2653: 'console' : is not a
class or namespace name,

I don't know what is wrong in this and why such errors are occurring in the
code.

Please help me, which library I need to use? if there are any changes in
project properties then please let me know.

Thanks a lot
Amrro
Carl Daniel [VC++ MVP] - 28 Dec 2004 14:29 GMT
> Hi,
>
[quoted text clipped - 11 lines]
> Please help me, which library I need to use? if there are any changes
> in project properties then please let me know.

It sounds like you're trying to use .NET classes in a native (unmanaged) C
or C++ application.  How does the existing code write to the console?  Look
for calls to printf(), fprintf(), puts(), fputs(), or use of the C++ object
cout or cerr (or std::cout or std::cerr).

If the original code is unmanaged, you're probably better off making your
changes unmanaged as well rather than trying to bolt on some managed code
for a minor modification.

-cd
Vladimir Nesterovsky - 28 Dec 2004 18:36 GMT
> I am trying to use a old written code by one of my senior, It is a console
> application to append two files. I need to make some necessary changes in
[quoted text clipped - 9 lines]
> Please help me, which library I need to use? if there are any changes in
> project properties then please let me know.

Check a case please. Not a 'console', but 'Console'.
Make sure you have 'using System;' statement at the top.
--
Vladimir Nesterovsky
e-mail: vladimir@nesterovsky-bros.com
home: http://www.nesterovsky-bros.com

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.