how to display the content of a structure in a listbox in a c# windows form application
问题 Dunno if I'm going the right way about this? The contents of the structure below is defined elsewhere. when I run the code it is just outputting a list of 4 zeros. any help would be greatly appreciated..... public class NativeMethods { public struct FT_DEVICE_LIST_INFO_NODE { public uint ID; public uint LocId; public string SerialNumber; public string Description; } [DllImportAttribute(@"C:\Users\Brendan\Documents\libMPSSE.dll", EntryPoint = "SPI_GetNumChannels")] public static extern uint