Click here to Skip to main content
15,434,755 members
Home / Discussions / COM
   

COM

 
GeneralRe: 0x80020009 access rights opentext Pin
Richard MacCutchan9-Aug-13 23:34
mveRichard MacCutchan9-Aug-13 23:34 
GeneralRe: 0x80020009 access rights opentext Pin
ForNow12-Aug-13 10:39
MemberForNow12-Aug-13 10:39 
Generalits a text Formatting problem Pin
ForNow13-Aug-13 10:14
MemberForNow13-Aug-13 10:14 
GeneralRe: its a text Formatting problem Pin
Richard MacCutchan13-Aug-13 20:28
mveRichard MacCutchan13-Aug-13 20:28 
Questionin excel, how to get the char after the cursor when in edit mode Pin
BCN-16328-Jul-13 20:20
MemberBCN-16328-Jul-13 20:20 
QuestionWorkBooks::OpenText Pin
ForNow25-Jul-13 16:34
MemberForNow25-Jul-13 16:34 
SuggestionRe: WorkBooks::OpenText Pin
Richard MacCutchan25-Jul-13 21:28
mveRichard MacCutchan25-Jul-13 21:28 
QuestionCreating Automation Project using Visual Studio 2010 and Excel 2010 Pin
ForNow25-Jul-13 13:08
MemberForNow25-Jul-13 13:08 
Hi,

I followed Microsoft Knoweldge base Article 178749

http://support.microsoft.com/kb/178749[^]



To create and an Automation When I got the Class wizard I selected Create Class from typelib

I the selcted the excel.exe

The Wizard create a number of Class I slected to include all of them in my project

After getting a Clean build I decided to add some ole code

create excel

So I included "CAppliction.h"

I coded CApplication app;
app.CreateDispatch("EXCEL APPLICATION");

however I got a whole slew of build errors

example
c:\users\4rypb\documents\visual studio 2010\projects\autoproject\autoproject\debug\excel.tlh(1595): error C2371: 'FontPtr' : redefinition; different basic types
1> c:\program files\microsoft visual studio 10.0\vc\include\comdef.h(314) : see declaration of 'FontPtr'

or
c:\users\4rypb\documents\visual studio 2010\projects\autoproject\autoproject\capplication.h(3): warning C4278: 'RGB': identifier in type library 'C:\\Program Files\\Microsoft Office\\Office14\\EXCEL.EXE' is already a macro; use the 'rename' qualifier

Am I mssing some include ?

The doc says include excel8.h

but I dont see that included generated

Thanks
AnswerRe: Creating Automation Project using Visual Studio 2010 and Excel 2010 Pin
Garth J Lancaster25-Jul-13 13:50
professionalGarth J Lancaster25-Jul-13 13:50 
GeneralRe: Creating Automation Project using Visual Studio 2010 and Excel 2010 Pin
ForNow25-Jul-13 14:39
MemberForNow25-Jul-13 14:39 
Questionwindows 8 custom credential provider Pin
venkatesh5286723-Jul-13 21:05
Membervenkatesh5286723-Jul-13 21:05 
QuestionWord COM Object Error Pin
bganesan27-Jun-13 21:00
Memberbganesan27-Jun-13 21:00 
Questionwin32 dialogbox with custom control not displaying in windows 8 64bit Pin
venkatesh5286725-Jun-13 21:37
Membervenkatesh5286725-Jun-13 21:37 
SuggestionRe: win32 dialogbox with custom control not displaying in windows 8 64bit Pin
Richard MacCutchan25-Jun-13 23:23
mveRichard MacCutchan25-Jun-13 23:23 
GeneralRe: win32 dialogbox with custom control not displaying in windows 8 64bit Pin
venkatesh5286726-Jun-13 0:43
Membervenkatesh5286726-Jun-13 0:43 
GeneralRe: win32 dialogbox with custom control not displaying in windows 8 64bit Pin
Richard MacCutchan26-Jun-13 1:38
mveRichard MacCutchan26-Jun-13 1:38 
QuestionImplementation two interfaces in one class Pin
venkatesh5286718-Jun-13 20:47
Membervenkatesh5286718-Jun-13 20:47 
AnswerRe: Implementation two interfaces in one class Pin
Richard MacCutchan18-Jun-13 23:05
mveRichard MacCutchan18-Jun-13 23:05 
GeneralRe: Implementation two interfaces in one class Pin
venkatesh5286719-Jun-13 1:11
Membervenkatesh5286719-Jun-13 1:11 
GeneralRe: Implementation two interfaces in one class Pin
Richard MacCutchan19-Jun-13 2:21
mveRichard MacCutchan19-Jun-13 2:21 
GeneralRe: Implementation two interfaces in one class Pin
venkatesh5286719-Jun-13 2:30
Membervenkatesh5286719-Jun-13 2:30 
GeneralRe: Implementation two interfaces in one class Pin
Richard MacCutchan19-Jun-13 4:04
mveRichard MacCutchan19-Jun-13 4:04 
GeneralRe: Implementation two interfaces in one class Pin
Richard MacCutchan19-Jun-13 4:05
mveRichard MacCutchan19-Jun-13 4:05 
GeneralRe: Implementation two interfaces in one class Pin
venkatesh5286719-Jun-13 4:40
Membervenkatesh5286719-Jun-13 4:40 
GeneralRe: Implementation two interfaces in one class Pin
Richard MacCutchan19-Jun-13 4:52
mveRichard MacCutchan19-Jun-13 4:52 

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.