Click here to Skip to main content
14,365,750 members

ATL / WTL / STL

 
GeneralRe: narrowing the focus a bit Pin
bkelly134-Jul-14 6:02
memberbkelly134-Jul-14 6:02 
GeneralRe: narrowing the focus a bit Pin
Richard MacCutchan4-Jul-14 6:40
protectorRichard MacCutchan4-Jul-14 6:40 
GeneralRe: narrowing the focus a bit Pin
bkelly134-Jul-14 8:07
memberbkelly134-Jul-14 8:07 
GeneralRe: narrowing the focus a bit Pin
Richard MacCutchan4-Jul-14 8:21
protectorRichard MacCutchan4-Jul-14 8:21 
GeneralRe: narrowing the focus a bit Pin
bkelly134-Jul-14 9:20
memberbkelly134-Jul-14 9:20 
GeneralRe: narrowing the focus a bit Pin
Richard MacCutchan4-Jul-14 21:10
protectorRichard MacCutchan4-Jul-14 21:10 
Generalreasons Pin
bkelly135-Jul-14 8:22
memberbkelly135-Jul-14 8:22 
GeneralRe: reasons Pin
Richard MacCutchan6-Jul-14 5:44
protectorRichard MacCutchan6-Jul-14 5:44 
bkelly13 wrote:
I apologize for being rather slow
We all had to learn from the beginning to get where we are now. I couldn't begin to understand the basics of telemetry.

However, from your description above I have put together the following. It's making a few (possibly incorrect) assumptions about where the structure should be declared and whether it is the only one you use, but I hope it may give you something to work on.
// define the structure for holding the item labels
struct st2_names
{
    wchar_t names[ COMMON_ARRAY_SIZE ] [ MAX_NAME_SIZE ];
};

// C_Configuration_Manager reads some data, adjusts it
// and copies the items into the data structure fields
int C_Configuration_Manager(st2_names *new_pointer)
{
    // copy the various items (read from a text file in reality)
    // to the individual items of the array
    wcscpy_s(new_pointer->names[0], MAX_NAME_SIZE, L"PITCH" );
    wcscpy_s(new_pointer->names[1], MAX_NAME_SIZE, L"ROLL" );
    wcscpy_s(new_pointer->names[2], MAX_NAME_SIZE, L"YAW" );
    wcscpy_s(new_pointer->names[3], MAX_NAME_SIZE, L"VELOCITY" );
    // ...
    
    return 0;
}
 
int C_AR2_Messages(st2_names *dataPointer)
{
    // The core code, C_AR2_Messages, hands the pointer over to C_Configuration_Manager.
    // That code reads a text file and changes the names adding a prefix to them.
    C_Configuration_Manager(dataPointer);	// pass the pointer to C_Configuration_Manager
    
    // When C_AR2_Messages resumes control, it queries another application (a vendor app) 
    // to acquire more information about the parameter.
    CallOtherFunction(dataPointer); // and so on
    
    // other processing as required

    return 0;
}

int wmain(int argc, wchar_t* argv[])
{
    // declare the structure, and clear it out for good measure
    st2_names dataNames;
    memset(&dataNames, 0, sizeof dataNames);
    
    C_AR2_Messages(&dataNames);	// pass the pointer to C_AR2_Messages
    
    return 0;
}

GeneralRe: reasons Pin
bkelly137-Jul-14 15:03
memberbkelly137-Jul-14 15:03 
GeneralRe: reasons Pin
Richard MacCutchan7-Jul-14 23:04
protectorRichard MacCutchan7-Jul-14 23:04 
Questionfriend declaration causes undeclared identifier Pin
bkelly1330-Jun-14 6:55
memberbkelly1330-Jun-14 6:55 
AnswerRe: friend declaration causes undeclared identifier Pin
Subrat 470826612-Sep-14 16:20
memberSubrat 470826612-Sep-14 16:20 
Questiondestructor not being called (Resolved) Pin
bkelly1326-Jun-14 17:17
memberbkelly1326-Jun-14 17:17 
AnswerRe: destructor not being called Pin
Orjan Westin26-Jun-14 23:26
professionalOrjan Westin26-Jun-14 23:26 
GeneralRe: destructor not being called Pin
bkelly1327-Jun-14 14:06
memberbkelly1327-Jun-14 14:06 
Questionarray of static text controls Pin
bkelly1322-Jun-14 10:35
memberbkelly1322-Jun-14 10:35 
AnswerRe: array of static text controls Pin
Albert Holguin26-Jun-14 11:48
professionalAlbert Holguin26-Jun-14 11:48 
Questionneed help selecting a string type Pin
bkelly1313-Jun-14 5:27
memberbkelly1313-Jun-14 5:27 
AnswerRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 8:13
protectorRichard MacCutchan13-Jun-14 8:13 
GeneralRe: need help selecting a string type Pin
bkelly1313-Jun-14 8:39
memberbkelly1313-Jun-14 8:39 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 22:31
protectorRichard MacCutchan13-Jun-14 22:31 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 10:47
memberbkelly1314-Jun-14 10:47 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 11:05
protectorRichard MacCutchan14-Jun-14 11:05 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 16:53
memberbkelly1314-Jun-14 16:53 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 22:08
protectorRichard MacCutchan14-Jun-14 22:08 

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.