No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hello, How can I define fixed size of structure in c#.. e.g. [code] struct xyz{ char localc[12]; short localshort; }; I had made a c# structure like this [StructLayout(LayoutKind.Sequential, Pack = 2,CharSet=CharSet.Ansi, Size = 14)] struct xyz{ [MarshalAs(UnmanagedType.ByValArray, SizeConst = 12)] public char[] localc; short localshort; } xyz abc = … |
|
I am trying to convert my c structures to c# structures. I am facing one problem as character is one byte representation in c and two bytes in c#. How to construct xyz structure with character having one byte?? |
|
Hi, I am working on medium scale application around 14K lines of code. So can't post the code. I am using queue to throttle the speed from one end to other end. The problem i am facing is "queue is giving some garbage value on queue.front() function call after say … |