Click here to Skip to main content
       

C#

 
GeneralRe: 4 Images change on linkbutton click Pingroupsahavasiwebwonders17-Feb-13 21:03 
GeneralRe: 4 Images change on linkbutton click PinprotectorPete O'Hanlon17-Feb-13 22:36 
QuestionImages change on linkbutton click Pingroupsahavasiwebwonders17-Feb-13 18:24 
AnswerRe: Images change on linkbutton click PinmvpRichard MacCutchan17-Feb-13 21:52 
QuestionWebMatrix-Following PinmemberBram van Kampen16-Feb-13 15:12 
AnswerRe: WebMatrix-Following Pinmemberfrazzle-me16-Feb-13 16:19 
GeneralRe: WebMatrix-Following PinmemberBram van Kampen16-Feb-13 17:19 
AnswerRe: WebMatrix-Following PinmemberN a v a n e e t h16-Feb-13 18:00 
I don't see a good reason to use WebMatrix here. You should probably stick to ASP.NET alone.
 

Bram van Kampen wrote:
In MFC I stored all this in a C Structure (packed to byte alignment). Do the C# and C++ structures align. Do allignment pragma's exist in C#, How does C# allign DWORDS.(Big End, Little End, or Machine Dependent)
In C#, you can add a StructLayout attribute and with a kind Explicit to the structure. Something like,
[StructLayout(LayoutKind.Explicit)]
public struct Example
{
    [FieldOffset(0)]
    public int foo;
    [FieldOffset(4)]
    public int bar;
}
This allows you to take finer control over alignment.
 
If you write a wrapper to your native code in C++/CLI, you don't have to worry about structure alignment in C#. Just work with managed objects.
Best wishes,
Navaneeth

GeneralRe: WebMatrix-Following PinmemberBram van Kampen17-Feb-13 14:45 
GeneralRe: WebMatrix-Following PinmemberN a v a n e e t h17-Feb-13 17:10 
AnswerRe: WebMatrix-Following PinmvpDave Kreskowiak16-Feb-13 18:50 
GeneralRe: WebMatrix-Following PinmemberBram van Kampen17-Feb-13 14:50 
QuestionWebMatrix PinmemberBram van Kampen16-Feb-13 14:26 
AnswerRe: WebMatrix PinmemberN a v a n e e t h16-Feb-13 18:01 
QuestionParsing a web page to get just the <p> inner text. Pinmemberfrazzle-me16-Feb-13 6:49 
AnswerRe: Parsing a web page to get just the <p> inner text. PinmemberN a v a n e e t h16-Feb-13 18:32 
GeneralRe: Parsing a web page to get just the <p> inner text. Pinmemberfrazzle-me17-Feb-13 1:40 
GeneralRe: Parsing a web page to get just the <p> inner text. PinmvpRichard MacCutchan17-Feb-13 2:43 
Questionexample for using webrequest and webresopnse Pinmemberarashmousapour16-Feb-13 2:10 
QuestionRe: example for using webrequest and webresopnse PinmvpRichard MacCutchan16-Feb-13 2:33 
GeneralRe: example for using webrequest and webresopnse PinmemberPIEBALDconsult16-Feb-13 5:57 
QuestionError: No value given for one or more required parameters ? Pinmembertaibc16-Feb-13 1:18 
AnswerRe: Error: No value given for one or more required parameters ? PinmvpEddy Vluggen16-Feb-13 1:37 
GeneralRe: Error: No value given for one or more required parameters ? Pinmembertaibc16-Feb-13 1:55 
GeneralRe: Error: No value given for one or more required parameters ? PinmvpEddy Vluggen16-Feb-13 2:05 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.140421.2 | Last Updated 24 Apr 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid