How to build a project in Visual C++.net developed in Visual C++ 6

Hi, 
I am Nageshwar. I have developed a project in VC++ 6.0 and OpenGL. I have 
installed VC++.net in my system. When I compile and build the same code in 
VC++.net environment, I am getting errors. I have used fstream.h to read and 
write to files. But this header file is showing errors in VC++.net. I have 
used iostrea.h header. This is also showing erros. I think I need to use a 
different version of headers. Please suggest me how to recover from these 
errors. Which header file I have use instead of fstream.h header? etc.,
Thanks for all who help me..
Awaiting an early response,
Nageshwar Rao
0
8/4/2005 10:51:01 AM
vc.mfc 33608 articles. 0 followers. Follow

7 Replies
1293 Views

Similar Articles

[PageSpeed] 46

Hi Nagelshwar,

You need to change the line

#include <iostrea.h>

to

#include <iostream>

Cheers,
Nils

On Thu, 4 Aug 2005 03:51:01 -0700, "Nageshwar Rao"
<NageshwarRao@discussions.microsoft.com> wrote:

>Hi, 
>I am Nageshwar. I have developed a project in VC++ 6.0 and OpenGL. I have 
>installed VC++.net in my system. When I compile and build the same code in 
>VC++.net environment, I am getting errors. I have used fstream.h to read and 
>write to files. But this header file is showing errors in VC++.net. I have 
>used iostrea.h header. This is also showing erros. I think I need to use a 
>different version of headers. Please suggest me how to recover from these 
>errors. Which header file I have use instead of fstream.h header? etc.,
>Thanks for all who help me..
>Awaiting an early response,
>Nageshwar Rao

0
ndesle (7)
8/4/2005 11:06:00 AM
Hi Nils Desli,
I have changed that. Still I am unable to build. I have changed <iostream.h> 
to <iostream> and <fstream.h> to <fstream>. I have used "ifstream and 
ofstream classes" in my project which are defined in fstream.h file in VC++ 
6.0. Even after changing ifstream and ofstream classes are not recognized and 
the compiler shows errors as "ifstream undefined". Please suggest remedy for 
this.
Thanks for helping me,
Awaiting an early response,
Nageshwar Rao

"Nils Desli" wrote:

> Hi Nagelshwar,
> 
> You need to change the line
> 
> #include <iostrea.h>
> 
> to
> 
> #include <iostream>
> 
> Cheers,
> Nils
> 
> On Thu, 4 Aug 2005 03:51:01 -0700, "Nageshwar Rao"
> <NageshwarRao@discussions.microsoft.com> wrote:
> 
> >Hi, 
> >I am Nageshwar. I have developed a project in VC++ 6.0 and OpenGL. I have 
> >installed VC++.net in my system. When I compile and build the same code in 
> >VC++.net environment, I am getting errors. I have used fstream.h to read and 
> >write to files. But this header file is showing errors in VC++.net. I have 
> >used iostrea.h header. This is also showing erros. I think I need to use a 
> >different version of headers. Please suggest me how to recover from these 
> >errors. Which header file I have use instead of fstream.h header? etc.,
> >Thanks for all who help me..
> >Awaiting an early response,
> >Nageshwar Rao
> 
> 
0
8/4/2005 11:55:08 AM
these classes are in the std namespace.  Did you qualify them with std::, or specify using namespace 
std ?

