Click here to Skip to main content
15,878,871 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: EDITED Using template in C++ - run time error Pin
Member 1498043326-Nov-20 4:59
Member 1498043326-Nov-20 4:59 
GeneralRe: EDITED Using template in C++ - run time error Pin
Richard MacCutchan26-Nov-20 5:48
mveRichard MacCutchan26-Nov-20 5:48 
GeneralRe: EDITED Using template in C++ - run time error Pin
Dave Kreskowiak26-Nov-20 6:28
mveDave Kreskowiak26-Nov-20 6:28 
GeneralRe: EDITED Using template in C++ - run time error Pin
Victor Nijegorodov26-Nov-20 6:50
Victor Nijegorodov26-Nov-20 6:50 
AnswerRe: EDITED Using template in C++ - run time error Pin
jeron126-Nov-20 3:54
jeron126-Nov-20 3:54 
GeneralRe: EDITED Using template in C++ - run time error Pin
Member 1498043326-Nov-20 5:08
Member 1498043326-Nov-20 5:08 
GeneralRe: EDITED Using template in C++ - run time error Pin
jeron126-Nov-20 7:08
jeron126-Nov-20 7:08 
GeneralRe: EDITED Using template in C++ - run time error Pin
Member 1498043326-Nov-20 15:44
Member 1498043326-Nov-20 15:44 
Here is a working , sanitized / abbreviated TEST code used in method

information_main.count() = 2



C++
{
     QList<QBluetoothHostInfo> information_main = QBluetoothLocalDevice::allDevices();
    // display all adapters
    int index = 0;
    do
    {
        information_main.at(index).address().toString();
         index++;
    }    while( index != information_main.count() );

 reset index and run it again - works as expected 
fails run time if index is not reset - as expected 

   index = 0; 
   do
    {
        information_main.at(index).address().toString();
        index++;
      }   while( index != information_main.count() );

GeneralRe: EDITED Using template in C++ - run time error Pin
jeron126-Nov-20 15:59
jeron126-Nov-20 15:59 
GeneralRe: EDITED Using template in C++ - run time error Pin
Richard MacCutchan26-Nov-20 21:26
mveRichard MacCutchan26-Nov-20 21:26 
QuestionGomoku in C++ Pin
Member 1499964622-Nov-20 2:39
Member 1499964622-Nov-20 2:39 
AnswerRe: Gomoku in C++ Pin
Greg Utas22-Nov-20 4:10
professionalGreg Utas22-Nov-20 4:10 
QuestionA "C" programming equivalent to Windows + R run dialog invokcation Pin
samtoad19-Nov-20 18:59
samtoad19-Nov-20 18:59 
AnswerRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
Randor 19-Nov-20 19:48
professional Randor 19-Nov-20 19:48 
GeneralRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
David Crow20-Nov-20 3:02
David Crow20-Nov-20 3:02 
PraiseRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
Randor 21-Nov-20 20:46
professional Randor 21-Nov-20 20:46 
QuestionRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
Richard MacCutchan20-Nov-20 4:18
mveRichard MacCutchan20-Nov-20 4:18 
AnswerRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
samtoad20-Nov-20 13:22
samtoad20-Nov-20 13:22 
QuestionRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
David Crow20-Nov-20 16:36
David Crow20-Nov-20 16:36 
GeneralRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
Dave Kreskowiak20-Nov-20 17:17
mveDave Kreskowiak20-Nov-20 17:17 
GeneralRe: A "C" programming equivalent to Windows + R run dialog invokcation Pin
Randor 21-Nov-20 21:06
professional Randor 21-Nov-20 21:06 
QuestionBeginner problem c++ Pin
begzz17-Nov-20 11:02
begzz17-Nov-20 11:02 
QuestionRe: Beginner problem c++ Pin
David Crow17-Nov-20 14:49
David Crow17-Nov-20 14:49 
SuggestionRe: Beginner problem c++ Pin
Richard MacCutchan17-Nov-20 21:11
mveRichard MacCutchan17-Nov-20 21:11 
QuestionSetting Up Visual Studio Code & MinGW Pin
Member 1499476816-Nov-20 17:06
Member 1499476816-Nov-20 17:06 

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.