Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~3K People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for niketan

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 = …

Member Avatar for kvprajapati
0
293
Member Avatar for niketan

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??

Member Avatar for ddanbe
0
3K
Member Avatar for niketan

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 …

Member Avatar for ArkM
0
107