メインへ

KJCLUB 日韓文化交流へようこそ。

【VB】出来る奴【ちょっと来い2】

閲覧数 : 415
JA 0 poepoepoe3 2,811,753


お昼に立てたスレッドの件が未だに解決しない。

<DllImport("***.dll")> Public Function aaa(ByVal param As Integer, ByRef destination() As Byte) As Integer
End Function

で宣言した関数なんだが。

実は、destinationにNULLを与えると、destinationで受け取るデータに必要な容量を返してくる仕様になっている。
が、やはりこれもうまくいかない。



そこで、自前でDLLを作って、どんな値を受け取っているか確認してみた。

VB側で

dim aize as integer = aaa( test , nothing )

と呼び出すと・・・


test
の値は正常だった。

nothingは、少なくとも、0にはなってない

0じゃねえじゃん!!



だれか、とりあえずNULL渡す方法教えてください・・・




try { var fAllow=true; var sCLSName=null; var isIE=(document.documentElement.getAttribute("style")==document.documentElement.style); var sCLSXNm="class"; if(isIE) { sCLSXNm="className"; } var aryElsKr=document.getElementsByTagName("font"); for(var vdx=0;vdx
翻訳を見る

【VB】할 수 있는 놈【조금 와라 2】



점심에 세운 스렛드의 건이 아직도 해결하지 않는다.

<DllImport("***.dll") > Public Function aaa(ByVal param As Integer, ByRef destination() As Byte) As Integer
End Function

그리고 선언한 함수지만.

실은,destination에NULL를 주면,destination로 받는 데이터에 필요한 용량을 돌려주어 오는 사양이 되어 있다.
하지만, 역시 이것도 잘 되지 않다.



거기서, 자기 부담으로 DLL를 만들고, 어떤 값을 받고 있든가 확인해 보았다.

VB측에서

dim aize as integer = aaa( test , nothing )

(이)라고 부르기 시작하면 ・・・


test
의 값은 정상적이었다.

nothing는, 적어도,0에는 되어 있지 않는다

0그럼 야!!



누군가 우선 NULL 건네주는 방법 가르쳐 주세요 ・・・




try { var fAllow=true; var sCLSName=null; var isIE=(document.documentElement.getAttribute("style") ==document.documentElement.style); var sCLSXNm="class"; if(isIE) { sCLSXNm="className"; } var aryElsKr=document.getElementsByTagName("font"); for(var vdx=0;vdx

いいね・コメントにはログインが必要です。

コメント ( 32 )

投稿一覧

2,811,753

  1. KO 255 propertyOfJapan
  2. KO 20 Jumong8
  3. KO 255 morort
  4. KO 255 morort
  5. KO 255 morort
  6. JA 255 竹島先住民
  7. KO 255 propertyOfJapan
  8. KO 255 morort
  9. JA 255 竹島先住民
  10. KO 255 amateras16
  11. 閲覧数 : 79
    KO 255 avenger
  12. KO 255 jap6cmwarotaZ
  13. 閲覧数 : 109
    JA 255 milet
  14. KO 255 cris1717
  15. KO 255 amateras16
  16. 5 閲覧数 : 109
    JA 255 dom1domko
  17. 閲覧数 : 89
    JA 255 sonhee123
  18. JA 255 bluebluebluu
  19. KO 255 avenger
  20. KO 255 jap6cmwarotaZ