Original Post
here is the deal,i want to make a progress bar in my dll project.in this project I wont have any window,so basically what I wanna do is create a dialog box which is invisible.and create a CProgressCtrl as its child window.here is my code: however I have a runtime error,everytime it is trying to create the pCDialog.Can someone give me some advice please?thanks in advance.
CDialog pCDialog = new CDialog();
CProgressCtrl pCProgressCtrl = new CProgressCtrl();
pCDialog->Create(1000,NULL);
RECT rect;
rect.top = 20;
rect.left = 20;
rect.bottom = 60;
rect.right = 100;
pCProgressCtrl->Create(WS_BORDER|WS_VISIBLE,rect,pCDialog,1001);