"Nageshwar Rao" <NageshwarRao@discussions.microsoft.com> wrote in message 
news:FCD97475-7133-4184-A168-3E6F81728A2E@microsoft.com...
> Hi Nils Desli,
> I have changed that. Still I am unable to build. I have changed <iostream.h>
> to <iostream> and <fstream.h> to <fstream>. I have used "ifstream and
> ofstream classes" in my project which are defined in fstream.h file in VC++
> 6.0. Even after changing ifstream and ofstream classes are not recognized and
> the compiler shows errors as "ifstream undefined". Please suggest remedy for
> this.
> Thanks for helping me,
> Awaiting an early response,
> Nageshwar Rao
>
> "Nils Desli" wrote:
>
>> Hi Nagelshwar,
>>
>> You need to change the line
>>
>> #include <iostrea.h>
>>
>> to
>>
>> #include <iostream>
>>
>> Cheers,
>> Nils
>>
>> On Thu, 4 Aug 2005 03:51:01 -0700, "Nageshwar Rao"
>> <NageshwarRao@discussions.microsoft.com> wrote:
>>
>> >Hi,
>> >I am Nageshwar. I have developed a project in VC++ 6.0 and OpenGL. I have
>> >installed VC++.net in my system. When I compile and build the same code in
>> >VC++.net environment, I am getting errors. I have used fstream.h to read and
>> >write to files. But this header file is showing errors in VC++.net. I have
>> >used iostrea.h header. This is also showing erros. I think I need to use a
>> >different version of headers. Please suggest me how to recover from these
>> >errors. Which header file I have use instead of fstream.h header? etc.,
>> >Thanks for all who help me..
>> >Awaiting an early response,
>> >Nageshwar Rao
>>
>> 


0
ScotB (233)
8/4/2005 12:30:24 PM
Dear Scot Brennecke,
I have specified "using namespace std;" as the very first executable line. 
Yet I am unable to build the project. Please help me further.
Thanks for the help,
Regards,
Nageshwar Rao

"Scot T Brennecke" wrote:

> these classes are in the std namespace.  Did you qualify them with std::, or specify using namespace 
> std ?
> 
> "Nageshwar Rao" <NageshwarRao@discussions.microsoft.com> wrote in message 
> news:FCD97475-7133-4184-A168-3E6F81728A2E@microsoft.com...
> > Hi Nils Desli,
> > I have changed that. Still I am unable to build. I have changed <iostream.h>
> > to <iostream> and <fstream.h> to <fstream>. I have used "ifstream and
> > ofstream classes" in my project which are defined in fstream.h file in VC++
> > 6.0. Even after changing ifstream and ofstream classes are not recognized and
> > the compiler shows errors as "ifstream undefined". Please suggest remedy for
> > this.
> > Thanks for helping me,
> > Awaiting an early response,
> > Nageshwar Rao
> >
> > "Nils Desli" wrote:
> >
> >> Hi Nagelshwar,
> >>
> >> You need to change the line
> >>
> >> #include <iostrea.h>
> >>
> >> to
> >>
> >> #include <iostream>
> >>
> >> Cheers,
> >> Nils
> >>
> >> On Thu, 4 Aug 2005 03:51:01 -0700, "Nageshwar Rao"
> >> <NageshwarRao@discussions.microsoft.com> wrote:
> >>
> >> >Hi,
> >> >I am Nageshwar. I have developed a project in VC++ 6.0 and OpenGL. I have
> >> >installed VC++.net in my system. When I compile and build the same code in
> >> >VC++.net environment, I am getting errors. I have used fstream.h to read and
> >> >write to files. But this header file is showing errors in VC++.net. I have
> >> >used iostrea.h header. This is also showing erros. I think I need to use a
> >> >different version of headers. Please suggest me how to recover from these
> >> >errors. Which header file I have use instead of fstream.h header? etc.,
> >> >Thanks for all who help me..
> >> >Awaiting an early response,
> >> >Nageshwar Rao
> >>
> >> 
> 
> 
> 
0
8/4/2005 1:01:06 PM
I had exactly the same problem,

Using <fstream> instead of <fstream.h> and adding
using namespace std;
just behind the #include line did the job for me ...

0
8/4/2005 1:23:27 PM
Perhaps, if you would send me enough of your source code, in an e-mail, I could observe the problem 
on my own machine, and then discover the answer.

For my e-mail address, remove the spaces, and substitute punctuation as appropriate:
S c o t B  at  M V P s  dot  o r g

