Home > Net >  C # the C interface?
C # the C interface?

Time:12-12


C + + SDK such an interface, the returned is a string, what to call?

CodePudding user response:

Where it is int, string?

CodePudding user response:

refer to the second floor ziqi0716 response:
int, i.e., where the string?

ET_Buffer * pDongleInfo

CodePudding user response:

https://download.csdn.net/detail/cumtwys/7699425

CodePudding user response:

reference Nick_Ngai reply: 3/f
Quote: refer to the second floor ziqi0716 response:
int, i.e., where the string?

ET_Buffer * pDongleInfo

What is this call reference, ET_Buffer definition? Char *? C # can use StringBuilder.

CodePudding user response:

refer to 6th floor ziqi0716 response:
Quote: refer to the third floor Nick_Ngai response:
Quote: refer to the second floor ziqi0716 response:
int, i.e., where the string?

ET_Buffer * pDongleInfo

What is this call reference, ET_Buffer definition? Char *? C # can use StringBuilder.

[DllImport (" SDK. DLL, "EntryPoint=" GetDongleInfo ")]
Public static extern int GetDongleInfo (IntPtr handler, ref StringBuilder pDongleInfo);
Like this?

CodePudding user response:

IntPtr IntPtr=IntPtr. Zero;
System. Text. StringBuilder djson=new System. Text. StringBuilder ();
Int RST=SdkInvoke. GetDongleInfo (intPtr, ref djson);
Call this?

CodePudding user response:

refer to 7th floor Nick_Ngai response:
Quote: refer to the sixth floor ziqi0716 response:
Quote: reference Nick_Ngai reply: 3/f
Quote: reference ziqi0716 reply 2 floor:
int, i.e., where the string?

ET_Buffer * pDongleInfo

What is this call reference, ET_Buffer definition? Char *? C # can use StringBuilder.

[DllImport (" SDK. DLL, "EntryPoint=" GetDongleInfo ")]
Public static extern int GetDongleInfo (IntPtr handler, ref StringBuilder pDongleInfo);
Like this?

Ref don't need it and the stringbuilder itself is reference
  •  Tags:  
  • C#
  • Related