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

C / C++ / MFC

 
GeneralRe: CreateWindow Pin
Nick Armstrong14-Sep-01 3:59
Nick Armstrong14-Sep-01 3:59 
GeneralRe: CreateWindow Pin
Tomasz Sowinski14-Sep-01 4:18
Tomasz Sowinski14-Sep-01 4:18 
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 
May I suggest you use a struct holding the two dates just like this:
typedef struct{
  COleDateTime firstDateTime;
  COleDateTime secondDateTime;
}PairCOleDateTime;
and have your function return a PairCOleDateTime instead of a pointer. This way you get rid of all sorts of allocation/deallocation problems, and the extra cost of returning this struct by value should be negligible for most purposes.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
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 
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 

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.