IUIX_Inst::Str2ID Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_Inst::Str2ID Method}}
 
{{#customTitle:IUIX_Inst::Str2ID Method}}
 +
{{#parentPage:PXV:IUIX_Inst#Methods|Str2ID|method}}
  
The method of interface of PDF-XChange Editor SDK.
+
 
 +
Converts string ID to numerical ID.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT Str2ID([in] BSTR pStr, [in, defaultvalue(-1)] VARIANT_BOOL bAddIfNotExists, [out, retval] LONG* pID);</pre>
+
<pre class="brush:cpp;gutter:false">HRESULT Str2ID([in]                   BSTR         sStr,
 +
              [in, defaultvalue(-1)] VARIANT_BOOL bAddIfNotExists,
 +
              [out, retval]           LONG*         nID);</pre>
  
 
== Parameters ==
 
== Parameters ==
;''pStr''
+
;sStr
:[in]  Value of BSTR.
+
:[in]  string ID to convert.
;''bAddIfNotExists''
+
;bAddIfNotExists
:[in, defaultvalue(-1)]  Value of VARIANT_BOOL.
+
:[in, defaultvalue(-1)]  if this parameter is set to VARIANT_TRUE, method will register '''sStr''' string ID if it doesn't exist yet.
;''pID''
+
;nID
:[out, retval]  Pointer to LONG.
+
:[out, retval]  return value of converted numerical ID.
  
 
== Return Value ==
 
== Return Value ==
Returns S_OK if operation was successful or error code in other cases.
+
Returns S_OK if the operation was successful, or will return an error code if it fails.  
  
 
== See Also ==
 
== See Also ==
See also [[PXV:IUIX_Inst|IUIX_Inst]].
+
[[PXV:IUIX_Inst|IUIX_Inst]]

Latest revision as of 11:41, 16 June 2015


Converts string ID to numerical ID.

Syntax

HRESULT Str2ID([in]                    BSTR          sStr,
               [in, defaultvalue(-1)]  VARIANT_BOOL  bAddIfNotExists,
               [out, retval]           LONG*         nID);

Parameters

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

Return Value

Returns S_OK if the operation was successful, or will return an error code if it fails.

See Also

IUIX_Inst