passing multidimensional array from asp to vb6 dll -


i have tried every available on other relative topics, nothing sorted out issue , code below

vb6 (dll code):

public function enterorder(vals() variant, ordhdr() variant) string ................... code ............ enterorder = "done" end function 

asp :

set objdll = server.createobject("dllproname.classname")  dim values(1, 4) dim ordhdr(1) dim ret ordhdr(0) = "1012" ordhdr(1) = "asp testing descript" values(0, 0) = "testing " values(0, 1) = "testing 2" values(0, 2) = "ho" values(0, 3) = "2.0000" values(0, 4) = "12.0000"  values(1, 0) = "testing part 2 " values(1, 1) = "testing again" values(1, 2) = "ho" values(1, 3) = "2.0000" values(1, 4) = "12.0000"  ret = objdll.enterorder(values(), ordhdr()) response.write("done") 

the code giving error :

microsoft vbscript runtime error '800a0009' subscript out of range

i have tried removing multidimensional arrays , sending normal array, same error remains.

i have tried removing paranthesis () while passing array ( objdll.enterorder(values , ordhdr)

) gives type mismatch error.

my vb6 code accepting string arrays, changed variant type following guidelines on topics, didn't helped.

the same code works , if add dll vb6 project reference , call same function, works perfect. same code asp don't work.

thanks.

remove () when declaring variant

public function enterorder(vals variant, ordhdr variant) string 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -