掲示板システム
ホーム
アクセス解析
カテゴリ
ログアウト
MoveMemoryの使い方 (ID:102504)
名前
ホームページ(ブログ、Twitterなど)のURL (省略可)
本文
> ここは意図してやっていました。 了解です。 > ...あってますでしょうか? と思います。文字列をバイト単位で扱う一つの例です。 Declare Sub MoveMemory Lib "Kernel32" Alias "RtlMoveMemory" _ (pDest As Any, pSrc As Any, ByVal cbLen As Long) Sub Test() Dim a As String, c() As Byte a = "あああaaaあああaaaa" ReDim c(1 To LenB(a)) MoveMemory c(1), ByVal StrPtr(a), LenB(a) MsgBox c End Sub
←解決時は質問者本人がここをチェックしてください。
戻る
掲示板システム
Copyright 2020 Takeshi Okamoto All Rights Reserved.