Click here to Skip to main content
15,912,837 members
Home / Discussions / C#
   

C#

 
AnswerRe: Newbie code problem please help? Pin
Ravi Bhavnani4-Feb-07 5:37
professionalRavi Bhavnani4-Feb-07 5:37 
QuestionDLLimport Problem Pin
snouto4-Feb-07 3:44
snouto4-Feb-07 3:44 
AnswerRe: DLLimport Problem Pin
Colin Angus Mackay4-Feb-07 4:04
Colin Angus Mackay4-Feb-07 4:04 
QuestionGuid as a Stored Proc parameter Pin
Ryno Burger4-Feb-07 3:42
Ryno Burger4-Feb-07 3:42 
AnswerRe: Guid as a Stored Proc parameter Pin
Colin Angus Mackay4-Feb-07 3:55
Colin Angus Mackay4-Feb-07 3:55 
QuestionCopying part of byte array to another byte array Pin
yarns4-Feb-07 2:00
yarns4-Feb-07 2:00 
AnswerRe: Copying part of byte array to another byte array Pin
Stefan Troschuetz4-Feb-07 2:55
Stefan Troschuetz4-Feb-07 2:55 
QuestionProblem with struct - Pin
yarns4-Feb-07 1:25
yarns4-Feb-07 1:25 
Application is compiled well but when run i got error like:
Could not load type 'Test.EF' from assembly ... because it contains an object field at offset 1 that is incorrectly aligned or overlapped by a non-object field.

<br />
    [StructLayout(LayoutKind.Explicit)]<br />
    public struct EF<br />
    {<br />
<br />
        [FieldOffset(0)]<br />
        public byte clockStop;                             //1<br />
        [FieldOffset(1)]<br />
        private byte[] cardExtendedSerialNumber;            //8<br />
        [FieldOffset(8)]<br />
        private byte[] cardApprovalNumber;                  //8<br />
        [FieldOffset(16)]<br />
        private byte cardPersonaliserID;                    //1<br />
        [FieldOffset(17)]<br />
        private byte[] embedderIcAssemblerId;               //5<br />
        [FieldOffset(23)]<br />
        private byte[] idIdentifier;                        //2<br />
<br />
    };<br />


Any idea how fix it?

Greetings
AnswerRe: Problem with struct - Pin
Guffa4-Feb-07 1:37
Guffa4-Feb-07 1:37 
GeneralRe: Problem with struct - Pin
yarns4-Feb-07 1:57
yarns4-Feb-07 1:57 
GeneralRe: Problem with struct - Pin
Guffa4-Feb-07 6:17
Guffa4-Feb-07 6:17 
AnswerRe: Problem with struct - Pin
Luc Pattyn4-Feb-07 6:36
sitebuilderLuc Pattyn4-Feb-07 6:36 
GeneralRe: Problem with struct - Pin
yarns4-Feb-07 7:58
yarns4-Feb-07 7:58 
QuestionWrapper Problem Pin
snouto4-Feb-07 1:19
snouto4-Feb-07 1:19 
AnswerRe: Wrapper Problem Pin
Luc Pattyn4-Feb-07 6:43
sitebuilderLuc Pattyn4-Feb-07 6:43 
QuestionDeployment and Distribution in .NET 1.1 Pin
MacMohan4-Feb-07 0:31
MacMohan4-Feb-07 0:31 
AnswerRe: Deployment and Distribution in .NET 1.1 Pin
Christian Graus4-Feb-07 0:40
protectorChristian Graus4-Feb-07 0:40 
AnswerRe: Deployment and Distribution in .NET 1.1 Pin
PIEBALDconsult4-Feb-07 4:36
mvePIEBALDconsult4-Feb-07 4:36 
QuestionHow to capture whole space of child form Pin
sjs4u3-Feb-07 23:44
sjs4u3-Feb-07 23:44 
QuestionSQl Server SP errors in C# Pin
Mridang Agarwalla3-Feb-07 21:45
Mridang Agarwalla3-Feb-07 21:45 
AnswerRe: SQl Server SP errors in C# Pin
Christian Graus4-Feb-07 0:30
protectorChristian Graus4-Feb-07 0:30 
QuestionWhat is the best way to reading and analizing binary file? Pin
yarns3-Feb-07 21:19
yarns3-Feb-07 21:19 
AnswerRe: What is the best way to reading and analizing binary file? Pin
Christian Graus4-Feb-07 0:29
protectorChristian Graus4-Feb-07 0:29 
AnswerRe: What is the best way to reading and analizing binary file? Pin
User 66584-Feb-07 1:16
User 66584-Feb-07 1:16 
QuestionHow to call forms using label or linklabel control Pin
sjs4u3-Feb-07 19:04
sjs4u3-Feb-07 19:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.