Show how to generate a client proxy class using a language such as C++ that does not support reflection, for example from the CORBA interface definition given in your answer to Exercise 5.13. Give the details of the implementation of one of the methods in this class, which should call the method doOperation
What will be an ideal response?
Each proxy method is generated from the signature of the method in the IDL interface,e.g.
void vote(in string name, in long number);
An equivalent stub method in the client language e.g. C++ is produced e.g.
void vote(const char *vote, int number)
Each method in the interface is given a number e.g. vote = 1, result = 2.
use char args[length of string + size of int] and marshall two arguments into this array and call doOperation
as follows:
char * result = DoOperation(ref, 1, args);
we still assume that ref is an instance variable of the proxy class. A marshalling method is generated for each argument type used.
You might also like to view...
_______ is the process whereby a user first makes itself known to a CA prior to that CA issuing a certificate or certificates for that user.
A. Authorization B. Registration C. Certification D. Initialization
Which of the following statements about SolidColorBrushes and ImageBrushes is false?
a) You can use SolidColorBrushes and ImageBrushes to change an element’s graphic properties, such as the Fill, Stroke or Background. b) A SolidColorBrush specifies a solid color to apply to a property. c) If you’re editing the XAML directly, the IDE’s IntelliSense feature will display a drop-down list of predefined color names that you can use. d) You may also specify any solid color you like via the Properties window’s Stroke section.