Hi, if i want to create only 3 objects how can i restrict the class to do the same...
p_1960
Posts
-
creating limited objects -
InheritanceMay i know why Multiple Inheritance is not supported in c#...
-
CObject..hi, im confused with Cobject basic services.. Serialization support Run-time class information Object diagnostic output Compatibility with collection classes can u pls explain..
-
DLLHi, Please let me know the difference b/w debug and release dll"s...
-
Abstract vs Interface...Hi, Please let me know the difference b/w abstract and Interface...with example... im confused......
-
assignment operatorHi, Please let me know from below code ..that whether assignment operator or copy constructor is called in each case and why... A is a class.. 1)A a2; A a1=a2; 2)a1=a2; 3)a1(a2);
-
Default constructors...Hi, May i know what are default constructors generated in c++ when an object is created... and what happens if i declare my own constructor without declaring the default constructor.. pls correct me if im wrong..
-
[Message Deleted]const *char only...
-
[Message Deleted][Message Deleted]
-
Convert Byte[64] to CSTRIngya it is declared..
-
Convert Byte[64] to CSTRIngHi, Please have a look std::vector Names; ENUMLOGFONTEX *lpelfe; Names.push_back(lpelfe->elfFullName); the above lines gives an error like.... error C2440: 'initializing' : cannot convert from 'BYTE [64]' to 'ATL::CStringT<BaseType,StringTraits>'with[BaseType=char, StringTraits=StrTraitMFC_DLL<char>] ] and please try to help regarding the same...
-
Font in Comboif possible please let me know how can i use in MFC dialog based project ..as im anew bie..
-
Font in ComboHi, How can i populate system font names in combobox...
-
SliderCtrlHi, i have a Slider ctrl and im calling SetRange(1,3,TRUE) and when im trying to drag the slider from one position to the other ..ie OnHScroll(UINT nSBCode,UINT nPos,CScrollBar *pScrollBar) is called... and in this if the nsBCode is SB_PAGEDOWN im always getting the nPos value is 0 eventhough the position of the slider is changed...and when the nsBCode is SB_THUMBPOSITION evrything works fine... Please help me regarding the same...
-
CDialogTemplateya it"s not recognising the ID which sent as string but it is working fine if i pass ID AS integer.. Pls let me know...
-
CDialogTemplateya..but MAKEINTRESOURECE converts an integer value to a resource type ... but in the case of CDialogTemplate dlt; LPCTSTR ID=_T("IDD_TESTDLG_DIALOG"); if (!dlt.Load(ID)) return -1; i need to pass id as String instead of integer...the doubt it is not working is i send id as string... Sorry for inconvenience caused ....
-
CDialogTemplateHi, when im trying to use... CDialogTemplate dlt; LPCTSTR ID=_T("IDD_TESTDLG_DIALOG"); if (!dlt.Load(ID)) return -1; the issue is eventhough the ID is correct but the above if statement returns -1 but if i use if (!dlt.Load(MAKEINTRESOURCE(CTestDlg::IDD))) return -1; the above statement doesn"t return -1.. Please help me regarding the same...
-
SetFont at RuntimeHi, im using the below code to increase the size of the DialogBox along with the controls inside it during Runtime...ie im overriding DoModal()function... CTestDlg is my application name.... INT_PTR CTestDlg::DoModal() { CDialogTemplate dlt; int nResult; // load dialog template //CTestDlg::IDD is the ID of my resoource... if (!dlt.Load(MAKEINTRESOURCE(CTestDlg::IDD))) return -1; // set your own font, for example "Arial", 10 pts. dlt.SetFont(L"Arial", 12); // get pointer to the modified dialog template LPSTR pdata = (LPSTR)GlobalLock(dlt.m_hTemplate); // let MFC know that you are using your own template m_lpszTemplateName = NULL; InitModalIndirect(pdata); // display dialog box nResult = CDialog::DoModal(); // unlock memory object GlobalUnlock(dlt.m_hTemplate); return nResult; } The issue is the font of one of the control (CheckBox) is not getting increased... Please let me know...
-
MFCplease suggest me any MFC samples in vs2003/2005 with explanation...
-
MFCi didn"t find any samples in vs 2003/2005...