Click here to Skip to main content
14,666,665 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: narrowing the focus a bit Pin
Richard MacCutchan4-Jul-14 5:40
mveRichard MacCutchan4-Jul-14 5:40 
GeneralRe: narrowing the focus a bit Pin
bkelly134-Jul-14 7:07
Memberbkelly134-Jul-14 7:07 
GeneralRe: narrowing the focus a bit Pin
Richard MacCutchan4-Jul-14 7:21
mveRichard MacCutchan4-Jul-14 7:21 
GeneralRe: narrowing the focus a bit Pin
bkelly134-Jul-14 8:20
Memberbkelly134-Jul-14 8:20 
GeneralRe: narrowing the focus a bit Pin
Richard MacCutchan4-Jul-14 20:10
mveRichard MacCutchan4-Jul-14 20:10 
Generalreasons Pin
bkelly135-Jul-14 7:22
Memberbkelly135-Jul-14 7:22 
GeneralRe: reasons Pin
Richard MacCutchan6-Jul-14 4:44
mveRichard MacCutchan6-Jul-14 4:44 
GeneralRe: reasons Pin
bkelly137-Jul-14 14:03
Memberbkelly137-Jul-14 14:03 
Hello,
If it was in the cards for you, you could easily deal with telemetry.
Good answer. That will work.

Additionally, I have been busy. The problem with my code was one of precedence. Here are, hopefully, the core lines that show how the procedure can be declared and defined.
const wchar_t  prefix[ SIZE_OF ] = L"S01_";
void Set_Pointer( wchar_t (*new_pointer)[COUNT_OF][SIZE_OF] )
{
   foo_names = new_pointer;
   swprintf_s( (*foo_names)[0],SIZE_OF, L"%s%s", prefix, c0 );
}


Character * is a prefix and the postfix [] is bound first. The parenthesis causes the * to be bound to the name before the [].
Obviously, the fragment does nothing useful, but it shows what to do.

Putting it all in a structure is the easy way and I have used enough structures to have thought of that much earlier. Now I have both methods.

I really should print out a list of all the precedencies and put them on the wall next to me. With large type so I can read it without getting up.

There is a third way, using a friend class. Then it does not even need to be passed. (A tool to be used sparingly.) I tried that and failed. Time to hit the books and search engine and see what I did wrong there.

Thank you for your time and thank you for your patience.
Thank you for your time
If you work with telemetry, please check this bulletin board: www.irigbb.com


GeneralRe: reasons Pin
Richard MacCutchan7-Jul-14 22:04
mveRichard MacCutchan7-Jul-14 22:04 
Questionfriend declaration causes undeclared identifier Pin
bkelly1330-Jun-14 5:55
Memberbkelly1330-Jun-14 5:55 
AnswerRe: friend declaration causes undeclared identifier Pin
Subrat 470826612-Sep-14 15:20
MemberSubrat 470826612-Sep-14 15:20 
Questiondestructor not being called (Resolved) Pin
bkelly1326-Jun-14 16:17
Memberbkelly1326-Jun-14 16:17 
AnswerRe: destructor not being called Pin
Orjan Westin26-Jun-14 22:26
professionalOrjan Westin26-Jun-14 22:26 
GeneralRe: destructor not being called Pin
bkelly1327-Jun-14 13:06
Memberbkelly1327-Jun-14 13:06 
Questionarray of static text controls Pin
bkelly1322-Jun-14 9:35
Memberbkelly1322-Jun-14 9:35 
AnswerRe: array of static text controls Pin
Albert Holguin26-Jun-14 10:48
professionalAlbert Holguin26-Jun-14 10:48 
Questionneed help selecting a string type Pin
bkelly1313-Jun-14 4:27
Memberbkelly1313-Jun-14 4:27 
AnswerRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 7:13
mveRichard MacCutchan13-Jun-14 7:13 
GeneralRe: need help selecting a string type Pin
bkelly1313-Jun-14 7:39
Memberbkelly1313-Jun-14 7:39 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan13-Jun-14 21:31
mveRichard MacCutchan13-Jun-14 21:31 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 9:47
Memberbkelly1314-Jun-14 9:47 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 10:05
mveRichard MacCutchan14-Jun-14 10:05 
GeneralRe: need help selecting a string type Pin
bkelly1314-Jun-14 15:53
Memberbkelly1314-Jun-14 15:53 
GeneralRe: need help selecting a string type Pin
Richard MacCutchan14-Jun-14 21:08
mveRichard MacCutchan14-Jun-14 21:08 
Generalgoing heavy Pin
bkelly1316-Jun-14 13:49
Memberbkelly1316-Jun-14 13:49 

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.