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

USES_CONVERSION

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

    Hello guys, I am been working on developing a plugin for Adobe Director, Speech recognition. I am been getting Stuck in a macro USES_CONVERSION. It is unable to execute the statements following this macro. Can anybody provide help exactly how to debug this particular error

    Girish Software Developer

    P W P 3 Replies Last reply
    0
    • G Girish601

      Hello guys, I am been working on developing a plugin for Adobe Director, Speech recognition. I am been getting Stuck in a macro USES_CONVERSION. It is unable to execute the statements following this macro. Can anybody provide help exactly how to debug this particular error

      Girish Software Developer

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      Girish601 wrote:

      am been getting Stuck in a macro USES_CONVERSION.

      It is just a macro. Can you show code ?

      Girish601 wrote:

      It is unable to execute the statements following this macro.

      How you know that ? Is function retuning from that line ?

      Prasad Notifier using ATL | Operator new[],delete[][^]

      K 1 Reply Last reply
      0
      • P prasad_som

        Girish601 wrote:

        am been getting Stuck in a macro USES_CONVERSION.

        It is just a macro. Can you show code ?

        Girish601 wrote:

        It is unable to execute the statements following this macro.

        How you know that ? Is function retuning from that line ?

        Prasad Notifier using ATL | Operator new[],delete[][^]

        K Offline
        K Offline
        Kharfax
        wrote on last edited by
        #3

        USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem... Is defined in atlconv.h #define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa) I don't know man, no idea what could be the problem

        P 1 Reply Last reply
        0
        • K Kharfax

          USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem... Is defined in atlconv.h #define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa) I don't know man, no idea what could be the problem

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          Kharfax wrote:

          USES_CONVERSION is a macro that allows to use BSTR string conversion functions like OLE2T and T2OLE, at least thats why I used it, but never gave me any problem... Is defined in atlconv.h #define USES_CONVERSION int _convert = 0; (_convert); UINT _acp = ATL::_AtlGetConversionACP() /*CP_THREAD_ACP*/; (_acp); LPCWSTR _lpw = NULL; (_lpw); LPCSTR _lpa = NULL; (_lpa)

          I know why its used. I asked OP the code following it.

          Prasad Notifier using ATL | Operator new[],delete[][^]

          1 Reply Last reply
          0
          • G Girish601

            Hello guys, I am been working on developing a plugin for Adobe Director, Speech recognition. I am been getting Stuck in a macro USES_CONVERSION. It is unable to execute the statements following this macro. Can anybody provide help exactly how to debug this particular error

            Girish Software Developer

            W Offline
            W Offline
            Waldermort
            wrote on last edited by
            #5

            Before you use any of the A2W, W2A... macros, you must first define USES_CONVERSION. That macro is not a function itself, but defining it allows you to use the conversion macros.

            1 Reply Last reply
            0
            • G Girish601

              Hello guys, I am been working on developing a plugin for Adobe Director, Speech recognition. I am been getting Stuck in a macro USES_CONVERSION. It is unable to execute the statements following this macro. Can anybody provide help exactly how to debug this particular error

              Girish Software Developer

              P Offline
              P Offline
              PJ Arends
              wrote on last edited by
              #6

              If you are using VC7.0 or later you should use the ATL7.0 conversion macros instead of the ATL3.0 ones. The ATL7.0 macros do not require USES_CONVERSION. See http://msdn2.microsoft.com/en-us/library/87zae4a3(VS.80).aspx[^].


              You may be right
              I may be crazy
              -- Billy Joel --

              Within you lies the power for good, use it!!!

              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