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. Help

Help

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
14 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.
  • M manu_2205

    Hi I want to use COleVariant class object . I also include "afxdisp.h" But it show compit time error "error C2065: 'COleVariant' : undeclared identifier" what is the reason.

    manu

    H Offline
    H Offline
    Hamid Taebi
    wrote on last edited by
    #2

    Whats your program and your compiler?


    WhiteSky


    M 2 Replies Last reply
    0
    • H Hamid Taebi

      Whats your program and your compiler?


      WhiteSky


      M Offline
      M Offline
      manu_2205
      wrote on last edited by
      #3

      CoInitialize(NULL); IRDOSession* Session; HRESULT hr; hr=CoCreateInstance(__uuidof(RDOSession),NULL,CLSCTX_INPROC_SERVER,__uuidof(IRDOSession),(void**) &Session); COleVariant covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);//error here Session->Logon(covOptional,covOptional, covOptional, covOptional, covOptional, covOptional);

      manu

      1 Reply Last reply
      0
      • H Hamid Taebi

        Whats your program and your compiler?


        WhiteSky


        M Offline
        M Offline
        manu_2205
        wrote on last edited by
        #4

        Plz tell the solution Thanx in advance

        manu

        H 1 Reply Last reply
        0
        • M manu_2205

          Plz tell the solution Thanx in advance

          manu

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #5

          Im using vs2003 and its good working


          WhiteSky


          M 1 Reply Last reply
          0
          • H Hamid Taebi

            Im using vs2003 and its good working


            WhiteSky


            M Offline
            M Offline
            manu_2205
            wrote on last edited by
            #6

            i have also vs2003.can u tell me how to write it .

            manu

            H 1 Reply Last reply
            0
            • M manu_2205

              i have also vs2003.can u tell me how to write it .

              manu

              H Offline
              H Offline
              Hamid Taebi
              wrote on last edited by
              #7

              COleVariant covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);//without error 0 error(s), 0 warning(s) whats application type


              WhiteSky


              M 1 Reply Last reply
              0
              • H Hamid Taebi

                COleVariant covOptional((long)DISP_E_PARAMNOTFOUND, VT_ERROR);//without error 0 error(s), 0 warning(s) whats application type


                WhiteSky


                M Offline
                M Offline
                manu_2205
                wrote on last edited by
                #8

                win32 console project

                manu

                H 1 Reply Last reply
                0
                • M manu_2205

                  win32 console project

                  manu

                  H Offline
                  H Offline
                  Hamid Taebi
                  wrote on last edited by
                  #9

                  :-DAnd also on Win32 Console Project with insert Afxdisp.h its working when you insert this file you get same error undeclared identifier


                  WhiteSky


                  M 1 Reply Last reply
                  0
                  • H Hamid Taebi

                    :-DAnd also on Win32 Console Project with insert Afxdisp.h its working when you insert this file you get same error undeclared identifier


                    WhiteSky


                    M Offline
                    M Offline
                    manu_2205
                    wrote on last edited by
                    #10

                    ya after including the afxwin.h it produce the same error.

                    manu

                    H 1 Reply Last reply
                    0
                    • M manu_2205

                      ya after including the afxwin.h it produce the same error.

                      manu

                      H Offline
                      H Offline
                      Hamid Taebi
                      wrote on last edited by
                      #11

                      Did you use of <> in include


                      WhiteSky


                      M 1 Reply Last reply
                      0
                      • H Hamid Taebi

                        Did you use of <> in include


                        WhiteSky


                        M Offline
                        M Offline
                        manu_2205
                        wrote on last edited by
                        #12

                        ya i also use

                        manu

                        H 2 Replies Last reply
                        0
                        • M manu_2205

                          ya i also use

                          manu

                          H Offline
                          H Offline
                          Hamid Taebi
                          wrote on last edited by
                          #13

                          If you create a new project(win32 console) and insert COleVariant in this new project and also include this file to stdafx.h of your project what happens?


                          WhiteSky


                          1 Reply Last reply
                          0
                          • M manu_2205

                            ya i also use

                            manu

                            H Offline
                            H Offline
                            Hamid Taebi
                            wrote on last edited by
                            #14

                            Did you try it?what happend?


                            WhiteSky


                            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