Click here to Skip to main content
15,850,750 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dears,

I have the following method
C#
[DllImport("KMY350X.dll")]
      public static extern int ScoutKeyPress(unsigned char *UcChar);


is the equivalent to it
byte* UcChar?
or is there something else i have to do

Regards,
Posted

1 solution

Depends on what ScoutKeyPress does with it: if it expects you to pass it a char* for it to fill, then you need to look ate handing it a StringBuilder.

If it is returning one, then you probably want an IntPtr instead.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900