<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I have such situation that want to hide the handwritten functions, for example<br>
</div>
<div style="" class="elementToProof">
<blockquote style="border-color:rgb(200, 200, 200);border-left:3px solid rgb(200, 200, 200);padding-left:1ex;margin-left:0.8ex;color:rgb(102, 102, 102)">
<span style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">struct Foo /Abstract/</span>
<div style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">
{</div>
<div style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">
HRESULT get_Count(long *count /Out/) = 0;</div>
<div style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">
long getCount();<br>
</div>
<div style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">
%MethodCode</div>
<div style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">
long count = 0;<br>
</div>
<div style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">
sipCpp->get_Count(&count);</div>
<div style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">
sipRes = count;<br>
</div>
<div style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">
%End</div>
<div style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">
%Property(name=Count, get=getCount)<br>
</div>
<span style="font-family:Calibri, Helvetica, sans-serif;font-size:12pt;color:rgb(0, 0, 0)">};</span></blockquote>
</div>
<div style="" class="elementToProof">the <b>getCount </b>is not the original interface method, I just want to make the get_Count be a property, so write one helper function and use the %Property directive.</div>
<div style="" class="elementToProof">But I don't want the user see or call the <b>
getCount</b> method directly, only the get_Count or Count property is acceptable.</div>
<div style="" class="elementToProof"><br>
</div>
<div style="" class="elementToProof">It is possible do that? Or is any other way to expose get_Count as a property?<br>
</div>
</body>
</html>