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

  • Home
  • SEARCH
  • 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 6626241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:52:11+00:00 2026-05-25T21:52:11+00:00

I’m new to CORBA and is trying to create a Corba interface for my

  • 0

I’m new to CORBA and is trying to create a Corba interface for my QT Application. I checked the data types that you could use with CORBA, but I’m not sure if I could use a QT object as a parameter in a CORBA function. What I would want to pass is QWSPointerCalibrationData. Let’s say I have a CORBA server code :

//pass data.screenPoints and data.devPoints

CORBA::Boolean Calibrate( QWSPointerCalibrationData data )
{
  ...
}
  • Is this possible?
  • If yes, how do I declare it in the IDL file?
  • if not, what CORBA data type can I use so I could pass these type of data?
  • 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-25T21:52:12+00:00Added an answer on May 25, 2026 at 9:52 pm

    As you have the code, this is not possible. You have to specify IDL types equivalent to those that you’re using in your application, and also provide (sigh, yes) conversion functions between those types defined in CORBA IDL and the ones defined in your application. As an advantage, you blind your application to future changes in the communication (or RPC) technology, as you’re using internally your own types. In this case, looking at the documentation, the QWSPointerCalibrationData type has two data members:

    QPoint  devPoints[5] 
    QPoint  screenPoints[5]
    

    Then you should declare in your IDL first the QPoint type and then the QWSPointerCalibrationData (I prepend the names with C_ to denote CORBA types):

    // IDL
    struct C_Point { long x; long y; };
    typedef sequence<C_Point> Points;
    struct C_WSPointerCalibrationData
    {
        Points devPoints;
        Points screenPoints;
    };
    

    Then, your server method has to be:

    CORBA::Boolean Calibrate( C_QWSPointerCalibrationData const& data )
    {
        QWSPointerCalibrationData qpcd = convert_from_CORBA_QWSPointerCalibrationData(data);
        // use qpcd as usual here
    }
    

    and you have to write the convert_from_CORBA_QWSPointerCalibrationData function yourself (and the corresponding that converts that type to the CORBA counterpart). There are some tools available to do that conversion, but yes, it is a pity, that must be done.

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

Sidebar

Related Questions

I'm trying to create an if statement in PHP that prevents a single post
I am trying to understand how to use SyndicationItem to display feed which is
I want use html5's new tag to play a wav file (currently only supported
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I want to construct a data frame in an Rcpp function, but when I
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm new to using the Perl treebuilder module for HTML parsing and can't figure
link Im having trouble converting the html entites into html characters, (&# 8217;) i

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.