Word Automation Build Error(on VS 2005)

Hi All,

I have tried following the article http://support.microsoft.com/kb/q238611/
to create an automation client but I get hundreds of errors from 
CApplication.h when I build it:
e.g. 
debug\excel.tlh(1219) : error C2371: 'FontPtr' : redefinition; different 
basic types
debug\excel.tlh(1689) : error C2504: '_IMsoDispObj' : base class undefined
debug\excel.tlh(2237) : error C2061: syntax error : identifier 'MsoRGBType'

Can anyone offer any ideas?

thanks
0
MFC (35)
2/16/2007 2:57:05 PM
vc.mfc 33608 articles. 0 followers. Follow

0 Replies
467 Views

Similar Articles

[PageSpeed] 2

Reply:

Similar Artilces:

Printing WORD docs from a form
I have a button on a form and I want it to print a Word mail merge document that contains data from the database that is linked to my application. I'm using the following code but always get a 5922 error - Word can't open the source... All variable names contain valid data, so that's NOT the problem. With appWord .Visible = True .Documents.Open pathdocname With .ActiveDocument.MailMerge .MainDocumentType = wdFormLetters strConnection = "DSN=MS Access Databases;" _ & "DB...

problem with BOLD. ITALIC...using Word as editor
I compose a msg using Outlook. Word is the editor. I set a word in bold ot italic. I send msg to myselg, reading in Outlook. The bold or italic is gone. What to do? Thanks, Leo Are you sending the message as text only? If so all formatting will disappear. If you want to retain your formatting you'll need to send your messages as HTML. You can check this in your Outlook options. -- Martin Sketchley | www.msketchley.pwp.blueyonder.co.uk (remove EGGBEANSANDSPAM to reply by e-mail) ...

Visual Studio C++ 2005 debug Build Errors
Hi, I am working on an application that was created a few years ago(vc6.0). I'm starting to migrate it using Visual Studio2005. I tried to BUILD the project in debug mode, the following errors happened(in release mode compiled sucessfully): ********************************************************* error C2365: 'new' : redefinition; previous definition was a 'member function' c:\program files\microsoft visual studio 8\vc\include\xdebug 32 error C2491: 'new' : definition of dllimport data not allowed c:\program files\microsoft visual studio 8\vc\include\xdebug...

Windows XP: Open file in read-only: Word, Excel, Visio
I'm often sharing files on a network drive with someone. Often, one of us knows that we don't need to open a file for modification, and we only need read-access. Is there a way to open a file in read-only mode so that when someone does need to open it for modification, the read-only user is not blocking that? If there is not a way to do this native to Windows XP, is there a way to do it from the three applications that we use most, namely Word, Excel, Visio? All are 2003 versions. Thx. I used to save files like this in "read only recommended" mode. File|SaveAs|Tools|Ge...

Startup Error Message
This is a multi-part message in MIME format. ------=_NextPart_000_000A_01CA6555.2F379DC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I recently installed a new HDD and then installed WinXP Pro. Now when I boot/reboot the machine I get this error message: http://img692.imageshack.us/img692/2173/dynamicenergysaver.jpg Never seen it before, don't know what it's referring to or how to fix = it. Any help would be appreciated. Thank you. ------=_NextPart_000_000A_01CA6555.2F379DC0 Content-Type: text/html; charse...

HTML_CONTROL ERROR
I have an excel file with multiple sheets When I try to make a copy of a worksheet I get an error message "HTML_CONTROL already exists on the destination sheet" I've no idea how I caused this, but it sure is annoying Can anyone help" Thanks ...

