Click here to Skip to main content
15,926,857 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: the winsock problem Pin
led mike24-Jan-08 4:17
led mike24-Jan-08 4:17 
JokeRe: the winsock problem Pin
CPallini24-Jan-08 2:01
mveCPallini24-Jan-08 2:01 
JokeRe: the winsock problem Pin
Cedric Moonen24-Jan-08 2:14
Cedric Moonen24-Jan-08 2:14 
GeneralRe: the winsock problem Pin
CPallini24-Jan-08 2:21
mveCPallini24-Jan-08 2:21 
JokeRe: the winsock problem Pin
Luc Pattyn24-Jan-08 2:41
sitebuilderLuc Pattyn24-Jan-08 2:41 
JokeRe: the winsock problem Pin
CPallini24-Jan-08 3:03
mveCPallini24-Jan-08 3:03 
GeneralRe: the winsock problem Pin
Luc Pattyn24-Jan-08 3:45
sitebuilderLuc Pattyn24-Jan-08 3:45 
GeneralManipulating COleDateTime objects Pin
Cedric Moonen23-Jan-08 21:35
Cedric Moonen23-Jan-08 21:35 
Hello,

I'm banging my head on a problem that I first though will be easy to solve.
I have a date contained in a COleDateTime object and I would like to 'increment' it. For example, I would like to add one month, or two days, or 3 years, ... This is will always be one single component of the date (second, minute, hour, day, month or year) but this could overflow.

Suppose my date is 31 November 2007 and I would like to add two months to it, the result should be 31 January 2008.

I know that I can use the COleDateTimeSpan class but it only supports Days, hours and seconds, not months and years Sigh | :sigh: . And I really don't want to calculate the number of days that correspond to a month increase (being too variable).

Does anybody know how I can solve the problem ? Maybe by manipulating the wrapped DATE object (which correspond to a double) but I don't know exactly how to do that.

Cédric Moonen
Software developer

Charting control [v1.2]

GeneralRe: Manipulating COleDateTime objects Pin
CPallini23-Jan-08 22:06
mveCPallini23-Jan-08 22:06 
GeneralRe: Manipulating COleDateTime objects Pin
Cedric Moonen23-Jan-08 22:16
Cedric Moonen23-Jan-08 22:16 
GeneralRe: Manipulating COleDateTime objects Pin
CPallini23-Jan-08 22:35
mveCPallini23-Jan-08 22:35 
GeneralRe: Manipulating COleDateTime objects Pin
David Crow24-Jan-08 3:12
David Crow24-Jan-08 3:12 
GeneralRe: Manipulating COleDateTime objects Pin
Cedric Moonen24-Jan-08 3:29
Cedric Moonen24-Jan-08 3:29 
GeneralRe: Manipulating COleDateTime objects Pin
David Crow24-Jan-08 5:24
David Crow24-Jan-08 5:24 
Generalget wide character and multibyte character value Pin
George_George23-Jan-08 20:10
George_George23-Jan-08 20:10 
GeneralRe: get wide character and multibyte character value Pin
Nitheesh George23-Jan-08 22:49
Nitheesh George23-Jan-08 22:49 
GeneralRe: get wide character and multibyte character value Pin
George_George23-Jan-08 23:28
George_George23-Jan-08 23:28 
JokeRe: get wide character and multibyte character value Pin
CPallini23-Jan-08 23:34
mveCPallini23-Jan-08 23:34 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 1:31
George_George24-Jan-08 1:31 
QuestionRe: get wide character and multibyte character value Pin
CPallini24-Jan-08 1:47
mveCPallini24-Jan-08 1:47 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 2:00
George_George24-Jan-08 2:00 
GeneralRe: get wide character and multibyte character value Pin
CPallini24-Jan-08 2:19
mveCPallini24-Jan-08 2:19 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 14:19
George_George24-Jan-08 14:19 
GeneralRe: get wide character and multibyte character value Pin
CPallini24-Jan-08 21:03
mveCPallini24-Jan-08 21:03 
GeneralRe: get wide character and multibyte character value Pin
George_George24-Jan-08 21:23
George_George24-Jan-08 21:23 

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.