Click here to Skip to main content
15,509,982 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
PinnedHOW TO ANSWER A QUESTION PinPopular
Chris Maunder16-Jul-09 4:09
cofounderChris Maunder16-Jul-09 4:09 
PinnedHow to get an answer to your question PinPopular
Chris Maunder16-Jul-09 4:05
cofounderChris Maunder16-Jul-09 4:05 
QuestionHelp with STL list::insert Pin
ForNow21-Sep-22 2:54
ForNow21-Sep-22 2:54 
AnswerRe: Help with STL list::insert Pin
Graham Breach21-Sep-22 22:40
Graham Breach21-Sep-22 22:40 
GeneralRe: Help with STL list::insert Pin
ForNow22-Sep-22 2:35
ForNow22-Sep-22 2:35 
GeneralRe: Help with STL list::insert Pin
Graham Breach22-Sep-22 4:40
Graham Breach22-Sep-22 4:40 
GeneralRe: Help with STL list::insert Pin
ForNow22-Sep-22 5:31
ForNow22-Sep-22 5:31 
GeneralRe: Help with STL list::insert Pin
Graham Breach22-Sep-22 5:59
Graham Breach22-Sep-22 5:59 
GeneralRe: Help with STL list::insert Pin
ForNow22-Sep-22 6:11
ForNow22-Sep-22 6:11 
AnswerRe: Help with STL list::insert Pin
Richard MacCutchan22-Sep-22 5:51
mveRichard MacCutchan22-Sep-22 5:51 
GeneralRe: Help with STL list::insert Pin
ForNow22-Sep-22 10:30
ForNow22-Sep-22 10:30 
GeneralRe: Help with STL list::insert Pin
Richard MacCutchan22-Sep-22 23:28
mveRichard MacCutchan22-Sep-22 23:28 
GeneralRe: Help with STL list::insert Pin
ForNow23-Sep-22 2:45
ForNow23-Sep-22 2:45 
GeneralRe: Help with STL list::insert Pin
Richard MacCutchan23-Sep-22 2:55
mveRichard MacCutchan23-Sep-22 2:55 
GeneralRe: Help with STL list::insert Pin
ForNow23-Sep-22 3:20
ForNow23-Sep-22 3:20 
GeneralRe: Help with STL list::insert Pin
Richard MacCutchan23-Sep-22 4:16
mveRichard MacCutchan23-Sep-22 4:16 
GeneralRe: Help with STL list::insert Pin
ForNow23-Sep-22 5:11
ForNow23-Sep-22 5:11 
GeneralRe: Help with STL list::insert Pin
Richard MacCutchan23-Sep-22 5:38
mveRichard MacCutchan23-Sep-22 5:38 
GeneralRe: Help with STL list::insert Pin
ForNow23-Sep-22 5:48
ForNow23-Sep-22 5:48 
Questionerror: cannot call member function ‘bool QRegExp::exactMatch(const QString&) const’ without object Pin
Member 1496877119-Jul-22 6:14
Member 1496877119-Jul-22 6:14 
I do not understand why I am getting this error.
Can somebody smarter than me explain it and help me solve it.

Does it have anything to do the code is a shared library?
When I bypass the if() code debugger shows valid "source".
Thanks

CODE

QString BT_Utility_Library::Write_Data (
QString source, // data to write
QString destination, // to where - filename,
QTextEdit *OUTPUT_TextEdit, // to where as text - TAb
QTextEdit *TRACE_TextEdit // debug / trace as text
)
{
// TODO just a placeholder for now not sure who is writing the TAB
QString text = ""; // until bug fixed local
#ifdef TASK
//ui->textEdit_19->clear();
text += "\n\tSUB_TASK \tupdate Commmand TAB or database ... \n ";
text += Q_FUNC_INFO ;
//text += "\nCommand ";
//text += arg1;
text += "\n\t@line ";
text += QString::number(LINE);
//text += "\nLAST TASK CODED HERE ";
TRACE_TextEdit->append (text);
#endif
// validate OUTPUT_TextEdit
//bool QRegExp::exactMatch(OUTPUT_TextEdit); const
// CONVERT TO myTextEdit->plainText().isEmpty()

//#ifdef BYPASS
if(QRegExp::exactMatch(source))
{
// Command detected
#ifdef TASK
QColor color = QColor( "red" );
//ui->textEdit_19->clear();
text += "\n\tSUB_TASK \tCommand detected \n ";
text += Q_FUNC_INFO ;
//text += "\nCommand ";
//text += arg1;
text += "\n\t@line ";
text += QString::number(LINE);
//text += "\nLAST TASK CODED HERE ";
TRACE_TextEdit->append (text);
color = QColor( "black" );
#endif

}

// #endif
// read data back
return text;
};

ERROR

/mnt/MDI_RAID_5/MDI_WORK_COPY_FOLDER/MDI_BT_JULY_19_1/LoCAL_SOURCE/BT_Utility_Library/bt_utility_library.cpp:83: error: cannot call member function ‘bool QRegExp::exactMatch(const QString&) const’ without object
bt_utility_library.cpp: In member function ‘QString BT_Utility_Library::Write_Data(QString, QString, QTextEdit*, QTextEdit*)’:
bt_utility_library.cpp:83:26: error: cannot call member function ‘bool QRegExp::exactMatch(const QString&) const’ without object
83 | if(QRegExp::exactMatch(source))
| ~~~~~~~~~~~~~^~
AnswerRe: error: cannot call member function ‘bool QRegExp::exactMatch(const QString&) const’ without object Pin
jsc4219-Jul-22 7:35
professionaljsc4219-Jul-22 7:35 
Question/std:c++20 broke a template class Pin
Member 1567106212-Jun-22 11:07
Member 1567106212-Jun-22 11:07 
AnswerRe: /std:c++20 broke a template class Pin
longjmp24-Nov-22 3:59
longjmp24-Nov-22 3:59 
Questionhow to implement CButton as CListbox item Pin
rtischer82776-May-22 3:51
rtischer82776-May-22 3:51 
AnswerRe: how to implement CButton as CListbox item Pin
CHill606-May-22 6:12
mveCHill606-May-22 6:12 

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.