"Nageshwar Rao" <NageshwarRao@discussions.microsoft.com> wrote in message 
news:43801765-6E88-46A2-973A-BB65939D9FE1@microsoft.com...
> Dear Scot Brennecke,
> I have specified "using namespace std;" as the very first executable line.
> Yet I am unable to build the project. Please help me further.
> Thanks for the help,
> Regards,
> Nageshwar Rao
>
> "Scot T Brennecke" wrote:
>
>> these classes are in the std namespace.  Did you qualify them with std::, or specify using 
>> namespace
>> std ?
>>
>> "Nageshwar Rao" <NageshwarRao@discussions.microsoft.com> wrote in message
>> news:FCD97475-7133-4184-A168-3E6F81728A2E@microsoft.com...
>> > Hi Nils Desli,
>> > I have changed that. Still I am unable to build. I have changed <iostream.h>
>> > to <iostream> and <fstream.h> to <fstream>. I have used "ifstream and
>> > ofstream classes" in my project which are defined in fstream.h file in VC++
>> > 6.0. Even after changing ifstream and ofstream classes are not recognized and
>> > the compiler shows errors as "ifstream undefined". Please suggest remedy for
>> > this.
>> > Thanks for helping me,
>> > Awaiting an early response,
>> > Nageshwar Rao
>> >
>> > "Nils Desli" wrote:
>> >
>> >> Hi Nagelshwar,
>> >>
>> >> You need to change the line
>> >>
>> >> #include <iostrea.h>
>> >>
>> >> to
>> >>
>> >> #include <iostream>
>> >>
>> >> Cheers,
>> >> Nils
>> >>
>> >> On Thu, 4 Aug 2005 03:51:01 -0700, "Nageshwar Rao"
>> >> <NageshwarRao@discussions.microsoft.com> wrote:
>> >>
>> >> >Hi,
>> >> >I am Nageshwar. I have developed a project in VC++ 6.0 and OpenGL. I have
>> >> >installed VC++.net in my system. When I compile and build the same code in
>> >> >VC++.net environment, I am getting errors. I have used fstream.h to read and
>> >> >write to files. But this header file is showing errors in VC++.net. I have
>> >> >used iostrea.h header. This is also showing erros. I think I need to use a
>> >> >different version of headers. Please suggest me how to recover from these
>> >> >errors. Which header file I have use instead of fstream.h header? etc.,
>> >> >Thanks for all who help me..
>> >> >Awaiting an early response,
>> >> >Nageshwar Rao
>> >>
>> >>
>>
>>
>> 


0
ScotB (233)
8/4/2005 1:25:02 PM
Check these sites out:
http://search.microsoft.com/search/results.aspx?qu=differences+iostream+implementation&View=msdn&st=b&c=0&s=1&swc=0

"Nageshwar Rao" <NageshwarRao@discussions.microsoft.com> wrote in message 
news:619B024E-BCE8-4976-85F5-14FDF074FC33@microsoft.com...
> Hi,
> I am Nageshwar. I have developed a project in VC++ 6.0 and OpenGL. I have
> installed VC++.net in my system. When I compile and build the same code in
> VC++.net environment, I am getting errors. I have used fstream.h to read 
> and
> write to files. But this header file is showing errors in VC++.net. I have
> used iostrea.h header. This is also showing erros. I think I need to use a
> different version of headers. Please suggest me how to recover from these
> errors. Which header file I have use instead of fstream.h header? etc.,
> Thanks for all who help me..
> Awaiting an early response,
> Nageshwar Rao 


0
8/4/2005 9:24:50 PM
Reply:

Similar Artilces:

c:/temp/FixEngine folder created
Hi everyone. I've noticed a new folder created on November 16, 2006 called c:/temp. Inside this folder is a folder called FixEngine which is empty. I have found no information yet on Microsoft.com website about it's creation. Does anyone know what created these folders and is it safe to delete c:/temp or c:temp/FixEngine. You�ve landed in a Mac Office group. Sorry, you'll have to ask somewhere else--I assume a Windows forum. On 11/21/06 6:13 PM, "Vince" wrote: > Hi everyone. I've noticed a new folder created on November 16, 2006 called > c:/temp. Ins...

