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. error C2065: '_Application' : undeclared identifier

error C2065: '_Application' : undeclared identifier

Scheduled Pinned Locked Moved C / C++ / MFC
helpcom
4 Posts 3 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.
  • D Offline
    D Offline
    Davitor
    wrote on last edited by
    #1

    Hi all i am useing this link [http://support.microsoft.com/kb/q243394/](<a href=) for write data in excel.I have include these files

    #include <afxdao.h>

    //
    #import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE12\\MSO.DLL"

    using namespace Office;

    #import "C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.OLB"

    using namespace VBIDE;

    #import "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE" \
    rename( "DialogBox", "ExcelDialogBox" ) \
    rename( "RGB", "ExcelRGB" ) \
    rename( "CopyFile", "ExcelCopyFile" ) \
    rename( "ReplaceText", "ExcelReplaceText" )

    "stdafx.h". But i have a error error C2065: '_Application' : undeclared identifier.Plz help me

    S 1 Reply Last reply
    0
    • D Davitor

      Hi all i am useing this link [http://support.microsoft.com/kb/q243394/](<a href=) for write data in excel.I have include these files

      #include <afxdao.h>

      //
      #import "C:\\Program Files\\Common Files\\Microsoft Shared\\OFFICE12\\MSO.DLL"

      using namespace Office;

      #import "C:\\Program Files\\Common Files\\Microsoft Shared\\VBA\\VBA6\\VBE6EXT.OLB"

      using namespace VBIDE;

      #import "C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE" \
      rename( "DialogBox", "ExcelDialogBox" ) \
      rename( "RGB", "ExcelRGB" ) \
      rename( "CopyFile", "ExcelCopyFile" ) \
      rename( "ReplaceText", "ExcelReplaceText" )

      "stdafx.h". But i have a error error C2065: '_Application' : undeclared identifier.Plz help me

      S Offline
      S Offline
      Stuart Dootson
      wrote on last edited by
      #2

      _Application is in the Excel namespace when you import it like that. Either explicitly qualify the use of Excel objects or add 'using namespace Excel;' after the last #import statement.

      Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

      D 1 Reply Last reply
      0
      • S Stuart Dootson

        _Application is in the Excel namespace when you import it like that. Either explicitly qualify the use of Excel objects or add 'using namespace Excel;' after the last #import statement.

        Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

        D Offline
        D Offline
        Davitor
        wrote on last edited by
        #3

        Thanks for reply Mr. Stuart Dootson. See i am getting problem to write data in excel and read from mysql.I am searching here and there but i havn't found any good example or tips.If any one have example then plz givem.Plz help me

        D 1 Reply Last reply
        0
        • D Davitor

          Thanks for reply Mr. Stuart Dootson. See i am getting problem to write data in excel and read from mysql.I am searching here and there but i havn't found any good example or tips.If any one have example then plz givem.Plz help me

          D Offline
          D Offline
          David Crow
          wrote on last edited by
          #4

          Davitor wrote:

          See i am getting problem to write data in excel...I am searching here and there but i havn't found any good example or tips.If any one have example then plz givem.Plz help me

          Does this help?

          "Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          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