Click here to Skip to main content
15,891,763 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: non XP visual style when using chtmlview in VC6/VC7 ?? Pin
karmafx10-Mar-04 21:45
karmafx10-Mar-04 21:45 
GeneralCHange Gradient Colors in WIndow Caption Pin
doctorpi10-Mar-04 7:13
doctorpi10-Mar-04 7:13 
GeneralRe: CHange Gradient Colors in WIndow Caption Pin
Robert A. T. Káldy11-Mar-04 1:34
Robert A. T. Káldy11-Mar-04 1:34 
GeneralFileWriting -> Arrays Pin
nsaddock10-Mar-04 6:02
nsaddock10-Mar-04 6:02 
GeneralRe: FileWriting -> Arrays Pin
David Crow10-Mar-04 10:06
David Crow10-Mar-04 10:06 
Generalclass std::basic_ofstream errors Pin
Andrew Hoole10-Mar-04 5:19
Andrew Hoole10-Mar-04 5:19 
GeneralRe: class std::basic_ofstream errors Pin
Neville Franks10-Mar-04 10:43
Neville Franks10-Mar-04 10:43 
GeneralRe: class std::basic_ofstream errors Pin
Andrew Hoole10-Mar-04 22:20
Andrew Hoole10-Mar-04 22:20 
Oops. Sorry about that. Let me try again.

Error message was

error C2678: binary '<<' : no operator defined which takes a left-hand operand of type 'class std::basic_ofstream<char,struct std::char_traits<char> >' (or there is no acceptable conversion)

Thrown by code

void C3DPoint::Save(ofstream & s)
{
s << x <<" " << y << " " << z << endl;
}

With header

#include <iostream>
#include <fstream>
using namespace std;

class C3DPoint : public CObject
{
DECLARE_DYNCREATE(C3DPoint)
public:
.
.
.
.

int x;
int y;
int z;

.
.
.

};

Another error in a different source file is

error C2079: 'file' uses undefined class 'basic_ifstream<char,struct std::char_traits<char> >'

associated with code line

ifstream file(dlg.GetPathName(),ios::in);


Many thanks for any help.

Andrew Hoole
GeneralCalling ReadDirectoryChangesW from DLL causes error Pin
Deian10-Mar-04 5:11
Deian10-Mar-04 5:11 
GeneralRe: Calling ReadDirectoryChangesW from DLL causes error Pin
Ravi Bhavnani10-Mar-04 6:17
professionalRavi Bhavnani10-Mar-04 6:17 
GeneralRe: Calling ReadDirectoryChangesW from DLL causes error Pin
Deian10-Mar-04 6:42
Deian10-Mar-04 6:42 
GeneralRe: Calling ReadDirectoryChangesW from DLL causes error Pin
Ravi Bhavnani10-Mar-04 7:11
professionalRavi Bhavnani10-Mar-04 7:11 
GeneralRe: Calling ReadDirectoryChangesW from DLL causes error Pin
Nemanja Trifunovic10-Mar-04 7:22
Nemanja Trifunovic10-Mar-04 7:22 
GeneralRe: Calling ReadDirectoryChangesW from DLL causes error Pin
Joel Lucsy10-Mar-04 7:17
Joel Lucsy10-Mar-04 7:17 
GeneralRe: Calling ReadDirectoryChangesW from DLL causes error Pin
Nemanja Trifunovic10-Mar-04 7:24
Nemanja Trifunovic10-Mar-04 7:24 
GeneralRe: Calling ReadDirectoryChangesW from DLL causes error Pin
Ravi Bhavnani10-Mar-04 7:27
professionalRavi Bhavnani10-Mar-04 7:27 
GeneralRe: Calling ReadDirectoryChangesW from DLL causes error Pin
Deian10-Mar-04 7:45
Deian10-Mar-04 7:45 
GeneralThe answer :) Pin
Deian10-Mar-04 8:01
Deian10-Mar-04 8:01 
GeneralError at compiling virtual function call in constructor Pin
vgrigor10-Mar-04 4:21
vgrigor10-Mar-04 4:21 
GeneralRe: Error at compiling virtual function call in constructor Pin
toxcct10-Mar-04 4:25
toxcct10-Mar-04 4:25 
GeneralRe: Error at compiling virtual function call in constructor Pin
Tomasz Sowinski10-Mar-04 4:45
Tomasz Sowinski10-Mar-04 4:45 
GeneralRe: Error at compiling virtual function call in constructor Pin
vgrigor10-Mar-04 4:55
vgrigor10-Mar-04 4:55 
GeneralRe: Error at compiling virtual function call in constructor Pin
Nemanja Trifunovic10-Mar-04 6:23
Nemanja Trifunovic10-Mar-04 6:23 
GeneralRe: Error at compiling virtual function call in constructor Pin
Tomasz Sowinski11-Mar-04 2:47
Tomasz Sowinski11-Mar-04 2:47 
GeneralInvertRect Pin
Anthony988710-Mar-04 3:50
Anthony988710-Mar-04 3:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.