Click here to Skip to main content
15,611,599 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: "C++ is static (language)..." Pin
Richard MacCutchan21-Jan-23 22:06
mveRichard MacCutchan21-Jan-23 22:06 
AnswerRe: "C++ is static (language)..." Pin
jschell22-Jan-23 8:17
jschell22-Jan-23 8:17 
QuestionCan you make a serial port hooking program? Pin
Member 1590067020-Jan-23 21:07
Member 1590067020-Jan-23 21:07 
AnswerRe: Can you make a serial port hooking program? Pin
Richard MacCutchan20-Jan-23 22:10
mveRichard MacCutchan20-Jan-23 22:10 
AnswerRe: Can you make a serial port hooking program? Pin
CPallini21-Jan-23 3:00
mveCPallini21-Jan-23 3:00 
AnswerRe: Can you make a serial port hooking program? Pin
jschell22-Jan-23 8:23
jschell22-Jan-23 8:23 
AnswerRe: Can you make a serial port hooking program? Pin
charlieg28-Jan-23 8:58
charlieg28-Jan-23 8:58 
Questionforeach() ?? Pin
Member 1496877118-Jan-23 7:36
Member 1496877118-Jan-23 7:36 
I like to learn how to use "foreach".
I have posted similar request on another forum and got "RTFM"

Could somebody REWRiTE the attached using "foreach" ?

..and a simple explanation of code used ( called "comments" ) would be nice.

I need to start with "foreach" before goto "new style" of "for".

Thanks





<pre>   localAdapters = QBluetoothLocalDevice::allDevices();
    count = localAdapters.count();
    ui->chat_10->clear();

    qDebug()<< " localAdapters  count " << QString::number(count);
    for(int index = 0; index < count; index++)
    {
        qDebug()<< " local adapter address" << localAdapters.at(index).address().toString();
        ui->chat_10->append( localAdapters.at(index).address().toString());
        qDebug() << " local adapater name " << localAdapters.at(index).name();
        ui->chat_10->append( localAdapters.at(index).name());
    }


AnswerRe: foreach() ?? Pin
Mircea Neacsu18-Jan-23 7:41
Mircea Neacsu18-Jan-23 7:41 
AnswerRe: foreach() ?? Pin
CPallini18-Jan-23 7:51
mveCPallini18-Jan-23 7:51 
GeneralRe: foreach() ?? Pin
Member 1496877121-Jan-23 10:04
Member 1496877121-Jan-23 10:04 
GeneralRe: foreach() ?? Pin
jschell22-Jan-23 8:26
jschell22-Jan-23 8:26 
QuestionCRichedit and CDC Pin
ForNow18-Jan-23 2:51
ForNow18-Jan-23 2:51 
GeneralRe: CRichedit and CDC Pin
ForNow20-Jan-23 2:24
ForNow20-Jan-23 2:24 
GeneralRe: CRichedit and CDC Pin
Richard MacCutchan20-Jan-23 2:37
mveRichard MacCutchan20-Jan-23 2:37 
GeneralRe: CRichedit and CDC Pin
ForNow20-Jan-23 3:09
ForNow20-Jan-23 3:09 
QuestionHeap Corruption Durning Streamin Pin
ForNow16-Jan-23 8:09
ForNow16-Jan-23 8:09 
AnswerRe: Heap Corruption Durning Streamin think I found it Pin
ForNow16-Jan-23 16:20
ForNow16-Jan-23 16:20 
GeneralRe: Heap Corruption Durning Streamin think I found it Pin
jschell17-Jan-23 4:12
jschell17-Jan-23 4:12 
GeneralRe: Heap Corruption Durning Streamin think I found it Pin
ForNow17-Jan-23 4:17
ForNow17-Jan-23 4:17 
QuestionWhy #if 0 ... #endif Pin
Member 1496877115-Jan-23 15:45
Member 1496877115-Jan-23 15:45 
AnswerRe: Why #if 0 ... #endif Pin
Mircea Neacsu15-Jan-23 15:57
Mircea Neacsu15-Jan-23 15:57 
GeneralRe: Why #if 0 ... #endif Pin
Member 1496877115-Jan-23 16:43
Member 1496877115-Jan-23 16:43 
GeneralRe: Why #if 0 ... #endif Pin
CPallini15-Jan-23 20:36
mveCPallini15-Jan-23 20:36 
QuestionWhere does this .exe store its pane layout? Pin
Bardo Mueller15-Jan-23 9:09
Bardo Mueller15-Jan-23 9:09 

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.