[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

6.8

Random file access. reading a struct written from C++

Asked by PlanetCpp in C# Programming Language

Tags: have

i'm sort of new to c# i have a program i wrote in c++ that manages airport terminal data. the data was in structs that i simply wrote to a file. each flight was a seperate struct and i just read them back until eof. i am writing an app in c# that needs to look and change this data. ive written a similar app in c++, i thought it'd be an easy conversion.
the struct in c++ looks like:
      struct FlightData_str
      {
            char      dataCell[11][200],
            breakoutOrig[10][10],
            breakoutConn[10][10];
      };
and each file had an airports struct that this program doesnt need really, i read it in just to get passed it before i looped the flight structs
      struct Airport_str
      {
            char                  airportName[100];
            char                  terminalName[100];
            unsigned int      kioskProcessTime,
                               mobileProcessTime,
                               validatorProcessTime;
            unsigned int      usvLocNum;                  //number of proposed locations
            unsigned int      usvLoc[10];                  //locations workstation #
            char                  usvLocTxt[10][100];

            unsigned int      origNum;                  //number of originating arrival locations
            unsigned int      origChoice[10][3];      //array of choices
            unsigned int      connNum;                  //number of connecting arrival locations
            unsigned int      connChoice[10][3];      //array of choices
      };
///////////////
i need to know where to start. im searching but i cant seem to figure out which way to go. serialize/deserialize, marshaling..
since they are array of chars in c++ can i use some simple byte array?
problem is they are 2d arrays and i never see examples of that
these are mostly numbers, some 3 or 4 character strings. i used all char arrays because i grabbed the data off the user interface.
[+][-]03/01/06 10:58 AM, ID: 16077909Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/01/06 11:00 AM, ID: 16077931Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03/01/06 11:07 AM, ID: 16078012Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03/01/06 12:59 PM, ID: 16079101Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zone: C# Programming Language
Tags: have
Sign Up Now!
Solution Provided By: Egore
Participating Experts: 3
Solution Grade: A
 
[+][-]03/02/06 03:26 AM, ID: 16083696Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]03/02/06 01:14 PM, ID: 16088925Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]04/14/06 04:40 AM, ID: 16452532Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]04/19/06 04:50 AM, ID: 16486529Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]04/23/06 12:44 AM, ID: 16517970Administrative Comment

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 30-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89