Hi,
While I compile my old C++ source in VC.Net, rebulild whole project,
there are always some header files are unvaliable like "fstream.h",
"Dxguide.h".....etc.
Did VC.Net remove the VC++'s headers? How can I get them back? Where
sould I put them in?
Thanks, Daniel 9 1884
> While I compile my old C++ source in VC.Net, rebulild whole project, there are always some header files are unvaliable like "fstream.h", "Dxguide.h".....etc.
Daniel,
fstream.h is replaced by <fstream>.
I'm not familiar with dxguide.h - is it something that's distributed
as part of the Platform SDK or a 3'rd party library?
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Hi, Dave,
Thanks, it now pass with <fstream>, but still stopped at :
//my source..........
ifstream inputFile( filename, ios::in | ios::binary | ios::nocreate );
How can I solve this problem?
Thanks.
Daniel
"David Lowndes" <da****@example.invalid>
???????:h2********************************@4ax.com ... While I compile my old C++ source in VC.Net, rebulild whole project, there are always some header files are unvaliable like "fstream.h", "Dxguide.h".....etc.
Daniel,
fstream.h is replaced by <fstream>.
I'm not familiar with dxguide.h - is it something that's distributed as part of the Platform SDK or a 3'rd party library?
Dave -- MVP VC++ FAQ: http://www.mvps.org/vcfaq
Hi, Dave,
Thanks, it now pass with <fstream> included, but still stopped at,
//my source.....
ifstream inputFile( filename, ios::in | ios::binary | ios::nocreate );
How should I revise it?
Kind Regards,
Daniel
"David Lowndes" <da****@example.invalid>
???????:h2********************************@4ax.com ... While I compile my old C++ source in VC.Net, rebulild whole project, there are always some header files are unvaliable like "fstream.h", "Dxguide.h".....etc.
Daniel,
fstream.h is replaced by <fstream>.
I'm not familiar with dxguide.h - is it something that's distributed as part of the Platform SDK or a 3'rd party library?
Dave -- MVP VC++ FAQ: http://www.mvps.org/vcfaq
> Thanks, it now pass with <fstream> included, but still stopped at, //my source..... ifstream inputFile( filename, ios::in | ios::binary | ios::nocreate );
Daniel,
What's the compiler error?
I'd guess that you need to add:
using namespace std;
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Dave, using namespace std;
Still not work. it says.....
f:\SourceCode\VC.NET\C++\3D\OpenGL\MilkShape3D\Ali en_Ani\MilkshapeModel.cpp(
118): error C2039: 'nocreate' : not memeber of
'std::basic_ios<_Elem,_Traits>'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
f:\SourceCode\VC.NET\C++\3D\OpenGL\MilkShape3D\Ali en_Ani\MilkshapeModel.cpp(
118): error C2065: 'nocreate' : Undeclared ...
f:\SourceCode\VC.NET\C++\3D\OpenGL\MilkShape3D\Ali en_Ani\MilkshapeModel.cpp(
120): error C2065: 'cerr' : Undeclared ...
f:\SourceCode\VC.NET\C++\3D\OpenGL\MilkShape3D\Ali en_Ani\MilkshapeModel.cpp(
143): error C2664: 'std::basic_istream<_Elem,_Traits>::read' : can not
change param 1 from 'byte *' to 'char *'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
..........
...........
.......... and many the similar.......
Daniel
"David Lowndes" <da****@example.invalid>
???????:lq********************************@4ax.com ... Thanks, it now pass with <fstream> included, but still stopped at,
//my source..... ifstream inputFile( filename, ios::in | ios::binary | ios::nocreate );
Daniel,
What's the compiler error?
I'd guess that you need to add:
using namespace std;
Dave -- MVP VC++ FAQ: http://www.mvps.org/vcfaq
Dave,
Warnning messages now has only three while I adding the following ....
#include "platform.h"
#include "MilkshapeModel.h"
#include <iostream>
#include <fstream>
#include <ostream>
#include <istream>
using namespace std;
Warnning Message.......
f:\SourceCode\VC.NET\C++\3D\OpenGL\MilkShape3D\Ali en_Ani\MilkshapeModel.cpp(
126): error C2039: 'nocreate' : not member of
'std::basic_ios<_Elem,_Traits>'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
f:\SourceCode\VC.NET\C++\3D\OpenGL\MilkShape3D\Ali en_Ani\MilkshapeModel.cpp(
126): error C2065: 'nocreate' : Undeclared Item
f:\SourceCode\VC.NET\C++\3D\OpenGL\MilkShape3D\Ali en_Ani\MilkshapeModel.cpp(
151): error C2664: 'std::basic_istream<_Elem,_Traits>::read' : Can not
change parameter 1 from 'byte *' to 'char *'
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
Thanks,
Daniel
"David Lowndes" <da****@example.invalid>
???????:lq********************************@4ax.com ... Thanks, it now pass with <fstream> included, but still stopped at,
//my source..... ifstream inputFile( filename, ios::in | ios::binary | ios::nocreate );
Daniel,
What's the compiler error?
I'd guess that you need to add:
using namespace std;
Dave -- MVP VC++ FAQ: http://www.mvps.org/vcfaq
Daniel,
Have a look at the MSDN topic titled "Differences in iostream
Implementation". ios::nocreate and others no longer exist. I'm not
sure what you're meant to use instead as I rarely use stream file I/O.
Dave
"David Lowndes" <da****@example.invalid> skrev i meddelandet
news:ei********************************@4ax.com... Daniel,
Have a look at the MSDN topic titled "Differences in iostream Implementation". ios::nocreate and others no longer exist. I'm not sure what you're meant to use instead as I rarely use stream file I/O.
Dave
You are not supposed to use anything, as 'nocreate' is what happens to
ios::in type of files. They are required to exist when you (or the
constructor) call open!
Bo Persson
Hi, All,
Thanks, it works fine now.
I remove " ios::nocreate" from
ifstream inputFile( filename, ios::in | ios::binary |
ios::nocreate );
and add typecast (char *) before (byte *) variable.
Thanks again.
Kind regards,
Daniel
"Bo Persson" <bo*@gmb.dk> ¼¶¼g©ó¶l¥ó·s»D:uV*************@TK2MSFTNGP12.phx.gb l... "David Lowndes" <da****@example.invalid> skrev i meddelandet news:ei********************************@4ax.com... Daniel,
Have a look at the MSDN topic titled "Differences in iostream Implementation". ios::nocreate and others no longer exist. I'm not sure what you're meant to use instead as I rarely use stream file I/O.
Dave
You are not supposed to use anything, as 'nocreate' is what happens to ios::in type of files. They are required to exist when you (or the constructor) call open!
Bo Persson
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: matthurne |
last post by:
I just started learning C++ on my own...I'm using Accelerated C++.
Something it hasn't explained and I keep wondering about is how header
files actually work. I suspect it doesn't get into it...
|
by: Tobias |
last post by:
Hallo, I have a strange problem here:
I a VC++6 project that compiles without any errors. If i now include a
certain header file from my project into a header file of a certain
dialog class i get...
|
by: John Smith |
last post by:
Hi all
What does the group think of the practise of including one header file from
inside another?
I have some legacy code where this has been done, and it creates a
dependency on a module...
|
by: shafeeque |
last post by:
I am building a shell extn. project in .net ide which is
converted from vC++ 6.00.
During buid i am getting the following error
"error C2787: 'IContextMenu' : no GUID has been associated
with...
|
by: crs2003c |
last post by:
For some time now, other teachers have had this problem. Visual C++ 6.0 was
once installed on a WIN98 platform and apstring.h and graphic.h worked.
However, since moving to WIN2000 and WINXP,...
| |
by: Shaun Wilde |
last post by:
I am not sure if this is a .NET bug/feature and IIS5 one or a combination of
the 2 so here goes
I have a situation where when I call an ASP.NET webservice running under
windows 2000 (I assume...
|
by: Lee Franke |
last post by:
The application that I want to use requires the header to contain a
username/password.
Example:
<soap:Header>
<wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext">...
|
by: Sean Howard |
last post by:
I have a strange problem linking tab delimited text files in Access 2000
(I am running Windows XP), please try this and let me know if I am going
mad.
Step 1.
Create the tab-delimited text...
|
by: Gary Jefferson |
last post by:
My setup.py (with extension) seems to work great for build and
install, but for bdist_rpm, compilation of the extension fails because
some of the headers needed to build the extension aren't in the...
|
by: mhearne808[insert-at-sign-here]gmail[insert-dot-he |
last post by:
I'm trying to compile Python 2.5 on a RHEL system, using "./
configure;make;make install". The build seems to go alright, but the
zlib module is missing.
I've tried the following:
1) Download...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
| |
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...
| |