Click here to Skip to main content
16,007,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CreateWindow Pin
Nick Armstrong14-Sep-01 4:30
Nick Armstrong14-Sep-01 4:30 
GeneralRe: CreateWindow Pin
uzziah012-Feb-09 11:57
uzziah012-Feb-09 11:57 
Generalallocate memory Pin
Gérald Mercet11-Sep-01 23:41
Gérald Mercet11-Sep-01 23:41 
GeneralRe: allocate memory Pin
Bernhard12-Sep-01 0:09
Bernhard12-Sep-01 0:09 
GeneralRe: allocate memory Pin
Gérald Mercet12-Sep-01 0:16
Gérald Mercet12-Sep-01 0:16 
GeneralRe: allocate memory Pin
Joaquín M López Muñoz12-Sep-01 0:27
Joaquín M López Muñoz12-Sep-01 0:27 
GeneralRe: allocate memory Pin
Gérald Mercet12-Sep-01 0:35
Gérald Mercet12-Sep-01 0:35 
GeneralRe: allocate memory Pin
Bernhard12-Sep-01 0:27
Bernhard12-Sep-01 0:27 
void GetTime(COleDateTime* pDate1, COleDateTime* pDate2)
{
pDate1 = new COleDateTime();
pDate2 = new COleDateTime();

//Fill the Objects with Data or do whatever you want to do with them
}
//Your Main Function
void WaWa()
{
COleDateTime* pDate1 = 0;
ColeDateTime* pDate2 = 0;

GetTime (pDate1, pDate2);

//Do whatever you want to do with em..
pDate1->GetTime();
pDate2->GetTime();

//if you´ve finished.. get rid of em..
delete pDate1;
delete pDate2;
}

Another version would be to allocate them in the main function (WaWa).. but that´s just an answer of how you would like to do this..

i hope this helped you..
Bernhard


- I heard if you play the Windows CD backwards, you get a satanic message.
- That's nothing, if you play it forward, it installs Windows
GeneralRe: allocate memory Pin
Gérald Mercet12-Sep-01 0:36
Gérald Mercet12-Sep-01 0:36 
GeneralRe: allocate memory Pin
Tomasz Sowinski12-Sep-01 0:57
Tomasz Sowinski12-Sep-01 0:57 
GeneralRe: allocate memory Pin
Steen Krogsgaard12-Sep-01 2:36
Steen Krogsgaard12-Sep-01 2:36 
GeneralRe: allocate memory Pin
Gérald Mercet12-Sep-01 3:15
Gérald Mercet12-Sep-01 3:15 
GeneralRe: allocate memory Pin
Steen Krogsgaard12-Sep-01 3:59
Steen Krogsgaard12-Sep-01 3:59 
GeneralRe: allocate memory Pin
Gérald Mercet12-Sep-01 5:03
Gérald Mercet12-Sep-01 5:03 
GeneralRe: allocate memory Pin
Steen Krogsgaard12-Sep-01 21:37
Steen Krogsgaard12-Sep-01 21:37 
GeneralRe: allocate memory Pin
Gérald Mercet12-Sep-01 23:32
Gérald Mercet12-Sep-01 23:32 
GeneralRe: allocate memory Pin
Steen Krogsgaard12-Sep-01 23:57
Steen Krogsgaard12-Sep-01 23:57 
GeneralRe: allocate memory Pin
Gérald Mercet13-Sep-01 5:56
Gérald Mercet13-Sep-01 5:56 
GeneralRe: allocate memory Pin
Steen Krogsgaard13-Sep-01 21:20
Steen Krogsgaard13-Sep-01 21:20 
GeneralRe: allocate memory Pin
Gérald Mercet13-Sep-01 22:51
Gérald Mercet13-Sep-01 22:51 
GeneralRe: allocate memory Pin
Steen Krogsgaard13-Sep-01 23:00
Steen Krogsgaard13-Sep-01 23:00 
GeneralRe: allocate memory Pin
Gérald Mercet13-Sep-01 23:39
Gérald Mercet13-Sep-01 23:39 
GeneralRe: allocate memory Pin
Steen Krogsgaard13-Sep-01 23:48
Steen Krogsgaard13-Sep-01 23:48 
GeneralRe: allocate memory Pin
Gérald Mercet14-Sep-01 2:37
Gérald Mercet14-Sep-01 2:37 
GeneralRe: allocate memory Pin
Steen Krogsgaard14-Sep-01 2:53
Steen Krogsgaard14-Sep-01 2:53 

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.