Click here to Skip to main content
15,397,224 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why can't I print my watermark in chrome and edge? Pin
Randor 3-Dec-20 8:29
professional Randor 3-Dec-20 8:29 
Questionto bool or not to bool? Pin
Member 1498043325-Nov-20 8:36
MemberMember 1498043325-Nov-20 8:36 
AnswerRe: to bool or not to bool? Pin
Mircea Neacsu25-Nov-20 9:10
mvaMircea Neacsu25-Nov-20 9:10 
GeneralRe: to bool or not to bool? Pin
Member 1498043325-Nov-20 17:44
MemberMember 1498043325-Nov-20 17:44 
AnswerRe: to bool or not to bool? Pin
Mircea Neacsu25-Nov-20 17:55
mvaMircea Neacsu25-Nov-20 17:55 
AnswerRe: to bool or not to bool? Pin
Daniel Pfeffer26-Nov-20 7:17
professionalDaniel Pfeffer26-Nov-20 7:17 
QuestionEDITED Using template in C++ - run time error Pin
Member 1498043323-Nov-20 6:07
MemberMember 1498043323-Nov-20 6:07 
AnswerRe: Using template in C++ Pin
Richard MacCutchan23-Nov-20 6:25
mveRichard MacCutchan23-Nov-20 6:25 
Member 14980433 wrote:
is "class variable" why do I have to "initialize " it again in the method?
You don't. What you have done is to create a second local variable inside that method with the same name as the class level one. Change the code inside the method to just:
C++
information_main = QBluetoothLocalDevice::allDevices();

The error message is less easy to diagnose, so you need to use the debugger to check what value it is when the error occurs.
GeneralRe: Using template in C++ Pin
Member 1498043324-Nov-20 14:34
MemberMember 1498043324-Nov-20 14:34 
GeneralRe: Using template in C++ Pin
Dave Kreskowiak24-Nov-20 19:01
mveDave Kreskowiak24-Nov-20 19:01 
GeneralRe: Using template in C++ Pin
Richard MacCutchan24-Nov-20 22:13
mveRichard MacCutchan24-Nov-20 22:13 
GeneralRe: Using template in C++ Pin
Member 1498043325-Nov-20 6:58
MemberMember 1498043325-Nov-20 6:58 
GeneralRe: Using template in C++ Pin
jeron125-Nov-20 7:23
Memberjeron125-Nov-20 7:23 
GeneralRe: Using template in C++ Pin
Richard MacCutchan25-Nov-20 7:42
mveRichard MacCutchan25-Nov-20 7:42 
GeneralRe: Using template in C++ Pin
Member 1498043325-Nov-20 8:53
MemberMember 1498043325-Nov-20 8:53 
GeneralRe: Using template in C++ Pin
Richard MacCutchan25-Nov-20 9:21
mveRichard MacCutchan25-Nov-20 9:21 
AnswerRe: Using template in C++ Pin
jeron123-Nov-20 6:41
Memberjeron123-Nov-20 6:41 
GeneralRe: Using template in C++ Pin
Member 1498043324-Nov-20 14:27
MemberMember 1498043324-Nov-20 14:27 
GeneralRe: Using template in C++ Pin
jeron124-Nov-20 14:42
Memberjeron124-Nov-20 14:42 
GeneralRe: Using template in C++ Pin
Member 1498043325-Nov-20 6:43
MemberMember 1498043325-Nov-20 6:43 
GeneralRe: Using template in C++ Pin
Richard MacCutchan25-Nov-20 7:57
mveRichard MacCutchan25-Nov-20 7:57 
GeneralRe: Using template in C++ Pin
Victor Nijegorodov25-Nov-20 9:28
MemberVictor Nijegorodov25-Nov-20 9:28 
AnswerRe: EDITED Using template in C++ - run time error Pin
Member 1498043325-Nov-20 17:39
MemberMember 1498043325-Nov-20 17:39 
GeneralRe: EDITED Using template in C++ - run time error Pin
Richard MacCutchan26-Nov-20 0:05
mveRichard MacCutchan26-Nov-20 0:05 
AnswerRe: EDITED Using template in C++ - run time error Pin
Victor Nijegorodov26-Nov-20 1:34
MemberVictor Nijegorodov26-Nov-20 1:34 

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.