SOAP, PHP, RPC and C# .Net
Hey Folks, I have an app that calls a webservice written in PHP. I have referenced the WSDL and when sending data to the server, methods like following work fine: soapservice MySoap=new soapservice (); MySoap.search("arg1","arg2"); However, when I need to receive data from the server or extract results, I am not sure what to do. None of the methods list any data type returns. Of course, I know what should be returned and we had been using "RPCResult" and XML documents from a SoapReader in VB6. Assuming I am going to retrieve an RPCRe...

Having Windows Live Mail also accessible on net
I use Windows Live Mail as my email pop3 account for mail. My question is why, when I go to another computer, use the net, go to WLM, use the same name and password, do I not find the same emails, saved to be able to access them while away from home? 2nd Question: What is the address to access the Microsoft forums that are replacing their newsgroup service? That feature is known as message syncing, i.e., keeping the messages for that account mirrored the same on all computers accessing that mail account. The common POP3 mail protocol does no syncing, To get true syncing you...

Essbase Developer v11
Opportunity: Essbase Developer v11 Many of the candidates that I have coming forward have only Hyperion Financial Planning / Reporting experience. Relative to v11 experience, they=92ve been using the upgrade tool. This leaves them with a large gap compared to truly developing and optimizing their own, custom developed cubes. Similarly, their Studio experience is frequently limited to deploying the cubes rather than truly designing and optimizing the cubes. So cube development or optimizing experience is a MUST. If you have anyone else with the above details. Please le...

KeyDown messages lost with .NET message loop
Hi, We're developing an application that has some .NET and some MFC components. Currently the application is started as an MFC application, but using a managed message loop (invoking Application::Run() in MFC's application class). With this configuration we experience some problems with keyboard messages. For example, some WM_KEYDOWN messages (for example for arrow keys) does not make it through to the MFC window class. I've registered a message filter to the Application class and I can see the message being received with the correct HWND handle. For some reason, this message...

Outlook express in XP with IE 6
My wife had an XP IE6 computer with Outlook Express. Well, I got her a new computer with IE 8 and Windows 7 but now she can't access her emails. Any help would be much appreciated. Ricku\y wrote: > My wife had an XP IE6 computer with Outlook Express. Well, I got her a new > computer with IE 8 and Windows 7 but now she can't access her emails. Any > help would be much appreciated. Windows 7 doesn't include an e-mail client. You'll have to pick one and install it. When it was supported, OE came bundled with IE. OE has long been unsupported. It...

ANN: nxslt.exe (.NET XSLT Command Line Utility) version 1.5
Hello! I'm glad to announce version 1.5 of the nxslt.exe - .NET XSLT command line utility. What is nxslt ------------- nxslt is a feature-rich command line utility that allows to perform XSL Transformations (XSLT) using .NET Framework's XSLT implementation - System.Xml.Xsl.XslTransform class. nxslt is compatible with command line options, provided by Microsoft's MSXSL.EXE Command Line Transformation Utility. In addition, nxslt has some distinct advanced features, like support for XInclude and XPointer, embedded stylesheets, custom URI resolving, multiple result documents, custom ...

exceed projected billings in project accounting at project level
I have had many requests to be able to cap the billings at a project level in Project Accounting instead of at the system level. The last 4 implementations have all requested this. Thanks Ray Nist ---------------- This post is a suggestion for Microsoft, and Microsoft responds to the suggestions with the most votes. To vote for this suggestion, click the "I Agree" button in the message pane. If you do not see the button, follow this link to open the suggestion in the Microsoft Web-based Newsreader and then click "I Agree" in the message pane. http://www.microsoft....

MFC project...
I developed an MFC application in Visual Studio 6. Can I open and work on this project in Visual Studio.Net 2003? If so, how do I do this? Thanks, RABMIssouri2006 > I developed an MFC application in Visual Studio 6. Can I open and work > on this project in Visual Studio.Net 2003? If so, how do I do this? > Just open the .dsp or .dsw in VS2003. It will launch the import wizard and import the project. You will then have a .vcproj and .sln file that are used in VS2003. --- Ajay To add to Ajay's comments... be sure to make a backup first in case you still want to use the ...

