Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-5365

wrong datatypes generated by dumpccp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P3: Somewhat important
    • Some future release
    • 4.4.3
    • ActiveX Support
    • None

    Description

      I am using dumpcpp to generate the interface of an ActiveX element driving an ultrasound system.

      One of the function generated by dumpcpp is

      inline bool TTRFReceiver::GetZoneInfo(int zone, int& pStartSample, int& pEndSample, double& pMetersPerSample, double& pTransmitFrequency, double& pFocusDepthCM)
      {
      bool qax_result;
      void *_a[] =

      {(void*)&qax_result, (void*)&zone, (void*)&pStartSample, (void*)&pEndSample, (void*)&pMetersPerSample, (void*)&pTransmitFrequency, (void*)&pFocusDepthCM}

      ;
      qt_metacall(QMetaObject::InvokeMetaMethod, 45, _a);
      return qax_result;
      }

      When I use this function with the suggested dada types I get the error

      QAxBase: Error calling IDispatch member GetZoneInfo: Type mismatch in parameter 1

      although I definitely use an int as first parameter.

      Using other tools to generate the interface results in the parameters
      GetZoneInfo(short, short&, short&, double& double&, double&) (short's instead of int's)

      This interface works well and is also documented by the vendor of the ActiveX element.

      This seems to be a bug of dumpcpp.

      Furthermore, dumpcpp ignores the namespace option -n as well as the option -compat. Using these options does not change anything.

      Attachments

        1. TTRFReceiver.ocx
          48 kB
        2. ttrfreceiverlib.cpp
          6 kB
        3. ttrfreceiverlib.h
          17 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            pullatti Prasanth Ullattil
            haraldhoppe Harald Hoppe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes