Click here to Skip to main content
15,922,696 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Crop large file without temp file? Pin
Alexander M.,7-Mar-04 10:15
Alexander M.,7-Mar-04 10:15 
GeneralRe: Crop large file without temp file? Pin
Neville Franks7-Mar-04 11:50
Neville Franks7-Mar-04 11:50 
GeneralRef Counting Pin
monrobot136-Mar-04 18:52
monrobot136-Mar-04 18:52 
GeneralRe: Ref Counting Pin
Neville Franks6-Mar-04 21:10
Neville Franks6-Mar-04 21:10 
GeneralRe: Ref Counting Pin
monrobot137-Mar-04 2:25
monrobot137-Mar-04 2:25 
GeneralPassing information among different views Pin
DaBears6-Mar-04 17:53
DaBears6-Mar-04 17:53 
GeneralRe: Passing information among different views Pin
Neville Franks6-Mar-04 21:16
Neville Franks6-Mar-04 21:16 
GeneralCompiling problem Pin
john.angel6-Mar-04 16:25
john.angel6-Mar-04 16:25 
Hi, i'm working in a Win32 app. It's based on a main file, and a class file. The main file has a window which receives events and must create different instances of the class. There is a global list, where some data is saved. When certain message arrived, the new instance of the class must search for the info previously saved in the global list. The files are:

//**Main.cpp**//
include "Main.h"

SomeFunction(PCHAR Data)
{
RecordList.push_back(Data);
....
}
//**Main.h**//
#include "CX.h"
#include <list>
using namespace std ;
typedef list<PCHAR> List;
static List RecordList;

//**CX.h**//
Class X
{
...
}

//**CX.cpp**//

VOID CX::Function()
{
List::iterator i;
PCHAR Data;
i = RecordList.begin();
Data = *i;
....
}
The compiler print error C2065 in each line where the RecordList or the iterator are used. Even in the main file.
I tried including :

#include <list>
using namespace std ;

in the CX files but this doesn't work either

Any idea?
Tnx



GeneralRe: Compiling problem Pin
Prakash Nadar6-Mar-04 16:49
Prakash Nadar6-Mar-04 16:49 
GeneralRe: Compiling problem Pin
john.angel6-Mar-04 16:52
john.angel6-Mar-04 16:52 
GeneralMFC Pin
Archer2826-Mar-04 15:00
Archer2826-Mar-04 15:00 
GeneralRe: MFC Pin
Prakash Nadar6-Mar-04 15:07
Prakash Nadar6-Mar-04 15:07 
GeneralRe: MFC Pin
Archer2826-Mar-04 18:30
Archer2826-Mar-04 18:30 
GeneralRe: MFC Pin
Archer2826-Mar-04 18:32
Archer2826-Mar-04 18:32 
GeneralRe: MFC Pin
Prakash Nadar6-Mar-04 20:22
Prakash Nadar6-Mar-04 20:22 
GeneralTrouble with GetLogicalDrives() function Pin
Dev5786-Mar-04 13:28
Dev5786-Mar-04 13:28 
GeneralRe: Trouble with GetLogicalDrives() function Pin
Curi0us_George6-Mar-04 13:44
Curi0us_George6-Mar-04 13:44 
GeneralP.S. Pin
Curi0us_George6-Mar-04 13:49
Curi0us_George6-Mar-04 13:49 
GeneralRe: Trouble with GetLogicalDrives() function Pin
P-Rex7-Mar-04 21:45
P-Rex7-Mar-04 21:45 
GeneralCould some please post a working example Pin
MeterMan6-Mar-04 12:40
MeterMan6-Mar-04 12:40 
GeneralRe: Could some please post a working example Pin
Curi0us_George6-Mar-04 13:10
Curi0us_George6-Mar-04 13:10 
GeneralRe: Could some please post a working example Pin
MeterMan6-Mar-04 14:04
MeterMan6-Mar-04 14:04 
GeneralRe: Could some please post a working example Pin
Curi0us_George7-Mar-04 12:02
Curi0us_George7-Mar-04 12:02 
GeneralRe: Could some please post a working example Pin
MeterMan7-Mar-04 16:12
MeterMan7-Mar-04 16:12 
GeneralRe: Could some please post a working example Pin
DougW486-Mar-04 22:44
DougW486-Mar-04 22:44 

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.