i developed one testmfc OCX control with GUI when i tried to invoke OCX through create intance hret = test.CreateInstance(__uuidof(TestOCX)); its creating successfully but no GUI parrt is showing. any kind of help appreciated. thanx .. reagrds Rajesh
Rajesh match
Posts
-
Help for MFC OCX control -
unhandle exception(8000ffff) while acceing ocx methodsi am trying to access mehod of ocx but its showing runtime error HRESULT hret; try { CoInitialize(NULL); // init of Com hret = testPtr.CreateInstance(__uuidof(TestOCX)); testPtr->Check(); //Crash here } catch( _com_error &e ) { // Get info from _com_error _bstr_t bstrSource(e.Source()); _bstr_t bstrDescription(e.Description()); TRACE( "\tCode = %08lx\n", e.Error()); TRACE( "\tCode meaning = %s\n", e.ErrorMessage()); TRACE( "\tSource = %s\n", (LPCTSTR) bstrSource); TRACE( "\tDescription = %s\n", (LPCTSTR) bstrDescription); } catch(...) { TRACE( "*** Unhandled Exception ***" ); } can anybody help me for the same thanx regards Rajesh
-
How to destroy a menu from SDI applicationBOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { if(cs.hMenu!=NULL) { ::DestroyMenu(cs.hMenu); cs.hMenu = NULL; } return CFrameWnd::PreCreateWindow(cs); return TRUE; }
-
editing a tableUse Acees database
-
How to remove MAXIMIZE Option from SDI applicationfor SDI BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs) { cs.style = WS_OVERLAPPED | WS_SYSMENU | WS_BORDER; return CFrameWnd::PreCreateWindow(cs); } for MDI BOOL CMyChildWnd::PreCreateWindow(CREATESTRUCT& cs) { cs.style &= ~WS_MAXIMIZEBOX; return CMDIChildWnd::PreCreateWindow(cs); }
-
Convert from CObject to inherited classshow ur code what u exactly doing?
-
Convert from CObject to inherited classtry this CFAFRecord *my_list =(CFAFRecord*) m_variable->GetNext( m_curPosition); regards Rajesh
-
NamespaceI need good article to understand c++ namespace Thanx. Regards Rajesh
-
EVC++CMyDialog dlg; dlg.DoModal(); or CMyDialog *dlg = new CMyDialog(); dlg->Create(ID_DILOG); DLG->ShowWindow(;)
-
Dialogs from MFC resources1)Go to class view 2)Right click dialog class 3)select Add to Gallary 4)open new project 5)select projetct->Add to project 6)select component and controls 7)Class as well as dialog will add to project
-
what is diff. btwn CSoket and CAsynsocketok JIM i go through that Thax for for your explaination
-
what is diff. btwn CSoket and CAsynsocketThanx JIM for information Typically you create a socket, connect, set it's blocking mode how we set the blocking mode for that.
-
what is diff. btwn CSoket and CAsynsocketThanx TOXCCT.
Could u explain this in terms of CSOcket and CAsyncsocket
according to MSDN CSyncsocket returns WSAEWOULDBLOCK but not CSocket.As CSocket derived from CAsynsocket why we wold not override OnRecieve and called recieve method as its vitual
i think i am confused abt this operation
Anyone have good link abt this ...
-
what is diff. btwn CSoket and CAsynsocketI gone through MSDN it mentioned that CSyncsocket can be used as blocking as well in nonbloicking i,e synchronous and asyncronous both where we can get event notification
while CSocket can used in only blocking mode i.e synchronous mode.
I am not getting this explanation.
Can anybody somebody clear this more briefly -
copying a dialog boxThanx ... This new thing i leran today!
-
Checking if a file has been opened by any process and remains openlook for CFile::shareExclusive in MSDN regards Rajesh
-
File for Project settingsdsp file
-
Dynamically Show and Hide Title barSetWindowText
-
Fatal Link Error: LNK:1201clean and rebuild the project or delete pdb file and buld
-
MDI Doc-View-CWnd instead of Doc-View-FrameWndSearch for docking windows in CP here lot more examples availabel