Where is the class B?
If you have mistyped it , it should be like
class B:public A
Then In this case two VTABLEs will be created one for each class .
A VTABLE is created for each class containing a virtual function and for each of the class that is derived from it.
Somethings seem HARD to do, until we know how to do them. _AnShUmAn_
In this example only one vtable will be created which (ignoring RTTI) will contain a pointer to the single virtual function A::fun. The constructor (implicitly generated by the compiler) will set the vtable pointer in class A's instance data to point to this table. If B had overridden this method then there would be another vtable for class B and B's constructor would replace the vtable pointer (set in A) with a pointer to B's vtable.
Make a dialog box as you want. Now create this dialog using DoModal() in a thread function. Just initiate that thread when you want to show that dialog and kill the thread when you want to make the dialog disappeared.
sir thanks for reply
but it does not work as i use this in oninitdialog function
whwre m_spin is variable of spin control
and m_edit is variable of edit control.