Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. The problem with automating Excel in VC++2005 [modified]

The problem with automating Excel in VC++2005 [modified]

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpcomdebuggingquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    progDes
    wrote on last edited by
    #1

    Have some one tried to generate MFC wrapper classes for excel interfaces? I read step-by-step tutorials on Microsoft site. Doing the same things, I'm getting 100's of errors. The tutorials are here: http://support.microsoft.com/kb/308407 http://support.microsoft.com/kb/307473/EN-US/ Errors looks like this: Error 66 error C2011: 'Picture' : 'struct' type redefinition c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 19474 Error 67 error C2146: syntax error : missing ';' before identifier 'Scripts' c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20463 Error 68 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20463 Error 69 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20463 Error 70 error C2146: syntax error : missing ';' before identifier 'MailEnvelope' c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20511 Error 71 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20511 I tried in Excel 9,10,11,12 and the thigs are same. Looks like compiler is working wrong, because there is nothing to code when generating a wraper, all code generating automatically. I don't know what to do. THE

    R 1 Reply Last reply
    0
    • P progDes

      Have some one tried to generate MFC wrapper classes for excel interfaces? I read step-by-step tutorials on Microsoft site. Doing the same things, I'm getting 100's of errors. The tutorials are here: http://support.microsoft.com/kb/308407 http://support.microsoft.com/kb/307473/EN-US/ Errors looks like this: Error 66 error C2011: 'Picture' : 'struct' type redefinition c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 19474 Error 67 error C2146: syntax error : missing ';' before identifier 'Scripts' c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20463 Error 68 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20463 Error 69 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20463 Error 70 error C2146: syntax error : missing ';' before identifier 'MailEnvelope' c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20511 Error 71 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\documents and settings\администратор\мои документы\c++projects\excel12test\debug\excel.tlh 20511 I tried in Excel 9,10,11,12 and the thigs are same. Looks like compiler is working wrong, because there is nothing to code when generating a wraper, all code generating automatically. I don't know what to do. THE

      R Offline
      R Offline
      Roger Broomfield
      wrote on last edited by
      #2

      hint, are you using the english tlh in a non english environment ?

      P 1 Reply Last reply
      0
      • R Roger Broomfield

        hint, are you using the english tlh in a non english environment ?

        P Offline
        P Offline
        progDes
        wrote on last edited by
        #3

        No, enviroment is english, but Office and OS is russian.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups