Click here to Skip to main content
15,884,099 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: registerhotkey function affects other applications when my app is still running Pin
Sauro Viti5-Aug-10 10:45
professionalSauro Viti5-Aug-10 10:45 
GeneralRe: registerhotkey function affects other applications when my app is still running Pin
Jayapal Chandran5-Aug-10 11:55
Jayapal Chandran5-Aug-10 11:55 
QuestionHow to get the Selected Item from CListControl Pin
Sakhalean4-Aug-10 20:30
Sakhalean4-Aug-10 20:30 
QuestionRe: How to get the Selected Item from CListControl Pin
CPallini4-Aug-10 21:04
mveCPallini4-Aug-10 21:04 
QuestionIs it ok to use uninitialized pointer? Pin
Sameerkumar Namdeo4-Aug-10 18:46
Sameerkumar Namdeo4-Aug-10 18:46 
AnswerRe: Is it ok to use uninitialized pointer? Pin
«_Superman_»4-Aug-10 19:15
professional«_Superman_»4-Aug-10 19:15 
GeneralRe: Is it ok to use uninitialized pointer? Pin
Rick York4-Aug-10 19:34
mveRick York4-Aug-10 19:34 
GeneralRe: Is it ok to use uninitialized pointer? [modified] Pin
Cedric Moonen4-Aug-10 20:48
Cedric Moonen4-Aug-10 20:48 
Rick York wrote:
I thought there must be an instance of an object to use a pointer to one.


If the function which is called do not access any members of the class, then it is "safe". But of cours it is absolutely bad practice.


Rick York wrote:
Even with a static member that is not the best syntax to use though.


This, on the other hand is perfectly acceptable.

I should take a coffee before answering questions on CP Smile | :) . This is not that acceptable, since the static function should accessed this way: ClassName::MethodName()
Cédric Moonen
Software developer

Charting control [v3.0]
OpenGL game tutorial in C++

modified on Thursday, August 5, 2010 3:07 AM

GeneralRe: Is it ok to use uninitialized pointer? Pin
CPallini4-Aug-10 20:57
mveCPallini4-Aug-10 20:57 
GeneralRe: Is it ok to use uninitialized pointer? Pin
Cedric Moonen4-Aug-10 21:07
Cedric Moonen4-Aug-10 21:07 
GeneralRe: Is it ok to use uninitialized pointer? Pin
CPallini4-Aug-10 21:15
mveCPallini4-Aug-10 21:15 
AnswerRe: Is it ok to use uninitialized pointer? [modified] Pin
bleedingfingers4-Aug-10 21:19
bleedingfingers4-Aug-10 21:19 
AnswerRe: Is it ok to use uninitialized pointer? Pin
Sameerkumar Namdeo4-Aug-10 23:17
Sameerkumar Namdeo4-Aug-10 23:17 
AnswerRe: Is it ok to use uninitialized pointer? Pin
MuraliKrishnaP5-Aug-10 9:44
MuraliKrishnaP5-Aug-10 9:44 
Questionwhy const pointer is NOT const? how to solve the problem? Pin
includeh104-Aug-10 13:12
includeh104-Aug-10 13:12 
AnswerRe: why const pointer is NOT const? how to solve the problem? Pin
KingsGambit4-Aug-10 17:02
KingsGambit4-Aug-10 17:02 
AnswerRe: why const pointer is NOT const? how to solve the problem? Pin
Aescleal5-Aug-10 0:02
Aescleal5-Aug-10 0:02 
QuestionHow to get physical memory size available to a process? Pin
Code-o-mat4-Aug-10 11:25
Code-o-mat4-Aug-10 11:25 
QuestionRe: How to get physical memory size available to a process? Pin
norish5-Aug-10 4:38
norish5-Aug-10 4:38 
AnswerRe: How to get physical memory size available to a process? Pin
Code-o-mat5-Aug-10 4:54
Code-o-mat5-Aug-10 4:54 
GeneralRe: How to get physical memory size available to a process? Pin
norish5-Aug-10 19:48
norish5-Aug-10 19:48 
GeneralRe: How to get physical memory size available to a process? Pin
Code-o-mat5-Aug-10 21:55
Code-o-mat5-Aug-10 21:55 
QuestionGet/Kill focus in MFC Pin
geoyar4-Aug-10 9:23
professionalgeoyar4-Aug-10 9:23 
AnswerRe: Get/Kill focus in MFC Pin
Code-o-mat4-Aug-10 11:15
Code-o-mat4-Aug-10 11:15 
GeneralRe: Get/Kill focus in MFC Pin
geoyar5-Aug-10 12:19
professionalgeoyar5-Aug-10 12:19 

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.