IUIX_Inst::Str2ID Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 8: Line 8:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT Str2ID([in]                    BSTR          sStr,
+
<pre class="brush:cpp;gutter:false">HRESULT Str2ID([in]                    BSTR          Str,
               [in, defaultvalue(-1)]  VARIANT_BOOL  bAddIfNotExists,
+
               [in, defaultvalue(-1)]  VARIANT_BOOL  AddIfNotExists,
               [out, retval]          LONG*        nID);</pre>
+
               [out, retval]          LONG*        ID);</pre>
  
 
== Parameters ==
 
== Parameters ==
;sStr
+
;Str
 
:[in]  string ID to convert.
 
:[in]  string ID to convert.
;bAddIfNotExists
+
;AddIfNotExists
:[in, defaultvalue(-1)]  if this parameter is set to VARIANT_TRUE, method will register '''sStr''' string ID if it doesn't exist yet.
+
:[in, defaultvalue(-1)]  if this parameter is set to VARIANT_TRUE, method will register '''Str''' string ID if it doesn't exist yet.
;nID
+
;ID
 
:[out, retval]  return value of converted numerical ID.
 
:[out, retval]  return value of converted numerical ID.
  

Revision as of 07:52, 12 June 2015


Converts string ID to numerical ID.

Syntax

HRESULT Str2ID([in]                    BSTR          Str,
               [in, defaultvalue(-1)]  VARIANT_BOOL  AddIfNotExists,
               [out, retval]           LONG*         ID);

Parameters

Str
[in] string ID to convert.
AddIfNotExists
[in, defaultvalue(-1)] if this parameter is set to VARIANT_TRUE, method will register Str string ID if it doesn't exist yet.
ID
[out, retval] return value of converted numerical ID.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IUIX_Inst