using cxxxx:

perator new disables list box in visual c++ 6.
using cxxxx:

perator new disables list box in visual c++ 6.0
hello, in dd111 when defining a class multiply inherited i must include the following two lines:
using cxxxxx

erator new;
using cxxxxx

erator delete;
making this disables the list box that contains all the functions of the defined class, a useful list box that is contained by the wizard bar of visual c++ 6.0.
you can see this behaviour in odamfcapp or singledoc examples.
¿does anyone know how to avoid this?.
don't sure it helps, but we have macro
odrx_using_heap_operators(cxxxxx)
defined in odheap.h that is portable (using constructions have problems on sgi).
sincerely yours,
george udov
hello again, this worked:
class cviewdatoscad : public cview, public odgicontextfordbdatabase
{
protected:
odrx_using_heap_operators(odgicontextfordbdatabase );
cviewdatoscad();
protected:
declare_dyncreate(cviewdatoscad)
...
...
}
but i have had to delete the following lines from the .cpp file:
#ifdef _debug
#define new debug_new
#undef this_file
static char this_file[] = __file__;
#endif
because with these lines not deleted the compiler gives the following error:
error c2661: 'new' : no overloaded function takes 3 parameters.
my question now is: will i have problems because of deleting those lines?
no, you wont have - but if you have them in this file, and if you have memroy leaks in the file, the visual studio in most cases will print the exact lines where the new operator is called. if you don't have them, then you'll receive only messages for memory leaks, but no source code positions.
regards
chudomir
best regards
chudomir
thanks for the help.