winVariant 函式庫 風禹科技驗證有限公司 網站 提供 .Net 原始碼

ConvertBSTRToString 函數

說明

將 BSTR 字串轉回 Fortran 字串

本函數之引數列表

引數 型態 位元組 選項 預設值 說明
bstr Integer 4 必須 (無) BSTR 字串指標
string Character*(*) - 必須 (無) 預留大小之 Fortran 字串空間

傳回值

傳回字串長度

範例

length = ConvertBSTRToString(vBSTR%VU%PTR_VAL, strVariant)
MyVariantToString = Trim(strVariant)

更進一步

本函數內建於 ifcom 模組內,可用 use ifcom 取代

基本條件

Intel Visual Fortran 7.0 以後 | wVariant.f90

請參閱

winVariant 函式庫 | ConvertStringToBSTR