but here comes another issue which is how can i pass the return handler from MTK_ConnectDevice to MTK_DisconnectDevice. Example after i was use the connectDevice function, then when i try to disconnect it, i would require to put in the return handler value of MTK_ConnectDevice in to the MTK_DisconnectDevice paramater but i got abit clueless on how to do it, from what i google search i was require to use the address of function in order to use the handler, but tbh i got no clue on the correct method to implement this function. according from my google search, the method for me to use the address of would bebut whenever i was using this line, i keep getting the error of invalid use of addressof operator, may i know what is this issue? and really sorry for causing any possible trouble to you. thank youCode:lngResult = MTK_DisconnectDevice(AddressOf MTK_ConnectDevice,sResp)




Reply With Quote
