有關wchar_t之宣告一問 |
尚未結案
|
kelvin00929
一般會員 發表:6 回覆:6 積分:2 註冊:2004-04-22 發送簡訊給我 |
|
justdo
高階會員 發表:2 回覆:359 積分:222 註冊:2004-08-17 發送簡訊給我 |
|
bass15
高階會員 發表:24 回覆:171 積分:119 註冊:2003-10-27 發送簡訊給我 |
WideString DeviceAddress="192.168.1.3";
這樣不知道符不符合你的要求阿??
WideString represents strings of 16-bit characters (wchar_t). As such, it is useful when working with COM. WideString values are easily converted to or from BSTR values. WideString also supports sharing the value of an existing BSTR. The C class WideString is functionally equivalent to an Object Pascal intrinsic type, also called WideString.
|
kelvin00929
一般會員 發表:6 回覆:6 積分:2 註冊:2004-04-22 發送簡訊給我 |
引言: WideString DeviceAddress="192.168.1.3"; 這樣不知道符不符合你的要求阿?? WideString represents strings of 16-bit characters (wchar_t). As such, it is useful when working with COM. WideString values are easily converted to or from BSTR values. WideString also supports sharing the value of an existing BSTR. The C class WideString is functionally equivalent to an Object Pascal intrinsic type, also called WideString.謝謝你,這樣可以用了, 可是我還是有一點不懂, 因為我有import 一個VC 寫的OCX, 其中一個method的參數所需的type即為wchar_t, 但如果我以我上面所說或是依照justdo大大所說的宣告, 雖然可以compile,但是在執行時都會有很奇怪的錯誤發生, 這三種宣告方式難道不一樣嗎? |
way99
一般會員 發表:10 回覆:10 積分:4 註冊:2003-06-16 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |