hi 

When i call a method in a custom dll file, This method requires a pointer 
to a char type like this 

int GetInfo(int *cardno,char *username);


i call this function like 

> cardNo := int64(0)
>
userName := "" 
>
r1,r2,errno := 
> syscall.Syscall(funcName,2,uintptr(cardNo),uintptr(unsafe.Pointer(&userName)),0)
>

as this func describe it will return the currect cardno and username to 
cardNo and userName 

but when i run this , i got this result :
 r1 = 0 , r2 = 917452 , errno = 0, cardNo = 0 userName = ""

how can i get the right result ?

pleasehelp me on this 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to