Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI + drawing [modified] Pin
transoft8-Jun-09 5:06
transoft8-Jun-09 5:06 
AnswerRe: GDI + drawing Pin
Sarath C8-Jun-09 8:51
Sarath C8-Jun-09 8:51 
Questionhow to interpret the following code snippet Pin
pandit848-Jun-09 4:44
pandit848-Jun-09 4:44 
QuestionRe: how to interpret the following code snippet Pin
led mike8-Jun-09 5:14
led mike8-Jun-09 5:14 
AnswerRe: how to interpret the following code snippet Pin
CPallini8-Jun-09 6:44
mveCPallini8-Jun-09 6:44 
QuestionControlling bass and treble on an audio device Pin
dptalt8-Jun-09 4:18
dptalt8-Jun-09 4:18 
QuestionUsed cluster number of a hard disk partition come continuously...Is it correct..? Pin
krish_kumar8-Jun-09 4:08
krish_kumar8-Jun-09 4:08 
QuestionHlep me!A problem of AttachDispatch method~ Pin
bjwu8-Jun-09 2:42
bjwu8-Jun-09 2:42 
LPDISPATCH   pDisp;   
LPUNKNOWN   pUnk;   
CLSID   clsid;    
BeginWaitCursor();   
::CLSIDFromProgID(L"Excel.Application",   &clsid);     
if(::GetActiveObject(clsid,   NULL,   &pUnk)   ==   S_OK)  
{   
VERIFY(pUnk->QueryInterface(IID_IDispatch,(void**)   &pDisp)   ==   S_OK);   
m_ExcelApp.AttachDispatch(pDisp);   
pUnk->Release();  
m_ExcelWorkbooks.AttachDispatch(m_ExcelApp.GetWorkbooks()); 
m_ExcelWorkbook.AttachDispatch(m_ExcelWorkbooks.GetItem(_variant_t(m_strTmepFileName))); 
                
COleVariant covFalse((short)FALSE);   
m_ExcelWorkbook.Close(covFalse,covFalse,covFalse);
m_ExcelApp.Quit();
m_ExcelWorkbook.ReleaseDispatch();
m_ExcelWorkbooks.ReleaseDispatch();
m_ExcelApp.ReleaseDispatch();				 
pDisp->Release();				
}      
EndWaitCursor(); 

I have used WebBrowser to display an Excel document,then I want to display another one which was saved as the same temperory file name,but the Excel process can be found in the task mannager,so I must kill it first.
m_ExcelWorkbooks.AttachDispatch(m_ExcelApp.GetWorkbooks())

m_ExcelApp.GetWorkbooks() method can not execute, I debuged it and found:0x00730069 unhandled exception: 0xC000001D: Illegal Instruction in excel _Application.GetWorkbooks method's InvokeHelper line. Can anybody tell me why? thx very much.
Questionpassing pointers to function Pin
hrishiS8-Jun-09 2:26
hrishiS8-Jun-09 2:26 
AnswerRe: passing pointers to function Pin
«_Superman_»8-Jun-09 2:40
professional«_Superman_»8-Jun-09 2:40 
GeneralRe: passing pointers to function Pin
Stuart Dootson8-Jun-09 2:43
professionalStuart Dootson8-Jun-09 2:43 
GeneralRe: passing pointers to function Pin
«_Superman_»8-Jun-09 2:53
professional«_Superman_»8-Jun-09 2:53 
GeneralRe: passing pointers to function Pin
Stuart Dootson8-Jun-09 3:22
professionalStuart Dootson8-Jun-09 3:22 
GeneralRe: passing pointers to function Pin
«_Superman_»8-Jun-09 3:40
professional«_Superman_»8-Jun-09 3:40 
GeneralRe: passing pointers to function Pin
Stuart Dootson8-Jun-09 3:43
professionalStuart Dootson8-Jun-09 3:43 
GeneralRe: passing pointers to function Pin
«_Superman_»8-Jun-09 3:48
professional«_Superman_»8-Jun-09 3:48 
GeneralRe: passing pointers to function Pin
hrishiS9-Jun-09 0:34
hrishiS9-Jun-09 0:34 
AnswerRe: passing pointers to function Pin
Stuart Dootson8-Jun-09 2:50
professionalStuart Dootson8-Jun-09 2:50 
GeneralRe: passing pointers to function Pin
hrishiS9-Jun-09 0:35
hrishiS9-Jun-09 0:35 
GeneralRe: passing pointers to function Pin
David Crow8-Jun-09 3:16
David Crow8-Jun-09 3:16 
GeneralRe: passing pointers to function Pin
Rajesh R Subramanian8-Jun-09 3:28
professionalRajesh R Subramanian8-Jun-09 3:28 
AnswerRe: passing pointers to function Pin
CPallini8-Jun-09 3:26
mveCPallini8-Jun-09 3:26 
Questionhindi character pattern recognition [modified] Pin
Member 62745948-Jun-09 0:41
Member 62745948-Jun-09 0:41 
AnswerRe: hindi character pattern recognition Pin
Chandrasekharan P8-Jun-09 1:07
Chandrasekharan P8-Jun-09 1:07 
AnswerRe: hindi character pattern recognition Pin
Chandrasekharan P8-Jun-09 1:49
Chandrasekharan P8-Jun-09 1:49 

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.