Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - NEW Problems...
I've purchased the CD and am working through the Sams 24 hour book to refresh my memory on how to code in a real language. Got to the point where the examples require an array: CArray<CString, CString> m_arNames; added: #include <afxtempl.h> to afx.h so I go to compile and get the following: sc dvtesdoc.cpp -cpp -Ae -mn -C -WA -S -3 -a8 -c -H -HO- -gf -D_DEBUG=1 -D_X86_ =1 -D_MT=1 -odvtesdoc.obj Error: C:\DM\BIN\..\mfc\include\32-bit\afxtempl.h(305): no match for function '?_P(unsigned ,char *,int )' Lines Processed: 225 Errors: 1 Warnings: 0 Build failed The line that is gagging is: m_pData = (TYPE*) new BYTE[nNewSize * sizeof(TYPE)]; I ran into this when trying to comple some of the MFC samples from the web site...gave up and bought the CD...I never tried the MFC samples of the disc. I realize that I'm probably missing something incredibly obvious...but it's been almost 5 years since I last wrote a line of c/c++ and I seem to have killed of the brain cells that held those 15 years of experience.... Thanks ... Michael mcmprch adelphia.net mcmprch soundbeachfinancial.com Jun 12 2002
It looks to me there's an extra comma in the error message - isn't it: function '?_P(unsigned char *,int )' ? If so, check the command line parameters, you mught need to enable support for operators new[] and delete[] - check compiler manual... HTH, Laurentiu "DigitalMars" <mcmprch soundbeachfinancial.com> wrote in message news:ae7l14$14tk$1 digitaldaemon.com...I've purchased the CD and am working through the Sams 24 hour book to refresh my memory on how to code in a real language. Got to the point Jun 14 2002
Yeh, Walter sent me an email...so I'm not the brightest crayon in the Box...RTFM... BTW, how can I force the IDDE to generate -Aa- in the makefile...I keep changing the makefile and the silly IDDE keeps changing it back?.... Michael "Laurentiu Pancescu" <user nowhere.near> wrote in message news:aecg94$2ikc$1 digitaldaemon.com...It looks to me there's an extra comma in the error message - isn't it: function '?_P(unsigned char *,int )' ? If so, check the command line parameters, you mught need to enable support for operators new[] and delete[] - check compiler manual... HTH, Laurentiu "DigitalMars" <mcmprch soundbeachfinancial.com> wrote in message news:ae7l14$14tk$1 digitaldaemon.com...I've purchased the CD and am working through the Sams 24 hour book to refresh my memory on how to code in a real language. Got to the point Jun 14 2002
sc.ini OR in de 'defines' edit field in the IDDE: change your defines from "X;Y;Z" to "-DX -DY -DZ -Aa-" Jan DigitalMars wrote:Yeh, Walter sent me an email...so I'm not the brightest crayon in the Box...RTFM... BTW, how can I force the IDDE to generate -Aa- in the makefile...I keep changing the makefile and the silly IDDE keeps changing it back?.... Michael "Laurentiu Pancescu" <user nowhere.near> wrote in message news:aecg94$2ikc$1 digitaldaemon.com...It looks to me there's an extra comma in the error message - isn't it: function '?_P(unsigned char *,int )' ? If so, check the command line parameters, you mught need to enable support for operators new[] and delete[] - check compiler manual... HTH, Laurentiu "DigitalMars" <mcmprch soundbeachfinancial.com> wrote in message news:ae7l14$14tk$1 digitaldaemon.com...I've purchased the CD and am working through the Sams 24 hour book to refresh my memory on how to code in a real language. Got to the point Jun 14 2002
"DigitalMars" <mcmprch soundbeachfinancial.com> wrote in message news:aecnhk$2pmo$1 digitaldaemon.com...Yeh, Walter sent me an email...so I'm not the brightest crayon in the Box...RTFM... Jun 14 2002
|