owa access in IE 6.0
Running Exchange server 2003 standard on Win 2003 server R2. Can access owa with Firefox but cannot login with IE 6. Can you logon to the basic client with IE 6? Nue "db in ok" <db in ok@discussions.microsoft.com> wrote in message news:6F51333A-8C96-4E1B-9C8D-C910349209FB@microsoft.com... > Running Exchange server 2003 standard on Win 2003 server R2. Can access > owa > with Firefox but cannot login with IE 6. "Nuevo" wrote: > Can you logon to the basic client with IE 6? > > Nue > "db in ok" <db in ok@discussions.micros...

cannot open file 'mfc42.lib' in Visual Studio 2005
I am getting this linker error, "Cannot open file 'mfc42.lib' when attempting to compile a project in Visual Studio 2005. I assumed the problem is a library file compiled in Visual C++6.0. I cannot find the errant library file. Any ideas? Marathoner Was the project from VC6? Maybe check the project configuration - Linker/Input/Additional Dependencies or look at Linker/Command Line and see if the lib is explicitely included in the project. Mark -- Mark Salsbery Microsoft MVP - Visual C++ "marathoner" wrote: > I am getting this linker error, "Ca...

.Net support in MS-CRM
Hi, Does Ms-CRM support development/ customization in any of the .Net languages. TIA Yes and no, depending on what you want to do. On the client side, you're dealing with JavaScript, unless you decide to use client-side assemblies (see http://www.stunnware.com/crm2/topic.aspx?id=CLIENTNETLIB for an example). Server-side development uses the .NET 1.1 Framework, so you can pick your favorite .NET language to implement callouts and workflow assemblies. .NET 2.0 is not supported as the CRM server itself is based on ..NET 1.1. If you're writing a standalone application using ...

Integration Support for Developers
To all the integrators out there who are programming connectors (using the SDK or not) for CRM, what support tools are you using besides this newsgroup and the SDK itself? I feel there's a serious lack of support information out there. I'm wondering if there's anyone else who would like to see a CRM newsgroup for integrators - as this newgroups is almost entirely dedicated to general questions. Cheers, Anil I agree! This newsgroup and the SDK itself are also my only 2 sources of information. Cheers, Fred "Anil" <anil@doesntwork_anti_spam.com> wrote in mess...

Enhance Cash/Credit Card features in BP Project Expense Entry
The BP Project Expense Entry process has a drop-down field for reimburseable expenses for either Cash or Personal Credit Card. Suggestion 1: IF you turn off the automatic posting option and stop the transaction in the PDK module you can see which line items were cash and which were credit card by looking at each individual line item. Enhancement 1: Portal should accumulate the totals for cash and credit. It is impractical to review each line item by clicking on a link and then making notes, etc. The lack of a total for cash/credit makes this feature impractical to use. Suggestion 2:...

Resource Usage (Resource Plan Work vs. Project Plan Work)
In Project Server 2007 Data Analysis... I am trying to get a total of resource usage (work vs. capacity). This is the statement I'm using but not getting a result. IF([Measures].[Work]>NULL,[Measures].[Work]/[Measures].[Capacity],[Measures].[Resource Plan Work]/[Measures].[Capacity]) Pleae help me out. On May 25, 7:15=A0am, MD <M...@discussions.microsoft.com> wrote: > In Project Server 2007 Data Analysis... I am trying to get a total of > resource usage (work vs. capacity). =A0This is the statement I'm using bu= t not > getting a result. > > ...

insert an adobe pdf file into a Publisher project ?
I am trying to create a breeders directory for a cattle association, and several people have sent me advertisements to include. One is in Adobe pdf form and I can't figure out how to insert it without changing it to a jpg. I did change it to jpg form and the advertiser didn't want me to do that; saying it degraded the quality of the print/photo,etc. OK Jeanne <OK Jeanne@discussions.microsoft.com> was very recently heard to utter: > I did change it to jpg form and the advertiser didn't want me to do that; > saying it degraded the quality of the print/photo,etc. I...

