Click here to Skip to main content
15,905,232 members
Home / Discussions / C#
   

C#

 
QuestionHow to simulate clicking "Enter" in game's window? [modified] Pin
aleXXXka22-Feb-09 7:34
aleXXXka22-Feb-09 7:34 
Questionsyncronization application Pin
Jassim Rahma22-Feb-09 6:22
Jassim Rahma22-Feb-09 6:22 
AnswerRe: syncronization application Pin
Giorgi Dalakishvili22-Feb-09 6:32
mentorGiorgi Dalakishvili22-Feb-09 6:32 
AnswerRe: syncronization application Pin
harold aptroot22-Feb-09 6:35
harold aptroot22-Feb-09 6:35 
QuestionError using an array of structs that contain an array Pin
Bruce Coward22-Feb-09 5:41
Bruce Coward22-Feb-09 5:41 
AnswerRe: Error using an array of structs that contain an array Pin
riced22-Feb-09 6:03
riced22-Feb-09 6:03 
GeneralRe: Error using an array of structs that contain an array Pin
Bruce Coward22-Feb-09 6:17
Bruce Coward22-Feb-09 6:17 
GeneralRe: Error using an array of structs that contain an array Pin
riced22-Feb-09 7:09
riced22-Feb-09 7:09 
I've had a play with this and hit the same problem. I don't know enough about how C# gets addresses to see an obvious solution.
However, this does compile:

class ADRMSG
{
   public int ulPGN;
   public byte PGNspec;
   public byte SourceAddress;
   unsafe public  byte[] RxData = new byte [8];
}
// Create array of 10 address messages
ADRMSG[] arAdrMsg = new ADRMSG[10];

// Create message indexes
private static int AdrMsgFront = 1;
private static int AdrMsgRear = 0;

 unsafe public void fred()
{

   arAdrMsg[3].ulPGN = 1;
   arAdrMsg[0].PGNspec = 0XFF;
   arAdrMsg[0].RxData[0] = 0x00;
}

I'm not sure it will give what you want if the address of the RxData array has to be fixed.

If I think of anything before I go to bed I'll let you know.

Regards
David R

GeneralRe: Error using an array of structs that contain an array Pin
Bruce Coward23-Feb-09 1:45
Bruce Coward23-Feb-09 1:45 
GeneralRe: Error using an array of structs that contain an array Pin
riced23-Feb-09 2:24
riced23-Feb-09 2:24 
GeneralRe: Error using an array of structs that contain an array Pin
riced22-Feb-09 8:04
riced22-Feb-09 8:04 
AnswerRe: Error using an array of structs that contain an array Pin
Luc Pattyn22-Feb-09 8:35
sitebuilderLuc Pattyn22-Feb-09 8:35 
GeneralRe: Error using an array of structs that contain an array Pin
Bruce Coward22-Feb-09 22:18
Bruce Coward22-Feb-09 22:18 
AnswerRe: Error using an array of structs that contain an array Pin
Luc Pattyn23-Feb-09 2:13
sitebuilderLuc Pattyn23-Feb-09 2:13 
QuestionMSDE connection fails Pin
picasso222-Feb-09 5:24
picasso222-Feb-09 5:24 
AnswerRe: MSDE connection fails Pin
ABitSmart22-Feb-09 14:34
ABitSmart22-Feb-09 14:34 
QuestionListbox Pin
mrithula822-Feb-09 5:02
mrithula822-Feb-09 5:02 
AnswerRe: Listbox Pin
Xmen Real 22-Feb-09 7:00
professional Xmen Real 22-Feb-09 7:00 
GeneralRe: Listbox Pin
mrithula822-Feb-09 17:37
mrithula822-Feb-09 17:37 
QuestionExtending the TreeNode class Pin
Jastons22-Feb-09 3:38
Jastons22-Feb-09 3:38 
AnswerRe: Extending the TreeNode class Pin
ABitSmart22-Feb-09 4:02
ABitSmart22-Feb-09 4:02 
GeneralRe: Extending the TreeNode class Pin
Jastons22-Feb-09 5:32
Jastons22-Feb-09 5:32 
QuestionMap Wrapping Pin
Jim Warburton22-Feb-09 3:24
Jim Warburton22-Feb-09 3:24 
Questionbase64 and UTF-8 encoding issue Pin
George_George22-Feb-09 3:09
George_George22-Feb-09 3:09 
AnswerRe: base64 and UTF-8 encoding issue Pin
Xmen Real 22-Feb-09 3:12
professional Xmen Real 22-Feb-09 3:12 

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.