Click here to Skip to main content
11,577,494 members (42,693 online)
   

C#

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