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
544 Views

Similar Articles

[PageSpeed] 50

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 (234)
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 (234)
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:

.NET Framework installation failed
Installing crm on a outlook client with service pack 2. When it asks to install .net framework it fails and says the following errors. 10:45:42| Error| .NET Framework installation failed.(error = 5) (checkbase.cpp:CCheckBase::Action:279). 10:45:54| Error| .NET Framework installation failed., Error, OK I can attach the log file if necessary. Thank you Please provide the log file and the error reported in the event viewer. Mateus Morato Fantini "crm wanna be tech" <crm wanna be tech@discussions.microsoft.com> wrote in message news:0A4857D8-E4F7-42F3-87F7-1D74A0DE420D@...

Access 2003 Developer Extensions 12-10-07
Where can I download a trial of Access 2003 Developer Extensions? I cannot find it by searching for it. The only items available seem to be for 2007. Thanks. To the best of my knowledge, there's never been a free trial version of the Access 2003 Developer Extensions (which are actually part of Visual Studio Tools for Office 2005 or Visual Studio Tools for Office 2003) -- Doug Steele, Microsoft Access MVP http://I.Am/DougSteele (no private e-mails, please) <robertns5411@gmail.com> wrote in message news:a9614769-881a-44d7-94c6-9964cbbaba05@d61g2000hsa.googlegroups.com... &g...

building a worksheet row by row
I hope somebody can assist. My worksheet calculates rows of data, which I wish to slide into another worksheet and secure; then change the original data, slide those results under the first. Keep repeating. Is there a way to do this without manually pasting values each time? David Dave "Sliding" rows from one sheet to another would involve the use of VBA. See Ron de Bruin's site for moving/copying rows to next available empty rows. http://www.rondebruin.nl/copy1.htm Gord Dibben Excel MVP On Thu, 4 Nov 2004 14:04:03 -0800, "DaveButcher" <DaveButcher@discussio...

Virtual COM port support in Windows CE 6.0 R2
Hi, I wanted to use UART (RS232) over Ethernet on Windows CE 6.0 R2 device. Our device has Ethernet connectivity (ethernet port)and no COM port support (no hardware COM port). Is there any mechanism through which i can expose ethernet as COM to my device (RS232 over ethernet). On my PC side, we have virtual COM port which expose the ethernet interface as COM to my application. Thank You Submitted via EggHeadCafe - Software Developer Portal of Choice ASP.NET DropDown ListBox and XML Databinding http://www.eggheadcafe.com/tutorials/aspnet/816580c8-4d31-48c9-861e-ab9d60b5f6...

Monitoring Project Server with Nagios
Hi, does anybody offer scripts to monitor Project Server with Nagios like with SCOM? Thanks for any advice Adrian -- Adrian Miller ...

