Click here to Skip to main content
15,791,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to know if there is a valid session running on the machine or not ? Pin
Kushagra Tiwari28-Oct-09 5:34
Kushagra Tiwari28-Oct-09 5:34 
Questionhow to get the file or folder name which is selected by mouse Pin
Member 211485228-Oct-09 0:07
Member 211485228-Oct-09 0:07 
AnswerRe: how to get the file or folder name which is selected by mouse Pin
Richard MacCutchan28-Oct-09 0:24
mveRichard MacCutchan28-Oct-09 0:24 
AnswerRe: how to get the file or folder name which is selected by mouse Pin
Adam Roderick J28-Oct-09 1:19
Adam Roderick J28-Oct-09 1:19 
QuestionRe: how to get the file or folder name which is selected by mouse Pin
Randor 28-Oct-09 1:50
professional Randor 28-Oct-09 1:50 
AnswerRe: how to get the file or folder name which is selected by mouse Pin
Member 211485228-Oct-09 1:52
Member 211485228-Oct-09 1:52 
GeneralRe: how to get the file or folder name which is selected by mouse Pin
Randor 28-Oct-09 1:59
professional Randor 28-Oct-09 1:59 
QuestionName that pattern or patterns... Pin
alex.barylski27-Oct-09 22:12
alex.barylski27-Oct-09 22:12 
You know that helper macro in MFC (pardon my ignorance but I haven't used MFC in probalby 6-7 years) that is used for creating object at runtime, used in Views, I think it's RUNTIME_CLASS or something???

What is the name of the closest pattern for that implementation, obviously it's not a singleton and it's not quite a factory either, or is it?

I am implementing (in another language) a object which does:

1. Prevents direct instantiation by virtue of a private constructor
2. The second object which is used to create the said oibject manages the instances to limit only one per class

So I get the benefits of a singleton while still honoring inversion of control or DIP. Without the global introduced using a singleton.

Cheers,
Alex
AnswerRe: Name that pattern or patterns... Pin
Randor 27-Oct-09 23:18
professional Randor 27-Oct-09 23:18 
GeneralRe: Name that pattern or patterns... Pin
alex.barylski28-Oct-09 6:09
alex.barylski28-Oct-09 6:09 
GeneralRe: Name that pattern or patterns... Pin
Randor 28-Oct-09 7:12
professional Randor 28-Oct-09 7:12 
GeneralRe: Name that pattern or patterns... Pin
alex.barylski28-Oct-09 7:42
alex.barylski28-Oct-09 7:42 
QuestionDisabling Restore button of a window Pin
Deepu Antony27-Oct-09 21:06
Deepu Antony27-Oct-09 21:06 
AnswerRe: Disabling Restore button of a window Pin
Randor 27-Oct-09 21:27
professional Randor 27-Oct-09 21:27 
GeneralDisabling Restore option(Minimize,Maximize ,Close) of a window Pin
Deepu Antony27-Oct-09 21:43
Deepu Antony27-Oct-09 21:43 
GeneralRe: Disabling Restore option(Minimize,Maximize ,Close) of a window Pin
Randor 27-Oct-09 22:53
professional Randor 27-Oct-09 22:53 
GeneralRe: Disabling Restore option(Minimize,Maximize ,Close) of a window Pin
Deepu Antony28-Oct-09 0:43
Deepu Antony28-Oct-09 0:43 
GeneralRe: Disabling Restore option(Minimize,Maximize ,Close) of a window Pin
Randor 28-Oct-09 7:18
professional Randor 28-Oct-09 7:18 
GeneralRe: Disabling Restore option(Minimize,Maximize ,Close) of a window Pin
Deepu Antony28-Oct-09 21:42
Deepu Antony28-Oct-09 21:42 
GeneralRe: Disabling Restore option(Minimize,Maximize ,Close) of a window Pin
Randor 28-Oct-09 23:04
professional Randor 28-Oct-09 23:04 
QuestionDrawing in DC(device context) c++,MFC Pin
tibbasultanpur27-Oct-09 20:41
tibbasultanpur27-Oct-09 20:41 
AnswerRe: Drawing in DC(device context) c++,MFC Pin
Naveen27-Oct-09 20:54
Naveen27-Oct-09 20:54 
QuestionMaximum number to split any file. Pin
Le@rner27-Oct-09 20:35
Le@rner27-Oct-09 20:35 
AnswerRe: Maximum number to split any file. Pin
Randor 27-Oct-09 21:30
professional Randor 27-Oct-09 21:30 
GeneralRe: Maximum number to split any file. Pin
Le@rner27-Oct-09 21:36
Le@rner27-Oct-09 21:36 

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.