Click here to Skip to main content
16,005,473 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionSetting attributes to folders Pin
Yevgeny Efter24-Dec-05 18:50
Yevgeny Efter24-Dec-05 18:50 
AnswerRe: Setting attributes to folders Pin
VenkataRamana.Gali27-Dec-05 8:04
VenkataRamana.Gali27-Dec-05 8:04 
QuestionToolstrip Pin
kenexcelon24-Dec-05 16:59
kenexcelon24-Dec-05 16:59 
QuestionSetting Min/Max size for FormViews and Dialogs Pin
brdavid24-Dec-05 2:37
brdavid24-Dec-05 2:37 
AnswerRe: Setting Min/Max size for FormViews and Dialogs Pin
S. Akif Kamal27-Dec-05 20:48
S. Akif Kamal27-Dec-05 20:48 
GeneralRe: Setting Min/Max size for FormViews and Dialogs Pin
brdavid2-Jan-06 14:52
brdavid2-Jan-06 14:52 
QuestionProblems creating .NET Structures... Pin
Xtek23-Dec-05 19:17
Xtek23-Dec-05 19:17 
AnswerRe: Problems creating .NET Structures... Pin
Dave Kreskowiak27-Dec-05 7:43
mveDave Kreskowiak27-Dec-05 7:43 
The problem is because your specifying a Sequential layout of the fields, then contradicting yourself by specifying the exact placement of the fields, which doesn't match the field packing size used by the Sequential layout.

Type this:
<StructLayout(LayoutKind.Explicit)> _
Structure Struct1
    <FieldOffset(0)> Public Unk1 As Short
        ' You've left a rather large empty space between these two fields!
    <FieldOffset(35), MarshalAs(UnmanagedType.ByValArray, SizeConst:=23)> Public unk2() As Char
    <FieldOffset(97), MarshalAs(UnmanagedType.ByValArray, SizeConst:=23)> Public unk3() As Char
End Structure



RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome


-- modified at 13:43 Tuesday 27th December, 2005
GeneralRe: Problems creating .NET Structures... Pin
Xtek27-Dec-05 11:30
Xtek27-Dec-05 11:30 
GeneralRe: Problems creating .NET Structures... Pin
Dave Kreskowiak28-Dec-05 2:07
mveDave Kreskowiak28-Dec-05 2:07 
GeneralRe: Problems creating .NET Structures... Pin
Xtek28-Dec-05 13:22
Xtek28-Dec-05 13:22 
GeneralRe: Problems creating .NET Structures... Pin
Dave Kreskowiak28-Dec-05 16:18
mveDave Kreskowiak28-Dec-05 16:18 
GeneralRe: Problems creating .NET Structures... Pin
Xtek28-Dec-05 16:29
Xtek28-Dec-05 16:29 
QuestionThreading Issues... Pin
HakunaMatada23-Dec-05 17:52
HakunaMatada23-Dec-05 17:52 
AnswerRe: Threading Issues... Pin
Gerben Jongerius23-Dec-05 23:40
Gerben Jongerius23-Dec-05 23:40 
GeneralRe: Threading Issues... Pin
HakunaMatada24-Dec-05 0:10
HakunaMatada24-Dec-05 0:10 
GeneralRe: Threading Issues... Pin
Gerben Jongerius24-Dec-05 4:01
Gerben Jongerius24-Dec-05 4:01 
GeneralRe: Threading Issues... Pin
HakunaMatada24-Dec-05 18:53
HakunaMatada24-Dec-05 18:53 
AnswerRe: Threading Issues... Pin
S. Senthil Kumar25-Dec-05 1:50
S. Senthil Kumar25-Dec-05 1:50 
GeneralRe: Threading Issues... Pin
HakunaMatada26-Dec-05 17:55
HakunaMatada26-Dec-05 17:55 
GeneralRe: Threading Issues... Pin
S. Senthil Kumar26-Dec-05 19:03
S. Senthil Kumar26-Dec-05 19:03 
QuestionWhy is a size of MonthCalendar control changed when being in other machine? Pin
Ariyasat_423-Dec-05 2:38
Ariyasat_423-Dec-05 2:38 
QuestionRead Address book Pin
ashishnagar122-Dec-05 22:14
ashishnagar122-Dec-05 22:14 
AnswerRe: Read Address book Pin
Colin Angus Mackay22-Dec-05 22:18
Colin Angus Mackay22-Dec-05 22:18 
QuestionIServiceProvider issue... Pin
Stan Shannon22-Dec-05 1:57
Stan Shannon22-Dec-05 1:57 

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.