Click here to Skip to main content
15,890,897 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: I've been stuck for two days on nothing Pin
PIEBALDconsult23-Jun-21 13:35
mvePIEBALDconsult23-Jun-21 13:35 
GeneralRe: I've been stuck for two days on nothing Pin
Gary R. Wheeler23-Jun-21 13:53
Gary R. Wheeler23-Jun-21 13:53 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 13:57
mvahoney the codewitch23-Jun-21 13:57 
GeneralRe: I've been stuck for two days on nothing Pin
Gary R. Wheeler23-Jun-21 14:09
Gary R. Wheeler23-Jun-21 14:09 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 14:23
mvahoney the codewitch23-Jun-21 14:23 
GeneralRe: I've been stuck for two days on nothing Pin
Marc Clifton23-Jun-21 15:54
mvaMarc Clifton23-Jun-21 15:54 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 16:22
mvahoney the codewitch23-Jun-21 16:22 
GeneralRe: I've been stuck for two days on nothing Pin
Greg Utas23-Jun-21 15:56
professionalGreg Utas23-Jun-21 15:56 
Without code to go on, this is very speculative. Even code might not help, because of the time that would be needed to study it, trying to infer the design rationale before providing what might have a shot at being useful unsolicited advice.

But why should any of that be a barrier? Smile | :)

1. How about returning void? The user must know they're switching modes, so they should adjust accordingly.
2. If switching modes can fail, even because of bad arguments, then a bool would be better.
3. If the previous mode can no longer be used, how about returning the new one? Can't it actually be returned?
4. There's also a "draw target". How about returning that?
5. I assume there's a "handle" to which clients write, and that it's polymorphic. So can the new one be returned?
Robust Services Core | Software Techniques for Lemmings | Articles
The fox knows many things, but the hedgehog knows one big thing.

GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 16:15
mvahoney the codewitch23-Jun-21 16:15 
GeneralRe: I've been stuck for two days on nothing Pin
NeverJustHere23-Jun-21 18:08
NeverJustHere23-Jun-21 18:08 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch23-Jun-21 18:36
mvahoney the codewitch23-Jun-21 18:36 
GeneralRe: I've been stuck for two days on nothing Pin
NeverJustHere23-Jun-21 23:53
NeverJustHere23-Jun-21 23:53 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 1:20
mvahoney the codewitch24-Jun-21 1:20 
GeneralRe: I've been stuck for two days on nothing Pin
ElectronProgrammer25-Jun-21 12:33
ElectronProgrammer25-Jun-21 12:33 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch25-Jun-21 15:21
mvahoney the codewitch25-Jun-21 15:21 
GeneralRe: I've been stuck for two days on nothing Pin
Greg Utas24-Jun-21 0:32
professionalGreg Utas24-Jun-21 0:32 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 1:24
mvahoney the codewitch24-Jun-21 1:24 
GeneralRe: I've been stuck for two days on nothing Pin
Greg Utas24-Jun-21 1:41
professionalGreg Utas24-Jun-21 1:41 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 1:51
mvahoney the codewitch24-Jun-21 1:51 
GeneralRe: I've been stuck for two days on nothing Pin
Member 1419238225-Jun-21 3:42
Member 1419238225-Jun-21 3:42 
GeneralRe: I've been stuck for two days on nothing Pin
honey the codewitch25-Jun-21 4:36
mvahoney the codewitch25-Jun-21 4:36 
QuestionRe: I've been stuck for two days on nothing Pin
CPallini24-Jun-21 2:21
mveCPallini24-Jun-21 2:21 
AnswerRe: I've been stuck for two days on nothing Pin
honey the codewitch24-Jun-21 6:09
mvahoney the codewitch24-Jun-21 6:09 
GeneralRe: I've been stuck for two days on nothing Pin
obeobe24-Jun-21 22:58
obeobe24-Jun-21 22:58 
GeneralRe: I've been stuck for two days on nothing Pin
AnotherKen25-Jun-21 17:54
professionalAnotherKen25-Jun-21 17:54 

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.