Can I Build an Access Statement (in 2007) as a String and Execute
Hi, I know that I can build a SQL statement within a string and then execute it like the following: strSQL = "UPDATE tblAuditRpt " _ & "SET tblAuditRpt.AuditRptYesCount = " & lngInitialEvalCount & " " _ & "WHERE tblAuditRpt.AuditRptID=25;" CurrentDb.Execute strSQL, dbFailOnError Can I do the same with an Access statement itself? For example, How could I execute the following statement if I built it in a string? lngInitialEvalCount = DCount ("AuditDtlCnt", "AuditDetai...

Project accounting #6
Hi, I usually use only General ledger. Somebody using Payable asked about "project accounting." I tried to find it from GP help file, but it does not say how to start. Should the "project accounting' module be installed separately? Thanks, Jen Jen: Project Accounting is a module that is purchased separately. That being said, it's possible you own it and it has not been registered. It depends on how the system was setup at installation. GP Project Accounting is a rather complex module. What's the nature of your project accounting needs? Frank Hamelly MCP-GP,...

Export to excel from ASP.Net
have a page wherein the contents of a datagrid are exported to an excel file. All the columns are correctly displayed in excel except for the number columns. The formatting string for the number column is {0:#,##0.00; (#,##0.00);0.00}. The data is formatted for all numbers exceeding 1000 but for any number below 1000 the data is displayed as 1000 and not with 0's in the decimal places. (displayed as 999 instead of 999.00). ...

Enterprise Calendars in Project Server 2007
I'm trying to use an Enterprise calendar created in Project Server 2007 to control working time through the Change Working Time tool in Project Professional and it's not working. What's the best way to do this? Thank you, Jerry McKenzie Jerry -- Only the Project Server administrator can modify enterprise calendars, and he/she must start the editing process from the Enterprise Calendars page in PWA. Are you the Project Server administrator? If not, what are you attempting to do with this enterprise calendar? Let us know and we will try to help. -- Dale A...

Building Assembly
I'm trying to build an assembly that creates a directory that is named after an attribute in opportunities. this is what I have, and it is not compiling into a dll, any advice? public string CreateDirectory(string root,string folderName) { } Luke Davis, MCSE: Security DEM Networks - Senior Systems Architect 7225 N First, Suite 105 Fresno, CA 93720 Office: 1 (559) 439-1000 Fax: 1 (866) 640-2041 www.demnetworks.com ...

Building Kits
I am having trouble using the build kits tab. I went through and made sure all the components were available to build the kits. I click the build tab and the program prompts that there is enough inventory to build 2 kits. I enter 2 and then hit the build tab and then ok. When I go to the properties screen the inventory qty is still 0. I copied the kit and gave it another name and did the same process and was able to build the kits the first and only time. Any suggestions? known bug, apply the latest hotfix and you will be good to go. "akpetshop" <akpetshop@discussions.mic...

Can Project fit my business needs?
I have a few questions to see if Project can meet the needs of my company. 1) I work for a marketing company, so we usually have several projects going on at the same time with the same people working on them. For example, Leslie may have to make edits to a poster, update a newsletter and also meet with the client in the same day. Can I view all project deadlines going on in a particular day? Also, can I view all the deadlines Leslie has in a particular day? 2) Since we have clients, they get a list of deadlines for the project related to them (however we only include deadli...

Visual C++ 2005 Radio Buttons
Hello all, When I use Visual C++ 2005 to write a calculator program, for example, http://www.functionx.com/visualc/controls/radiobutton.htm The radio control cannot be set into int. There is only bool exist in the interface. Is there are something wrong of my question? Thanks. Zhidian Du >When I use Visual C++ 2005 to write a calculator program, for example, > >http://www.functionx.com/visualc/controls/radiobutton.htm > >The radio control cannot be set into int. There is only bool exist in >the interface. > >Is there are something wrong of my question? Looks ...

'Credentials' Error in ASP.NET Web application
I am an experienced .NET web developer, and just starting to use MS CRM V1.0. When running an example (Win XP) in VS.NET 2003 ASP.Net web application I am getting the following error: 'Microsoft.CRM.Proxy.BizUser' does not contain a definition for 'Credentials '. My code: using Microsoft.CRM.Proxy.dll; .... Microsoft.CRM.Proxy.BizUser objUser = new Microsoft.CRM.Proxy.BizUser(); objUser.Url = strDir + "BizUser.srf"; objUser.Credentials = System.Net.CredentialCache.DefaultCredentials; The strange thing is that the same code works in windows app....

Groupshield 6 and Exchange 2003
What AD policies in particular? Are these certain Group Policies getting applied or what? -BenF On 3 Mar 2004 00:52:34 -0800, ryanjjones@mail.com (RJ) wrote: >No other problems so far. If you use AD policies for GSE then you >need another hotfix - we don't any more! > >Apart from that its heen pretty good. > >sujitshah@hotmail.com (Suj) wrote in message news:<ae73fe86.0403020731.37932f22@posting.google.com>... >> Ryan, >> >> I also have the same setup. Exchange 2003 with Groupshield ver 6.0 >> running on a compaq proliant dl-580 with ...

Macro to build table
I have 6 questions that may be answered yes or no, and for the sake of keeping everything in integer form, let's assume "1" for yes and "0" for no. Depending on how a customer answers all 6 questions, they will receive a predetermined score. I am attempting to develop the answer key, so-to-speak, to refer the reps to once they are finished asking the customer these questions. I was hoping for the code that would build a macro to create this tabe for me - a table that would lay out all of the 6 question-answer combinations, like the following: Questi...

Outlook 98 vs Outlook Express 6.0
I have been using Outlook 98 for Email. I send and receive messages with attachments of up to probably 3mb in size. My Inbox has about 20 sub-folders in which I keep messages. I have NOT been successful in backing up any of those folders or the entire *.pst file for that matter. It APPEARS that Outlook Express 6.0 will allow various folders to be backed up at will by dragging those that I care to keep to the CDRW. What features would I loose if I were to discontinue using Outlook 98 and process all of my Email on Outlook Express 6.0??? To me it appears that I would not loose anything. W...

project professional needed or will standard do?
We are looking at installing project server and I wanted to know if microsoft office project professional 2007 was needed to integrate with project server or if the standard version of project would do? It seems to me the standard version should work but most references on the microsoft website reference the professional version. Hello only Project Professional can connect to Project Server 2007 so you will need the "pro" version. -- Christophe Fiessinger Microsoft http://blogs.msdn.com/chrisfie "Robert Juarez" <RobertJuarez@discussions.microsoft.c...

Circular References and Visual Basic Formulas: Trouble Opening Workbooks
Hello, I have a workbook with a complex formula written in VBA that is part of a circular reference. When the workbook is open, everything works fine. But when I close the workbook and open it again, I get "#Value" in the cells with the VBA formula and "#Name" in other cells part of the circular reference. I assume it is because there is nothing to start off the circular reference (sort of a "primer") once the workbook is opened. I have gotten around this by turning off auto calculation when I open the workbook and then turning it back on as soon as the workb...

.Net Framework Configuration
I have created a winforms application that references a number of third-party dlls as well as dlls that we have written. I would like to place the app allong with all dependent files on a share on a server ie \\MyServer\MyApp and have users access the application from this location. If I just copy the contents of bin directory to server location and run the exe I get the message #1 below. I used the .Net Framework 2.0 Configuration tool and created a copy of the LocalIntranet_Zone under Runtime Security Policy\COde Groups\All_Code. I set this code group to use the FullTrust...

filtering #6
Hi everyone, I'm trying to filter a large amount of data. About 90000 points i all. I've managed to grab every three full cycles, as it were, usin =MOD(B5,3)>=2 as my filter criteria. However, I'd like to filter i further. If I had the following situation: 42 6 43 6 45 6 21 -3 13 -3 5 -3 41 6 45 6 47 6 13 -3 4 -3 1 -3 etc.. where 6 points make a full "cycle". Is it possible to filter out th maximum value for the first half of each cycle, and the minimum valu for the other half, in order to have a table like this? 45 6 5 -3 47 6 1 -3 etc... I b...

Project Time & Expense
We just upgraded to GP 9.0 and BP 3.0. My manager noticed that when she returned a timesheet in Project Time & Expense, it no longer allows her to supply a note. How do we get back that option? My guess... I had to apply the setting for 'AutomaticProcessing" to 0, described in Article ID# 921642. I noticed that besides "AutomaticProcessing" there are other fields in table "PmaTimesheetConfig". One is called "ApprovalNoteSubmit". Does this turn back on the approval rejection note? Can someone list what behavior each of these fields changes? Than...

Entourage Build Information
Processor: Power PC Is there a matrix of Entourage versions and their respective build numbers anyone can provide? This information would be of great use in troubleshooting client/server issues. Thanks in advance, Chris I haven't checked specifically for Entourage, but Wikipedia usually has such data published - you might check there. HTH |:>) Bob Jones [MVP] Office:Mac On 11/13/08 3:24 PM, in article 59b61e39.-1@webcrossing.caR9absDaxw, "chrisxmartinez@officeformac.com" <chrisxmartinez@officeformac.com> wrote: > Processor: Power PC > > Is there a ma...

Converting xml to another format of xml using ASP.NET
Hello Everybody, I need to convert xml that we get from sqlserver For xml auto to my own xml format using asp.net classes. Any ideas and suggestions would be appreciated. Thanks in Advance sp "sp" <sp@discussions.microsoft.com> wrote in message news:ADD0FF4E-39BA-46E2-A9EC-D3BAB3E6D530@microsoft.com... > I need to convert xml that we get from sqlserver For xml auto to my own > xml format using asp.net classes. > > Any ideas and suggestions would be appreciated. For Xml will usually return you an XML fragment, instead of an XML document (i.e., there will be m...

Error when building payroll build
One of my users is continuously getting an error when clicking OK on Calculate Payroll Checks. The error is - The checks cannot be calculated. Errors were found when building the checks. All other users can build the exact same build with no issues. What could be the issue here? Jack-One thing you may want to check is compare the users security. One user may/may not have rights to benefits/deductions/batches, etc. "Jack Tundra" wrote: > One of my users is continuously getting an error when clicking OK on > Calculate Payroll Checks. The error is - The checks cannot b...