Click here to Skip to main content
14,545,027 members

C / C++ / MFC

 
QuestionHardcoded CString file path Pin
al250028-Jan-10 9:28
Memberal250028-Jan-10 9:28 
AnswerRe: Hardcoded CString file path Pin
CPallini28-Jan-10 9:35
mveCPallini28-Jan-10 9:35 
GeneralRe: Hardcoded CString file path Pin
Richard MacCutchan28-Jan-10 10:13
mveRichard MacCutchan28-Jan-10 10:13 
GeneralRe: Hardcoded CString file path Pin
CPallini28-Jan-10 10:35
mveCPallini28-Jan-10 10:35 
GeneralRe: Hardcoded CString file path Pin
Richard MacCutchan28-Jan-10 11:23
mveRichard MacCutchan28-Jan-10 11:23 
GeneralRe: Hardcoded CString file path Pin
al250028-Jan-10 11:31
Memberal250028-Jan-10 11:31 
AnswerRe: Hardcoded CString file path Pin
Richard MacCutchan28-Jan-10 10:18
mveRichard MacCutchan28-Jan-10 10:18 
Questionerror C2679: binary '>>' : no operator found Pin
mlchavez28-Jan-10 8:52
Membermlchavez28-Jan-10 8:52 
Hi:

I am migrating from VS 6.0 to VS 2008 and I am stuck on this error.

error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'const char [13]' (or there is no acceptable conversion)

It is occurring here:
istream & operator>>(istream &stream,IOwnship &object)
{
//## begin IOwnship::operator>>%.body preserve=yes
char tempStr[80]={0};
UINT16 temp16;

stream >> (ISimObj&)object;

int i;
for( i=0; i<IOwnship::NUM_EXPENDABLE_SLOTS; ++i){
stream >> object.m_expCount[i] >> temp16;
object.m_expType[i] = (ExpendableType)temp16;
}

stream >> temp16; object.m_fuelType = (FuelType)temp16;

for(i=0; i<NUM_FUEL_TANK_TYPES; ++i){
stream >> object.m_fuelQty[i];
}

UINT32 malfID;
UINT16 malfStatus;
UINT16 moreMalfs;
stream >> "Malfunctions";
for(stream >> moreMalfs; moreMalfs; stream >> moreMalfs){
stream >> malfID >> malfStatus;
object.m_malfStatusMap[malfID] = MalfStatusActType(malfStatus);
}

I have included:
#include <iostream>
using namespace std;

This works fine in VS 6.0.. any help would be greatly appreciated
AnswerRe: error C2679: binary '&gt;&gt;' : no operator found Pin
Richard MacCutchan28-Jan-10 9:11
mveRichard MacCutchan28-Jan-10 9:11 
GeneralRe: error C2679: binary '&gt;&gt;' : no operator found Pin
mlchavez28-Jan-10 9:39
Membermlchavez28-Jan-10 9:39 
GeneralRe: error C2679: binary '&gt;&gt;' : no operator found Pin
Richard MacCutchan28-Jan-10 9:46
mveRichard MacCutchan28-Jan-10 9:46 
AnswerRe: error C2679: binary '&gt;&gt;' : no operator found Pin
CODEPC28-Jan-10 10:18
MemberCODEPC28-Jan-10 10:18 
Questionplaying .wav files using double buffering approach Pin
Danzy8328-Jan-10 8:45
MemberDanzy8328-Jan-10 8:45 
AnswerRe: playing .wav files using double buffering approach Pin
enhzflep29-Jan-10 20:29
Memberenhzflep29-Jan-10 20:29 
QuestionUsing Google Map in MFC application? Pin
CODEPC28-Jan-10 7:22
MemberCODEPC28-Jan-10 7:22 
GeneralRe: Using Google Map in MFC application? Pin
David Crow28-Jan-10 8:53
MemberDavid Crow28-Jan-10 8:53 
AnswerRe: Using Google Map in MFC application? Pin
loyal ginger28-Jan-10 10:07
Memberloyal ginger28-Jan-10 10:07 
GeneralRe: Using Google Map in MFC application? Pin
CODEPC28-Jan-10 11:40
MemberCODEPC28-Jan-10 11:40 
AnswerRe: Using Google Map in MFC application? Pin
Nemanja Trifunovic28-Jan-10 10:29
MemberNemanja Trifunovic28-Jan-10 10:29 
QuestionSyntax problem with "" Pin
gregarion28-Jan-10 3:50
Membergregarion28-Jan-10 3:50 
AnswerRe: Syntax problem with "" Pin
Covean28-Jan-10 3:55
MemberCovean28-Jan-10 3:55 
QuestionDLL, EXE, dialog question Pin
DaveHitchman28-Jan-10 2:58
MemberDaveHitchman28-Jan-10 2:58 
AnswerRe: DLL, EXE, dialog question Pin
Richard MacCutchan28-Jan-10 3:07
mveRichard MacCutchan28-Jan-10 3:07 
QuestionActiveX Controls. Pin
ashwath197928-Jan-10 2:28
Memberashwath197928-Jan-10 2:28 
QuestionInputing variable into string.find Pin
gregarion28-Jan-10 2:25
Membergregarion28-Jan-10 2:25 

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.