Click here to Skip to main content
12,072,640 members (63,100 online)
   

C#

 
GeneralRe: 4 Images change on linkbutton click Pin
sahavasiwebwonders17-Feb-13 22:03
groupsahavasiwebwonders17-Feb-13 22:03 
GeneralRe: 4 Images change on linkbutton click Pin
Pete O'Hanlon17-Feb-13 23:36
protectorPete O'Hanlon17-Feb-13 23:36 
QuestionImages change on linkbutton click Pin
sahavasiwebwonders17-Feb-13 19:24
groupsahavasiwebwonders17-Feb-13 19:24 
AnswerRe: Images change on linkbutton click Pin
Richard MacCutchan17-Feb-13 22:52
mvpRichard MacCutchan17-Feb-13 22:52 
QuestionWebMatrix-Following Pin
Bram van Kampen16-Feb-13 16:12
memberBram van Kampen16-Feb-13 16:12 
AnswerRe: WebMatrix-Following Pin
frazzle-me16-Feb-13 17:19
memberfrazzle-me16-Feb-13 17:19 
GeneralRe: WebMatrix-Following Pin
Bram van Kampen16-Feb-13 18:19
memberBram van Kampen16-Feb-13 18:19 
AnswerRe: WebMatrix-Following Pin
N a v a n e e t h16-Feb-13 19:00
memberN a v a n e e t h16-Feb-13 19: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 Pin
Bram van Kampen17-Feb-13 15:45
memberBram van Kampen17-Feb-13 15:45 
GeneralRe: WebMatrix-Following Pin
N a v a n e e t h17-Feb-13 18:10
memberN a v a n e e t h17-Feb-13 18:10 
AnswerRe: WebMatrix-Following Pin
Dave Kreskowiak16-Feb-13 19:50
mvpDave Kreskowiak16-Feb-13 19:50 
GeneralRe: WebMatrix-Following Pin
Bram van Kampen17-Feb-13 15:50
memberBram van Kampen17-Feb-13 15:50 
QuestionWebMatrix Pin
Bram van Kampen16-Feb-13 15:26
memberBram van Kampen16-Feb-13 15:26 
AnswerRe: WebMatrix Pin
N a v a n e e t h16-Feb-13 19:01
memberN a v a n e e t h16-Feb-13 19:01 
QuestionParsing a web page to get just the <p> inner text. Pin
frazzle-me16-Feb-13 7:49
memberfrazzle-me16-Feb-13 7:49 
AnswerRe: Parsing a web page to get just the <p> inner text. Pin
N a v a n e e t h16-Feb-13 19:32
memberN a v a n e e t h16-Feb-13 19:32 
GeneralRe: Parsing a web page to get just the <p> inner text. Pin
frazzle-me17-Feb-13 2:40
memberfrazzle-me17-Feb-13 2:40 
GeneralRe: Parsing a web page to get just the <p> inner text. Pin
Richard MacCutchan17-Feb-13 3:43
mvpRichard MacCutchan17-Feb-13 3:43 
Questionexample for using webrequest and webresopnse Pin
arashmousapour16-Feb-13 3:10
memberarashmousapour16-Feb-13 3:10 
QuestionRe: example for using webrequest and webresopnse Pin
Richard MacCutchan16-Feb-13 3:33
mvpRichard MacCutchan16-Feb-13 3:33 
GeneralRe: example for using webrequest and webresopnse Pin
PIEBALDconsult16-Feb-13 6:57
memberPIEBALDconsult16-Feb-13 6:57 
QuestionError: No value given for one or more required parameters ? Pin
taibc16-Feb-13 2:18
membertaibc16-Feb-13 2:18 
AnswerRe: Error: No value given for one or more required parameters ? Pin
Eddy Vluggen16-Feb-13 2:37
mvpEddy Vluggen16-Feb-13 2:37 
GeneralRe: Error: No value given for one or more required parameters ? Pin
taibc16-Feb-13 2:55
membertaibc16-Feb-13 2:55 
GeneralRe: Error: No value given for one or more required parameters ? Pin
Eddy Vluggen16-Feb-13 3:05
mvpEddy Vluggen16-Feb-13 3:05 

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.


Advertise | Privacy | Mobile
Web03 | 2.8.160208.1 | Last Updated 10 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid