Click here to Skip to main content
15,916,189 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to change alignment for an Edit Box control in runtime? Pin
Joseph Marzbani2-Oct-08 12:16
Joseph Marzbani2-Oct-08 12:16 
QuestionMenu's Pin
Sarriss2-Oct-08 4:56
Sarriss2-Oct-08 4:56 
AnswerRe: Menu's Pin
Maximilien2-Oct-08 5:00
Maximilien2-Oct-08 5:00 
GeneralRe: Menu's Pin
Sarriss2-Oct-08 5:05
Sarriss2-Oct-08 5:05 
QuestionProblem with PlgBlt and monochrome DCs Pin
Iain Clarke, Warrior Programmer2-Oct-08 4:35
Iain Clarke, Warrior Programmer2-Oct-08 4:35 
AnswerSlackers - I answered my own question! Pin
Iain Clarke, Warrior Programmer2-Oct-08 4:42
Iain Clarke, Warrior Programmer2-Oct-08 4:42 
QuestionCMFCPropertyGridProperty Pin
Laan822-Oct-08 3:26
Laan822-Oct-08 3:26 
QuestionAutomation Project using MFC and a type library : Error Excel::_Application cannot instantiate abstract class Pin
sdancer752-Oct-08 2:57
sdancer752-Oct-08 2:57 
Hi
Using the MS Example "How to create an automation project using MFC and a type library" to control MS Excel under MFC I get the error

Excel::_Application cannot instantiate abstract class

using the following code

void CAutoProjectDlg::OnRun()<br />
      {<br />
          _Application app;  // app is the Excel _Application object<br />
<br />
          // Start Excel and get Application object...<br />
         if(!app.CreateDispatch("Excel.Application"))<br />
         {<br />
            AfxMessageBox("Couldn't start Excel.");<br />
         }<br />
         else<br />
         {<br />
            //Make Excel Visible and display a message<br />
          app.SetVisible(TRUE);<br />
          AfxMessageBox ("Excel is Running!");<br />
         }<br />
      }<br />


How should I overcome this error ?

Regards,

sdancer75

AnswerRe: Automation Project using MFC and a type library : Error Excel::_Application cannot instantiate abstract class Pin
Iain Clarke, Warrior Programmer2-Oct-08 4:15
Iain Clarke, Warrior Programmer2-Oct-08 4:15 
GeneralRe: Automation Project using MFC and a type library : Error Excel::_Application cannot instantiate abstract class Pin
sdancer752-Oct-08 22:58
sdancer752-Oct-08 22:58 
GeneralRe: Automation Project using MFC and a type library : Error Excel::_Application cannot instantiate abstract class Pin
Iain Clarke, Warrior Programmer4-Oct-08 8:08
Iain Clarke, Warrior Programmer4-Oct-08 8:08 
QuestionMoving Button with moving dialog. Pin
gothic_coder2-Oct-08 0:50
gothic_coder2-Oct-08 0:50 
AnswerRe: Moving Button with moving dialog. Pin
gothic_coder2-Oct-08 0:56
gothic_coder2-Oct-08 0:56 
AnswerRe: Moving Button with moving dialog. Pin
Iain Clarke, Warrior Programmer2-Oct-08 2:28
Iain Clarke, Warrior Programmer2-Oct-08 2:28 
GeneralRe: Moving Button with moving dialog. Pin
gothic_coder2-Oct-08 2:41
gothic_coder2-Oct-08 2:41 
GeneralRe: Moving Button with moving dialog. Pin
Iain Clarke, Warrior Programmer2-Oct-08 3:46
Iain Clarke, Warrior Programmer2-Oct-08 3:46 
GeneralWow. Pin
CPallini2-Oct-08 3:09
mveCPallini2-Oct-08 3:09 
QuestionHow to change current working directory in c/c++? Pin
Gofur Halmurat2-Oct-08 0:04
Gofur Halmurat2-Oct-08 0:04 
AnswerRe: How to change current working directory in c/c++? Pin
sashoalm2-Oct-08 0:12
sashoalm2-Oct-08 0:12 
GeneralRe: How to change current working directory in c/c++? Pin
Gofur Halmurat2-Oct-08 0:18
Gofur Halmurat2-Oct-08 0:18 
GeneralRe: How to change current working directory in c/c++? Pin
CPallini2-Oct-08 0:29
mveCPallini2-Oct-08 0:29 
AnswerRe: How to change current working directory in c/c++? Pin
CPallini2-Oct-08 0:20
mveCPallini2-Oct-08 0:20 
GeneralRe: How to change current working directory in c/c++? Pin
Gofur Halmurat2-Oct-08 0:43
Gofur Halmurat2-Oct-08 0:43 
QuestionRe: How to change current working directory in c/c++? Pin
CPallini2-Oct-08 0:58
mveCPallini2-Oct-08 0:58 
GeneralRe: How to change current working directory in c/c++? Pin
Hamid_RT2-Oct-08 19:36
Hamid_RT2-Oct-08 19:36 

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.