c***@aol.com
2013-08-29 13:36:19 UTC
Even though I have 6 great books on IDL, I know almost nothing about IDL. Although, I can state the following as fact.
Briefly, how do I add a string variable to an idl struct without autogenerating a "*" in a virtual function?
The details are the following.
(1) Among additional pre-existing code, I have the below struct in an idl file. The resulting code works perfectly after compilation, etc.
struct office
{
//...
}
When I run my idl to C++ compiler on that idl file etc, I get (among other things) the below code in an autogenerated dot h C file.
virtual ::Level1::Room1 office getworker (::Level1::Cubicle number8d) = 0;
(2) I've been assigned the task of adding a new "string" variable to the struct in the above working code.
Consequently, the struct will become:
struct office
{
//...
string test;
}
When I run my idl to C++ compiler on that modified idl file, I get (among other things) the below code in an autogenerated dot h C file. Notice the new "*"!
virtual ::Level1::Room1 office * getworker (::Level1::Cubicle number8d) = 0;
(3) As you can imagine, the above "*" is unwanted because it produces a lot of compile error message. So, how can I add the string (as in 2 above) without autogenerating the "*" seen in 2 above. I want a better solution than converting the string variable to an array of char. I tried typedefing the string, but that did not work.
Thank you,
Briefly, how do I add a string variable to an idl struct without autogenerating a "*" in a virtual function?
The details are the following.
(1) Among additional pre-existing code, I have the below struct in an idl file. The resulting code works perfectly after compilation, etc.
struct office
{
//...
}
When I run my idl to C++ compiler on that idl file etc, I get (among other things) the below code in an autogenerated dot h C file.
virtual ::Level1::Room1 office getworker (::Level1::Cubicle number8d) = 0;
(2) I've been assigned the task of adding a new "string" variable to the struct in the above working code.
Consequently, the struct will become:
struct office
{
//...
string test;
}
When I run my idl to C++ compiler on that modified idl file, I get (among other things) the below code in an autogenerated dot h C file. Notice the new "*"!
virtual ::Level1::Room1 office * getworker (::Level1::Cubicle number8d) = 0;
(3) As you can imagine, the above "*" is unwanted because it produces a lot of compile error message. So, how can I add the string (as in 2 above) without autogenerating the "*" seen in 2 above. I want a better solution than converting the string variable to an array of char. I tried typedefing the string, but that did not work.
Thank you,