Click here to Skip to main content
15,922,155 members
Home / Discussions / C#
   

C#

 
Questionmagnetic object Pin
Gepepet8-Jun-10 3:00
Gepepet8-Jun-10 3:00 
AnswerRe: magnetic object Pin
Not Active8-Jun-10 3:16
mentorNot Active8-Jun-10 3:16 
AnswerRe: magnetic object Pin
Johnny J.8-Jun-10 3:19
professionalJohnny J.8-Jun-10 3:19 
QuestionBing Maps AJAX control in Visual C# form application Pin
grmihel28-Jun-10 2:57
grmihel28-Jun-10 2:57 
AnswerRe: Bing Maps AJAX control in Visual C# form application Pin
jwiese_ms8-Jun-10 5:34
jwiese_ms8-Jun-10 5:34 
GeneralRe: Bing Maps AJAX control in Visual C# form application Pin
grmihel28-Jun-10 5:47
grmihel28-Jun-10 5:47 
QuestionInconsistent Marshalling size Pin
hairy_hats8-Jun-10 1:38
hairy_hats8-Jun-10 1:38 
AnswerRe: Inconsistent Marshalling size PinPopular
Luc Pattyn8-Jun-10 2:07
sitebuilderLuc Pattyn8-Jun-10 2:07 
MSDN on StructLayout.Size is a bit bizarre. It holds a remark "This field must be equal or greater than the total size, in bytes, of the members of the class or structure. This field is primarily for compiler writers who want to extend the memory occupied by a structure for direct, unmanaged access. For example, you can use this field when working with unions that are not represented in metadata directly."

Which one can read as: the actual size should not exceed the specified size value.

Therefore I recommend that you consider adding dummy members to your struct to obtain the exact size you want.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

GeneralRe: Inconsistent Marshalling size Pin
hairy_hats8-Jun-10 2:36
hairy_hats8-Jun-10 2:36 
GeneralRe: Inconsistent Marshalling size Pin
Luc Pattyn8-Jun-10 2:43
sitebuilderLuc Pattyn8-Jun-10 2:43 
GeneralRe: Inconsistent Marshalling size Pin
hairy_hats8-Jun-10 2:50
hairy_hats8-Jun-10 2:50 
QuestionProblem of controling a listview in another form Pin
imbiz8-Jun-10 1:30
imbiz8-Jun-10 1:30 
AnswerRe: Problem of controling a listview in another form Pin
Luc Pattyn8-Jun-10 1:41
sitebuilderLuc Pattyn8-Jun-10 1:41 
GeneralRe: Problem of controling a listview in another form [Waiting online....] Pin
imbiz8-Jun-10 2:36
imbiz8-Jun-10 2:36 
GeneralRe: Problem of controling a listview in another form [Waiting online....] Pin
Pete O'Hanlon8-Jun-10 3:46
mvePete O'Hanlon8-Jun-10 3:46 
GeneralRe: Problem of controling a listview in another form [Waiting online....] Pin
imbiz8-Jun-10 4:23
imbiz8-Jun-10 4:23 
GeneralRe: Problem of controling a listview in another form [Waiting online....] Pin
Pete O'Hanlon8-Jun-10 4:43
mvePete O'Hanlon8-Jun-10 4:43 
GeneralOh,yeah!I did it! Pin
imbiz8-Jun-10 4:48
imbiz8-Jun-10 4:48 
QuestionIP address control Pin
SelvaKr8-Jun-10 1:00
SelvaKr8-Jun-10 1:00 
AnswerRe: IP address control Pin
Pete O'Hanlon8-Jun-10 1:03
mvePete O'Hanlon8-Jun-10 1:03 
GeneralRe: IP address control Pin
SelvaKr8-Jun-10 1:18
SelvaKr8-Jun-10 1:18 
AnswerRe: IP address control Pin
Johnny J.8-Jun-10 1:12
professionalJohnny J.8-Jun-10 1:12 
GeneralRe: IP address control Pin
SelvaKr8-Jun-10 1:19
SelvaKr8-Jun-10 1:19 
QuestionCrystal Report : Parameter Count Mismatch. Pin
saber.softs7-Jun-10 21:13
saber.softs7-Jun-10 21:13 
QuestionProblem in BackUp Pin
SajjadZare7-Jun-10 19:57
SajjadZare7-Jun-10 19: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.