Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Active Document Server HELP! Pin
Gary R. Wheeler27-Jul-05 12:26
Gary R. Wheeler27-Jul-05 12:26 
Generalinterrupt handling Pin
rottencheese24-Jul-05 0:38
rottencheese24-Jul-05 0:38 
GeneralRe: interrupt handling Pin
Alexander M.,24-Jul-05 3:14
Alexander M.,24-Jul-05 3:14 
QuestionHow to expand CRectTracker's handles size for easy use with touch panel? Pin
yyqqhy200024-Jul-05 0:23
yyqqhy200024-Jul-05 0:23 
AnswerRe: How to expand CRectTracker's handles size for easy use with touch panel? Pin
Gary R. Wheeler24-Jul-05 3:20
Gary R. Wheeler24-Jul-05 3:20 
GeneralRe: How to expand CRectTracker's handles size for easy use with touch panel? Pin
Anonymous24-Jul-05 4:18
Anonymous24-Jul-05 4:18 
QuestionPop up "view wireless Network dialog" by Code? Pin
joycenter24-Jul-05 0:01
joycenter24-Jul-05 0:01 
Generalthe problem wtih AfxOleInit and OleUninitialize Pin
I am ke xu23-Jul-05 23:59
I am ke xu23-Jul-05 23:59 
Recently,I developed a software which will interact with excel.
So I create a simple Single Document/View project CMyReport,and in start function
BOOL CMyRportApp::InitIntance()
{
...
AfxOleInit();
...
return true;
}

and then in exit function
int CMyRportApp::ExitInstance()
{
::OleUninitialize();
return __super::ExitInstance();
}

then i calle m_oApplication.CreateDispatch("Excel.Application"),
m_oApplication is a member varible of CMainFrame of type CApplication,
CApplication is created from excel typelib.
When the application everything is ok,but when i close the application,a alert
mesessge box is poped up.
the code where arouse the alert is showed as follow:
CCmdTarget::~CCmdTarget()
{
#ifndef _AFX_NO_OLE_SUPPORT
if (m_xDispatch.m_vtbl != 0)
((COleDispatchImpl*)&m_xDispatch)->Disconnect();
ASSERT(m_dwRef <= 1);
#endif
#ifdef _AFXDLL
m_pModuleState = NULL;
#endif
}
"ASSERT(m_dwRef<=1)"is the problem,debug it and found m_dwRef is 2.
~CCmdTarget() is the base class destructor of class COleMessageFilter.

Thanks a lot to who can give me some pieces of advice.




If you want to be a great programmer,then never stop learning
Generalacessing msconfig in win9x,,nt,2000,xp Pin
Member 213961923-Jul-05 21:26
Member 213961923-Jul-05 21:26 
GeneralRe: acessing msconfig in win9x,,nt,2000,xp Pin
Alexander M.,24-Jul-05 3:16
Alexander M.,24-Jul-05 3:16 
GeneralRe: acessing msconfig in win9x,,nt,2000,xp Pin
Member 213961924-Jul-05 7:22
Member 213961924-Jul-05 7:22 
Generalchanu1982@rediffmail.comacessing msconfig in win9x,,nt,2000,xp Pin
Member 213961923-Jul-05 21:25
Member 213961923-Jul-05 21:25 
Generalhiding folders and files Pin
Member 213961923-Jul-05 21:20
Member 213961923-Jul-05 21:20 
GeneralRe: hiding folders and files Pin
Alexander M.,24-Jul-05 3:18
Alexander M.,24-Jul-05 3:18 
GeneralRe: hiding folders and files Pin
Member 213961924-Jul-05 7:53
Member 213961924-Jul-05 7:53 
QuestionIs the application running? Pin
picasso223-Jul-05 19:27
picasso223-Jul-05 19:27 
AnswerRe: Is the application running? Pin
Alexander M.,24-Jul-05 3:20
Alexander M.,24-Jul-05 3:20 
AnswerRe: Is the application running? Pin
Blake V. Miller24-Jul-05 18:23
Blake V. Miller24-Jul-05 18:23 
Generalsystem font size Pin
khlins23-Jul-05 17:12
khlins23-Jul-05 17:12 
GeneralRe: system font size Pin
Gary R. Wheeler24-Jul-05 3:45
Gary R. Wheeler24-Jul-05 3:45 
QuestionNo Unicode in Status Bars? Pin
nm_11423-Jul-05 15:49
nm_11423-Jul-05 15:49 
AnswerRe: No Unicode in Status Bars? Pin
Alexander M.,24-Jul-05 3:22
Alexander M.,24-Jul-05 3:22 
GeneralRe: No Unicode in Status Bars? Pin
nm_11424-Jul-05 10:21
nm_11424-Jul-05 10:21 
GeneralVS 2005.NET MFC Pin
Pedromdrp23-Jul-05 15:19
Pedromdrp23-Jul-05 15:19 
GeneralFunction call overhead Pin
Anonymous23-Jul-05 13:21
Anonymous23-Jul-05 13:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.