Not enough memory error trying to open a Word X file
Version: 2008 Operating System: Mac OS X 10.6 (Snow Leopard) Processor: Intel Error message: "There is not enough memory or disk space available to complete the operation" when trying to open a Word X file in Office 2008 in Leopard or Snow Leopard on iMac that works fine in Word X despite resaving a new version. Any tips? Not enough information to answer. Check that OS X and Office 2008 have the latest updates applied. Use Disk Utility to Repair Permissions. Check the access your user ID has to the system Temporary folder (don't worry about this if you ar...

Cannot upgrade to Word 2007 from Word 2002 as word crashes when tr
We have a word add in that programatically inserts an auto text table then adds rows to it. This works ok in Word 2002 but occasionally crashes in Word 2007 - this is not a consistent crash when we carry out the same operation it happens in no specific sequence. The only place we are able to track it down to is the auto text table inserting rows. Word itself is crashing. We are using COM AddIn written in VB6. Does anyone know of any key differences/issues between Word 2002 and Word 2007 that could cause such an error. Or is there a better way to attach a debugger/word debugg...

C-Run-time library static vs DLL vs both!
I have now settled down to having my language-support resource DLLs carrying the minimum amount of code (other than none): One cpp file: ============ #define WIN32_LEAN_AND_MEAN #include <windows.h> BOOL APIENTRY DllMain( HANDLE hModule, DWORD ul_reason_for_call, LPVOID lpReserved ) { return TRUE; } ============ These "language resource DLLs" go with a project with lots of big DLLs some of which are MFC extension DLLs and most of which link to the C-runtime DLL. If I imply in the language resource project that it mi...

Money 2007 Premium Application Error
Hi, I started getting an application error while in Money and now can't get into it at all. I get error message unknown software exception (0xc000000d) occurred in the application at 0x7813e792. I've uninstalled the application then reinstalled it using the CD an I get the error message. It occurs after entering my passowrd when the Home page is displayed. Any thoughts? -- John ...

microsoft visual C++ runtime library error #2
Every time i try to open Outlook2002 i get the following error window which is titled "Microsoft visual C++ runtime library": Runtime Error! Program C:\program files\microsoft office\office10\outlook.exe The application has requested the Runtime to terminate in an unusual way. I would appreciate ANY IDEAS on this.... Thanks Can someone please help me out? Even if its a link to where this has been answered previously. i have searched but found nothing.... thank-you antonio >-----Original Message----- >Every time i try to open Outlook2002 i get the following >error w...

error in opening tif attachments
when attempting to open a tif format attachment sent to my outlook email, it is being opened in word and the document is no longer readable. Need help in correcting this problem ...

ERROR in Paybles
i got this error when i am trying to edit in saved payables transaction : Unable to save to the batch activity table,you will not be able to use this batch Any help will be appriciated Thanks Peter Peter, First step log out of GP, then try again. If error continues you will need all Users out of GP and run the following statement in SQL: USE DYNAMICS DELETE SY00800 This will clear out any left over locks. Cheers, Mick "Peter" wrote: > i got this error when i am trying to edit in saved payables transaction : > Unable to save to the batch activ...

Word 2007 TOC Not saving settings...
Hi there, When I use Word 2007 TOC, and I want to edit an existing TOC layout, etc. It wont remember my settings. I go to References Table of Contents Insert Table of Contents Then I make my chnages here, such as changing the levels of the various styles and how they show up Then I select OK, the TOC is created.. I then decide I don't like the changes I made, or I need to include another style So I go to References Table of Contents Insert Table of Contents The changes I made are no where to be seen. I have to start over from scratch. What am I doing wrong,...

Encoded Word Documents
We have recently purchased a new pc with windows 7 and have installed the Microsoft Office software however when I got to open a PDF or word document from a webpage a file conversion pop up box comes up and asks for me to select the encoding that makes the document readable but none of them do. even the windows default doesn't work...... You cannot open a pdf in Word. You need Adobe Reader. What you're downloading from a web page probably isn't a Word document, either. On May 27, 4:25=A0pm, Newuser <Newu...@discussions.microsoft.com> wrote: > We have rece...

Money 2005 for Pocket PC #6
This is a multi-part message in MIME format. ------=_NextPart_000_004B_01C624F4.D45DE020 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Quick question about Money 2006 and Money for Pocket PC... I've installed the full version trial download of Money 2006. I'm trying = to install Money for Pocket PC and keep getting a message telling me = that I don't have Money installed on my PC. This is the full version of = Money 2006 Deluxe. I do!!! What is the deal? Has anyone else encountered this? Any input would be appreciated. ...

Bulk E-mail with Non-Word Attachment
I need to be able to send a bulk e-mail (not from a template) with attachments of a number of different document types to a group of contacts (could be from a Saved View or Marketing List). Direct E-mail, Quick Campaigns and Mail Merge do not seem to be able to do this. Is there another way? Thanks. Nope. Take a look at this blog http://groups.google.com/group/microsoft.public.crm/msg/0a84808e99645006?dmode=source&hl=en Cheers, Venkatesh ---- On May 16, 11:57 pm, DStella <DSte...@discussions.microsoft.com> wrote: > I need to be able to send a bulk e-mail (not from a tem...

Word Wrap: Where is it in Word 2007?
I have Googled and Googled and cannot find any page that tells me where Word Wrap is. For such a basic feature you'd think it would be under View. Suggestions? On Mon, 18 Jan 2010 18:55:28 -0600, "Gary Gary" <blah@blah.blah> wrote: >I have Googled and Googled and cannot find any page that tells me where >Word Wrap is. For such a basic feature you'd think it would be under >View. Suggestions? The reason you aren't finding anything is that word wrap is automatic in Word unless you turn it off, or possibly if something is broken. Wha...

VBA Macro Error
Version: 2008 Operating System: Mac OS X 10.4 (Tiger) Processor: Power PC Hello, I�m running in a pretty bad problem: If I write in MSOffice 2008 a number followed by a letter like "5a" on a new line I get an error "This command is not available in this Version of Microsoft Word" It seems that word want�s to make a lookup for a VBA script - which is not supported anymore, so in panic they write the message on the screen. But instead I really want to write only 5a. Is there a button to switch of those interpretations? It was not an issue with 2004 and not on windows. Any...

Where are my saved word?
I open the attachment directly, it is .doc and edit it in a loong time, what I ask is when I press save button and it show nothing so I think it succes. And I close it!! I can't find it now, could you help me ????? Thanks! It is gone. When editing an attachment, you /must/ save it to your HDD first, edit it and then reattach it. -- Bruce Hagen MS-MVP [Mail] Imperial Beach, CA "smezsc" <smezsc@discussions.microsoft.com> wrote in message news:3AF0D07A-D490-4819-A649-1C5FC079027F@microsoft.com... >I open the attachment dire...

Data, Group got error message Cannot shift object off sheet
I created a command grouping several columns together by going to Data, Group. When I go to click on the "-" sign to group. It gives me an error message;"Cannot shift object off sheet". Why? and how can I fix it. Maybe you have some objects that get rearranged when you hide the columns using your grouping symbols. This may have some suggestions that work for you. It's kind of a similar problem. XL: "Cannot Shift Objects Off Sheet" Error Hiding Columns http://support.microsoft.com/default.aspx?scid=kb;en-ca;211769 Remember to look for comments and merged ...

Endless scrolling error
HI: I've encountered this at several GP v9 installations and my present users want to know what's up. Example: Click the spyglass to bring up let's say the vendor list to select a vendor. Start scrolling with the mouse scroll wheel and all of a sudden it automatically scrolls uncontrollably to the bottom of the list. You can't stop it. It just keeps scrolling and if the list is long enough you may as well go for a coffee break. Any ideas please?? Thanks GP Guy, I seem to recall someone mentioning this being an issue in V9.0 at some point. However, I am not sure i...

Word 2007--pesky black dotted line
Hello: I have this moderately thick, black, dotted line running between paragraphs on my page. I have no idea how to get this thing to go away. Please, could you tell me what to do to get rid of it? Thanks, John Saxon See here http://word.mvps.org/faqs/formatting/CantGetRidOfLine.htm -- Mary Sauer MVP http://msauer.mvps.org/ "John" <someone@someplace.invalid> wrote in message news:2B22C75C-4BBB-43E0-8C67-BE19C55B818C@microsoft.com... > Hello: > > I have this moderately thick, black, dotted line running between paragraphs on > my p...

Import customizations SQL error
We have a CRM 3.0 rollup 1 test/prototype system using SQL 2005 SP1. I have exported out all the customizations which includes new entities. When I import them into a replicar new blank CRM system it generates a CRM error box saying SQL error. Please contact your system administrator. I've managed to do several imports, importing a small amount of entities in at a time. They have all gone in except for Opportunity, which I still receive the SQL error. I notice that looking at the opportunity form, that they have partly been imported in. The SQLERROR log file provides no help. What ...

Error 0x800CCC0E
After installing XP, SP1 and all the latest patches, I receive the following message when sending eMail through Ooutlook Express. The connection to the server has failed. Account: 'pop.charter.net', Server: 'smtp.charter.net', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E I do NOT have the option to usee SSL with SMTP checked in the configuration. My eMail provider tells me that the latest patch broke my OE installation and that there is nothing they can do. Any help would be appreciated. > After installing XP, SP1 and ...