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. _variant_t AND FieldPtr

_variant_t AND FieldPtr

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
5 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.
  • P Offline
    P Offline
    Paulraj G
    wrote on last edited by
    #1

    hi... i was declared as _variant_t vc; FieldPtr fieldpointer; but the error is _variant_t undeclared identifier. FieldPtr undeclared identifier. should i add any header file? i think this is a silly question. but sorry... i don't know.

    paulraj

    X Z 2 Replies Last reply
    0
    • P Paulraj G

      hi... i was declared as _variant_t vc; FieldPtr fieldpointer; but the error is _variant_t undeclared identifier. FieldPtr undeclared identifier. should i add any header file? i think this is a silly question. but sorry... i don't know.

      paulraj

      X Offline
      X Offline
      xcavin
      wrote on last edited by
      #2

      gnanapaul wrote:

      i was declared as _variant_t vc;

      There lies the problem, you should have declared yourself as "real".

      1 Reply Last reply
      0
      • P Paulraj G

        hi... i was declared as _variant_t vc; FieldPtr fieldpointer; but the error is _variant_t undeclared identifier. FieldPtr undeclared identifier. should i add any header file? i think this is a silly question. but sorry... i don't know.

        paulraj

        Z Offline
        Z Offline
        zengkun100
        wrote on last edited by
        #3

        _variant_t is defined is comutil.h and You should import before using FieldPtr

        A Chinese VC++ programmer

        P 2 Replies Last reply
        0
        • Z zengkun100

          _variant_t is defined is comutil.h and You should import before using FieldPtr

          A Chinese VC++ programmer

          P Offline
          P Offline
          Paulraj G
          wrote on last edited by
          #4

          thank you. _varient error is cleared now. am using mfc. here how can import? pls can you tell brief or pls can you send sample code?

          paulraj

          1 Reply Last reply
          0
          • Z zengkun100

            _variant_t is defined is comutil.h and You should import before using FieldPtr

            A Chinese VC++ programmer

            P Offline
            P Offline
            Paulraj G
            wrote on last edited by
            #5

            hi... thank nyou for your guidance... i got the output.

            paulraj

            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