Click here to Skip to main content
15,898,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can increase a date by one day? Pin
Rajesh R Subramanian20-Oct-08 3:05
professionalRajesh R Subramanian20-Oct-08 3:05 
GeneralRe: How can increase a date by one day? Pin
Le@rner20-Oct-08 19:16
Le@rner20-Oct-08 19:16 
AnswerRe: How can increase a date by one day? [modified] Pin
CPallini20-Oct-08 3:04
mveCPallini20-Oct-08 3:04 
Questionwhy two snmp agent processes can not be run on same machine ? Pin
Sakthiu20-Oct-08 2:24
Sakthiu20-Oct-08 2:24 
Question[Message Deleted] Pin
anna mathew20-Oct-08 1:47
anna mathew20-Oct-08 1:47 
QuestionRe: Connecting to access database Pin
Rajesh R Subramanian20-Oct-08 1:51
professionalRajesh R Subramanian20-Oct-08 1:51 
QuestionRe: Connecting to access database Pin
David Crow20-Oct-08 2:47
David Crow20-Oct-08 2:47 
QuestionQuestion about classes Pin
akirilov20-Oct-08 1:44
akirilov20-Oct-08 1:44 
Hi guys,

I hope my question will be peace of cake for you. Here it is:

CmyClass cl; //CmyClass is defined elsewhere.<br />
<br />
How to define it, so I can create it in a function Init() and destroy it in function FreeAll()?


If I declare it in a function it will be created and destroyed within it.
If I declare it as a global variable, it will create it in the declaration (wherever this take place in the program).

Well, I can use 'CmyClass *cl', but in the code I will have to use '->' instead of '.', which ... makes me angry.

Is there another approach?
AnswerRe: Question about classes Pin
CPallini20-Oct-08 2:13
mveCPallini20-Oct-08 2:13 
GeneralRe: Question about classes Pin
akirilov20-Oct-08 2:29
akirilov20-Oct-08 2:29 
GeneralRe: Question about classes Pin
CPallini20-Oct-08 2:43
mveCPallini20-Oct-08 2:43 
GeneralRe: Question about classes Pin
akirilov20-Oct-08 2:51
akirilov20-Oct-08 2:51 
GeneralRe: Question about classes Pin
CPallini20-Oct-08 3:10
mveCPallini20-Oct-08 3:10 
GeneralRe: Question about classes Pin
akirilov20-Oct-08 3:30
akirilov20-Oct-08 3:30 
QuestionHow to get index of selected Tree Item Pin
Dhiraj kumar Saini20-Oct-08 1:10
Dhiraj kumar Saini20-Oct-08 1:10 
AnswerRe: How to get index of selected Tree Item Pin
David Crow20-Oct-08 2:49
David Crow20-Oct-08 2:49 
Questionhow to load bitmap into picture box and static box using MFC? Pin
puppya20-Oct-08 0:42
puppya20-Oct-08 0:42 
QuestionRe: how to load bitmap into picture box and static box using MFC? Pin
CPallini20-Oct-08 0:58
mveCPallini20-Oct-08 0:58 
QuestionFixed hard drive Pin
MsmVc20-Oct-08 0:40
MsmVc20-Oct-08 0:40 
AnswerRe: Fixed hard drive Pin
MsmVc20-Oct-08 1:00
MsmVc20-Oct-08 1:00 
QuestionAutomation of excel,word and powerpoint Pin
SRKSHOME20-Oct-08 0:17
SRKSHOME20-Oct-08 0:17 
AnswerRe: Automation of excel,word and powerpoint Pin
Jose David Pujo20-Oct-08 1:15
Jose David Pujo20-Oct-08 1:15 
QuestionSnapshot using USB PC Camera button Pin
sahoo_susanta20-Oct-08 0:06
sahoo_susanta20-Oct-08 0:06 
AnswerRe: Snapshot using USB PC Camera button PinPopular
Rajesh R Subramanian20-Oct-08 0:15
professionalRajesh R Subramanian20-Oct-08 0:15 
AnswerRe: Snapshot using USB PC Camera button Pin
Asmaa Khaled FCI11-Dec-09 8:00
Asmaa Khaled FCI11-Dec-09 8:00 

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.