[Migrated content. Thread originally posted on 14 October 2008]
helloi have a problem getting a unsigned int declerated return value off a c-dll function.
situation:
01 handle1 usage is handle.
01 port usage unsigned-int.
01 CardType usage unsigned-int.
01 structure1.
05 var1 pic x(30).
05 pic x.
05 var2 pic x(25).
05 pic x.
05 var3 usage unsigned-int.
05 pic x.
05 var4 pic x(15).
05 pic x.
call "dllfunction" using by value handle1,
by value port,
by reference CardType,
by reference structure1
end-call.
Problem:
handle and port are correct transmitted to the function but the return-value does not contain the desired values. the strings in this structure work as intended but neither CardType or var3 contain the values the c-function returns. how do i get unsigned int values of a c-function? am i missing something obvious?
*edit*: typo



