Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6197295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:47:47+00:00 2026-05-24T03:47:47+00:00

I encountered this error: cannot convert ‘V_DTLPROMO_BTN_FN_T’ to ‘V_DTLPROD_BTN_FN_T’ in argument passing in code

  • 0

I encountered this error:

cannot convert 'V_DTLPROMO_BTN_FN_T' to 'V_DTLPROD_BTN_FN_T' in argument passing

in code line:

[ m_vPromoDetails   changeButton : V_DTLPROMO_BTN_2 btnFn : V_DTLPROMO_BTN_FN_ADD ]; 

Both arguments are of type V_DTLPROMO_BTN_T & V_DTLPROMO_BTN_FN_T which is are enum declared in the .h file. Things were working fine until I changed the implementation file extension to .mm from .m to accommodate some C/C++ related code.

Prototype declaration

- ( void )changeButton : ( V_DTLPROMO_BTN_T    )button 
             btnFn : ( V_DTLPROMO_BTN_FN_T )btnFn

Enum definitions

    typedef enum
{
  V_DTLPROMO_BTN_FN_NONE        =   0,   /**< None                       */
  V_DTLPROMO_BTN_FN_RECOMMEND   =   1,   /**< Recommend                  */
  V_DTLPROMO_BTN_FN_ADD         =   2,   /**< Add                        */
  V_DTLPROMO_BTN_FN_DELETE      =   3,   /**< Delete                     */
  V_DTLPROMO_BTN_FN_LOCATE      =   4,   /**< Locate                     */
  V_DTLPROMO_BTN_FN_BUY_NOW     =   5,   /**< Buy Now                    */
  V_DTLPROMO_BTN_FN_SHOPPED     =   6,   /**< Shopped                    */
  V_DTLPROMO_BTN_FN_TWEET       =   7,   /**< Locate                     */
  V_DTLPROMO_BTN_FN_NUM         =   8    /**< Number of function choices */

} V_DTLPROMO_BTN_FN_T;


    typedef enum
{
  V_DTLPROMO_BTN_1     =   0,   /**< Button: 1         */
  V_DTLPROMO_BTN_2     =   1,   /**< Button: 2         */
  V_DTLPROMO_BTN_3     =   2,   /**< Button: 3         */
  V_DTLPROMO_BTN_NUM   =   3    /**< Number of buttons */

} V_DTLPROMO_BTN_T;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:47:48+00:00Added an answer on May 24, 2026 at 3:47 am

    V_DTLPROD_BTN_FN_T is an enum declared in another class.My detailpromo class was somehow getting confused by that enum in detailprod class.I noticed that the function names were same in both the classes ,so I tried to change the function name from changeButton to changeButtonForPromo.That did the trick and errors were removed.Still havent got the technical explanation for that.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I encountered this error: Cannot implicitly convert type System.Web.UI.WebControls.LoginView to Login The error occured
I'm trying to implement this singleton class. But I encountered this error: 'Singleton::~Singleton': cannot
I'am very new to google-apps-script. I encounter this error TypeError: Cannot find function getValue
I encountered this error: The type or namespace name 'WebControls' could not be found
I have encountered this error when trying to delete a cell, using a custom
Using NHibernate 1.x we encountered this error, suddently, during a nigthly job: 25/06/2012 22:50:59
This was the first time I encountered this kind of error after dealing with
Okay, I might be going crazy but I've never encountered this error before. This
Anyone encountered this error before when trying to access the photo library using the
Converting a project from Codeblocks to Visual Studio I encountered this puzzling error from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.