I am having trouble with inheritance. here is a code sample. when i run the program it displays the first B object (ie the array of integers) but then i get an access violation. can anybody let me know what i am doing wrong? when i only create a pointer to a single B object it works fine. but...
I am getting a linker error whe nusing templates. If i remove the templates from the following sample and make the num member of A an int by default i get no error.
I have header file (A.h):
template <class T>
class A {
public: A(): num(1) {}
~A() {}
void print();
private: T...
Hi,
In my MFC app I have a button which when clicked draws a few lines in the dialog window. If the button is re-clicked i need the previously drawn lines to be erased before drawing new ones. How do I accomplish this?
Thanks
Hi,
I have a class called myClass and i compile for use with jni using the following 'cl -Ic:\program*\Java\jdk1.5.0_01\include -Ic:\program*\Java\jdk1.5.0_01\include\win32 -LD myClassImpl.cpp -FemyClass.dll'
myClassImpl.cpp implements the native call to getNum.
class myClass {
private...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.