Hello all,
i have a dll that returns a pointer to a string but i can seem to work out how to read the actual string its self. the coad is simple:
Global gethostname() "win32"
Global p:Int
dll = LoadlibraryA ("network.dll")
gethostname= getprocaddress(dll,"gethostname")
p=gethostname()
Print p
this returds a number in p but if i use:
Global p:Int ptr
i get compile error unable to convert int to int prt. at the line 'p=gethostname()'
any ideas on how i can reteve the string ?
i have a dll that returns a pointer to a string but i can seem to work out how to read the actual string its self. the coad is simple:
Global gethostname() "win32"
Global p:Int
dll = LoadlibraryA ("network.dll")
gethostname= getprocaddress(dll,"gethostname")
p=gethostname()
Print p
this returds a number in p but if i use:
Global p:Int ptr
i get compile error unable to convert int to int prt. at the line 'p=gethostname()'
any ideas on how i can reteve the string ?