Outlook will not open #6
Outlook Express will not open past showing my folders and address book on the left and a blank area where my inbox should be. Eventually it times out and gives me an error message. szAppName : msimn.exe szAppVer : 6.0.2900.2180 szModName : hungapp szModVer : 0.0.0.0 offset : 00000000 C:\DOCUME~1\DAVIDD~1\LOCALS~1\Temp\WER80df.dir00 \msimn.exe.mdmp C:\DOCUME~1\DAVIDD~1\LOCALS~1\Temp\WER80df.dir00 \appcompat.txt Can anyone help? Vexed Dave <anonymous@discussions.microsoft.com> wrote: > Outlook Express will not open past showing my folders and > address book...

Build report of classification transactions
I have a classification and subclasses assigned to transactions. How do I build a report to show only those transactions? -Mike Most reports where it would be relevant allow you to select classifications to be reported in their customization. "Mike Maier" <anonymous@discussions.microsoft.com> wrote in message news:03a301c3d190$2914ca30$a401280a@phx.gbl... > I have a classification and subclasses assigned to > transactions. How do I build a report to show only those > transactions? ...

MS Project Office and PWA
This is a strange problem i am facing. One of the resources is having this problem. He has entered only 8 hours each in PWA for 2 weeks (80 hours). In project plan it shows that he has enetered 8 hours each for 4 weeks(160 hours). Any idea what might be causing this issue. This is just happning to one user and i am very sure that no one is manually updating Project Plan Are the hours being entered in a timesheet or My tasks page. Also, did the resource mark the task 100% complete. if it was a 4 week task and the resource marked 100% complete on it, Project will treat that as planned hou...

Convert access into other developer program
I have developed dictionary in Microsoft Access. I want to make this Dict in C++ or Visual Basic Does anybody have search engine source who can send to me. Thanks very much ...

Best Access to ASP.NET converster
Does anybody know what would the best Microsoft Access to ASP.NET converter is? Thank you, V. -- Desktop Solutions for Small Companies http://www.micromango.com Message posted via http://www.accessmonster.com I'm not aware of any of them being any good. -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no e-mails, please!) "vanleurth" <u13147@uwe> wrote in message news:72f5c6880730b@uwe... > Does anybody know what would the best Microsoft Access to ASP.NET > converter > is? > > Thank you, > > V. > > -- > Desktop Solution...

Can our clients connect to our CRM from the web and see their project?
I understand that I can have my windows authenticated users access the CRM product, but I need to allow clients access some of the resources, but I don't want to have to create windows accounts for them. Is there some means to allow clients to access only their part of the CRM system without having to create Windows accounts for them? -- spam999free@rrohio.com remove 999 in order to email me If you are talking about "CRM Portal" approch then yes, you don't need to create a Windows account for each portal login. This is not out of box. You can take a look at c360, ...

Microsoft Visual C++ Runtime Library??
...

Error: A VBA project object depends on a file
We are running e-enterprise in a citrix environment. I created some custom vba code and installed it with a package file. When I first installed it, I did it through my citrix logon, not on the server. Thinking that was the problem, I re-imported the package on the citrix server this morning. I am still getting the error message on workstations. I checked the KB and could not find much information on this topic. Is there any way to tell what object is causing this error? Is there anyway to surpress it? Can any one offer any suggestions? Thanks. To surpress until you can fix the issue try...

New app, old developer
Wow. Got called by a company ready to move from spreadsheets to Access :) What is the currently preferred app dev for SQL/Access convercing versions? I'm thinking SQL 2005 Express and Access 2003 (unless the connectivity with Access 2007 is recolved...I honestly have no idea). Non-Access FE is not on the table for two reasons: 1. Its all I know as a SQL Server guy.... 2. They know it well enough to make tweaks on their own without paying my rate Just polling the group to see where you would go on this. Thanks! -- Kevin3NF SQL Server dude You want fries with that? http://kevin...