Click here to Skip to main content
15,441,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionhow to resolve and understand how / why it works or not Pin
Member 1496877112-Aug-22 12:28
MemberMember 1496877112-Aug-22 12:28 
AnswerRe: how to resolve and understand how / why it works or not Pin
Richard MacCutchan12-Aug-22 22:12
mveRichard MacCutchan12-Aug-22 22:12 
GeneralRe: how to resolve and understand how / why it works or not Pin
Member 1496877113-Aug-22 4:09
MemberMember 1496877113-Aug-22 4:09 
GeneralRe: how to resolve and understand how / why it works or not Pin
Richard MacCutchan13-Aug-22 4:28
mveRichard MacCutchan13-Aug-22 4:28 
GeneralRe: how to resolve and understand how / why it works or not Pin
Member 1496877113-Aug-22 6:12
MemberMember 1496877113-Aug-22 6:12 
GeneralRe: how to resolve and understand how / why it works or not Pin
Richard MacCutchan13-Aug-22 6:25
mveRichard MacCutchan13-Aug-22 6:25 
GeneralRe: how to resolve and understand how / why it works or not Pin
Member 1496877113-Aug-22 8:59
MemberMember 1496877113-Aug-22 8:59 
Question#define won't work in QStringList , gives no error Pin
Member 1496877111-Aug-22 11:18
MemberMember 1496877111-Aug-22 11:18 
1. Why putting #define in char "string" won't process the "command" to "start a new process" , however,
compiler is not giving an error ?
In debug mode I have literal BT_DATABASE_TEST in "command",
2. I need to make the primary text (*.txt) file a variable - how ?


#define BT_DATABASE_TEST  "../../BT_DATABASE/BluetoothDatabase.txt"
    const char *command = "bluetoothctl  show | tee ../../BT_DATABASE/BluetoothDatabase.txt | tee /tmp/temp";
    //const char *command = "bluetoothctl show | tee BT_DATABASE_TEST | tee /tmp/temp"; won't work 
     QP->start("/bin/sh", QStringList() << "-c" << command);

AnswerRe: #define won't work in QStringList , gives no error Pin
Mircea Neacsu11-Aug-22 11:57
mvaMircea Neacsu11-Aug-22 11:57 
GeneralRe: #define won't work in QStringList , gives no error Pin
Member 1496877111-Aug-22 16:43
MemberMember 1496877111-Aug-22 16:43 
GeneralRe: #define won't work in QStringList , gives no error Pin
David Crow11-Aug-22 16:03
MemberDavid Crow11-Aug-22 16:03 
Questionmanaging objects derived from the same base class using a container Pin
Calin Cali10-Aug-22 3:29
MemberCalin Cali10-Aug-22 3:29 
AnswerRe: managing objects derived from the same base class using a container Pin
Mircea Neacsu10-Aug-22 3:55
mvaMircea Neacsu10-Aug-22 3:55 
AnswerRe: managing objects derived from the same base class using a container Pin
Greg Utas10-Aug-22 3:56
mveGreg Utas10-Aug-22 3:56 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Cali10-Aug-22 6:34
MemberCalin Cali10-Aug-22 6:34 
AnswerRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan10-Aug-22 4:01
mveRichard MacCutchan10-Aug-22 4:01 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Cali10-Aug-22 6:33
MemberCalin Cali10-Aug-22 6:33 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan10-Aug-22 6:40
mveRichard MacCutchan10-Aug-22 6:40 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Cali10-Aug-22 11:14
MemberCalin Cali10-Aug-22 11:14 
GeneralRe: managing objects derived from the same base class using a container Pin
k505410-Aug-22 13:01
mvek505410-Aug-22 13:01 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Cali10-Aug-22 21:25
MemberCalin Cali10-Aug-22 21:25 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan10-Aug-22 21:10
mveRichard MacCutchan10-Aug-22 21:10 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Cali11-Aug-22 0:38
MemberCalin Cali11-Aug-22 0:38 
GeneralRe: managing objects derived from the same base class using a container Pin
Richard MacCutchan11-Aug-22 0:39
mveRichard MacCutchan11-Aug-22 0:39 
GeneralRe: managing objects derived from the same base class using a container Pin
Calin Cali11-Aug-22 0:57
MemberCalin Cali11-Aug-22 0:57 

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.