Click here to Skip to main content
15,896,338 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Exporting & using static public data members between dlls Pin
Paul M Watt30-Sep-02 10:05
mentorPaul M Watt30-Sep-02 10:05 
GeneralRe: Exporting & using static public data members between dlls Pin
mabotta1-Oct-02 6:10
mabotta1-Oct-02 6:10 
GeneralBack tracking error in MFC Pin
Mike Eriksson30-Sep-02 6:12
Mike Eriksson30-Sep-02 6:12 
GeneralRe: Back tracking error in MFC Pin
Phil J Pearson30-Sep-02 6:25
Phil J Pearson30-Sep-02 6:25 
GeneralRe: Back tracking error in MFC Pin
Mike Eriksson30-Sep-02 22:12
Mike Eriksson30-Sep-02 22:12 
GeneralRe: Back tracking error in MFC Pin
Phil J Pearson1-Oct-02 1:03
Phil J Pearson1-Oct-02 1:03 
GeneralRe: Back tracking error in MFC Pin
Michael P Butler30-Sep-02 22:33
Michael P Butler30-Sep-02 22:33 
GeneralA 'new' operator problem: Pin
ns30-Sep-02 6:11
ns30-Sep-02 6:11 
In the following:

    char* tempBuffer = NULL;
std::vector <char*> nBuffer;
int nRetNewDB;
CFileDialog fileDlg1(TRUE, ".*", NULL, OFN_EXPLORER|OFN_ALLOWMULTISELECT, "All Files(*.*)|*.*||",NULL);

nRetNewDB = fileDlg1.DoModal();

if (nRetNewDB == IDOK)
{
    POSITION Pos;

    Pos = fileDlg1.GetStartPosition();
    while (Pos != NULL)
    {
    CString sPathName = fileDlg1.GetNextPathName(Pos);

    int nSize = ReadPMAFile(sPathName, tempBuffer); //if NULL goes in , size comes back

    if(nSize !=0)
    {
        tempBuffer = new char[nSize+1];

        ReadPMAFile(sPathName, tempBuffer);

        nBuffer.push_back(tempBuffer);

    }

    }

}


I am getting compile errors regarding 'new':

c:\program files\microsoft visual studio\vc98\include\new(35) : error C2061: syntax error : identifier 'THIS_FILE'
c:\program files\microsoft visual studio\vc98\include\new(35) : error C2091: function returns function
c:\program files\microsoft visual studio\vc98\include\new(35) : error C2809: 'operator new' has no formal parameters


help! I've used 'new' a thousand times but somethings gone wrong here.....

Thanks,
ns
GeneralRe: A 'new' operator problem: Pin
jmkhael30-Sep-02 6:13
jmkhael30-Sep-02 6:13 
GeneralRe: A 'new' operator problem: got it now.. Pin
ns30-Sep-02 6:22
ns30-Sep-02 6:22 
GeneralRe: A 'new' operator problem: got it now.. Pin
jmkhael30-Sep-02 6:21
jmkhael30-Sep-02 6:21 
GeneralFormView override doubt Pin
RuiSantiago30-Sep-02 5:58
RuiSantiago30-Sep-02 5:58 
GeneralRe: FormView override doubt Pin
jmkhael30-Sep-02 6:02
jmkhael30-Sep-02 6:02 
GeneralRe: FormView override doubt Pin
RuiSantiago30-Sep-02 6:25
RuiSantiago30-Sep-02 6:25 
GeneralRe: FormView override doubt Pin
jmkhael30-Sep-02 6:35
jmkhael30-Sep-02 6:35 
GeneralRe: FormView override doubt Pin
RuiSantiago30-Sep-02 6:58
RuiSantiago30-Sep-02 6:58 
GeneralRe: FormView override doubt Pin
jmkhael30-Sep-02 7:44
jmkhael30-Sep-02 7:44 
GeneralRe: FormView override doubt Pin
RuiSantiago1-Oct-02 0:53
RuiSantiago1-Oct-02 0:53 
GeneralCFile and read Pin
ns30-Sep-02 5:43
ns30-Sep-02 5:43 
GeneralRe: CFile and read Pin
jmkhael30-Sep-02 5:52
jmkhael30-Sep-02 5:52 
GeneralRe: CFile and read Pin
jmkhael30-Sep-02 5:58
jmkhael30-Sep-02 5:58 
GeneralRe: CFile and read Pin
ns30-Sep-02 6:05
ns30-Sep-02 6:05 
QuestionWrite to Excel File ??? Pin
Nitron30-Sep-02 5:32
Nitron30-Sep-02 5:32 
AnswerRe: Write to Excel File ??? Pin
Stephane Rodriguez.30-Sep-02 5:44
Stephane Rodriguez.30-Sep-02 5:44 
GeneralRe: Write to Excel File ??? Pin
Nitron30-Sep-02 6:01
Nitron30-Sep-02 6:01 

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.