Forum Replies Created
Viewing 1 post (of 1 total)
- AuthorPosts
NazarParticipantNazar June 8, 2018 at 5:02 am in reply to: Error When Opening a Device (TG124A). //php bbp_reply_id(); ?>
Hello Andrew
With your information, i was able to fix the problem. I used the bb_api as a guide, so assumed the device id had to be a reference, which was the problem.
Bad:
[DllImport(“tg_api.dll”, CallingConvention = CallingConvention.Cdecl)]
public static extern tgStatus tgOpenDevice(ref int device);Good:
[DllImport(“tg_api.dll”, CallingConvention = CallingConvention.Cdecl)]
public static extern tgStatus tgOpenDevice(int device);Thank you very much
Nazar- AuthorPosts
Viewing 1 post (of 1 total)