Click here to Skip to main content
15,913,941 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Destroying modeless dialog containing child modeless dialogs Pin
Ryan Binns8-Mar-05 17:58
Ryan Binns8-Mar-05 17:58 
GeneralTab Interface Pin
poiut8-Mar-05 8:59
poiut8-Mar-05 8:59 
QuestionGood library to parse and generate XML documents ? Pin
GuimaSun8-Mar-05 7:22
GuimaSun8-Mar-05 7:22 
AnswerRe: Good library to parse and generate XML documents ? Pin
Ravi Bhavnani8-Mar-05 9:05
professionalRavi Bhavnani8-Mar-05 9:05 
GeneralCompiling a multithreaded program Pin
MALDATA8-Mar-05 6:41
MALDATA8-Mar-05 6:41 
GeneralRe: Compiling a multithreaded program Pin
Mike Dimmick8-Mar-05 7:51
Mike Dimmick8-Mar-05 7:51 
GeneralRe: Compiling a multithreaded program Pin
MALDATA8-Mar-05 11:19
MALDATA8-Mar-05 11:19 
GeneralConvert Visual Basic to Visual C++ Pin
ido2338-Mar-05 4:40
ido2338-Mar-05 4:40 
Hi everyone
What I have is a vb program that I am converting to visual C++
iv done most of the convert but am having a problem with this one. All I want to do is when my VC++ program runs that it show the current
Month Day Year in seperate boxes here is the vb code.

Public Sub today()

'Get today's date from system

Dim currentdate, tempDay, tempMonth, tempYear As String
Dim tempDate As String
Dim location, StrLen As Integer
Dim convert_month As String

tempDate = Date$
tempMonth = Month(CDate(tempDate))
tempDay = Day(CDate(tempDate))
tempYear = Year(CDate(tempDate))
currentdate = tempMonth & "/" & tempDay & "/" & tempYear

StrLen = Len(currentdate)
location = InStr(currentdate, "/")
txtMonth.Text = Left(currentdate, location - 1)
convert_month = Convert_Date_Int2Str(txtMonth.Text)
txtMonth.Text = convert_month
currentdate = Right(currentdate, StrLen - location)
location = InStr(currentdate, "/")
txtDay.Text = Left(currentdate, location - 1)
currentdate = Right(currentdate, 2)
If (CInt(currentdate) < 90) Then
txtyear.Text = "20" & currentdate
Else
txtyear.Text = "19" & currentdate
End If
'
End Sub

any help is appreciated OMG | :OMG:
GeneralRe: Convert Visual Basic to Visual C++ Pin
bcemick8-Mar-05 6:46
bcemick8-Mar-05 6:46 
Questionhiding a dialog? Pin
ThinkingPrometheus8-Mar-05 4:30
ThinkingPrometheus8-Mar-05 4:30 
AnswerRe: hiding a dialog? Pin
namaskaaram8-Mar-05 4:51
namaskaaram8-Mar-05 4:51 
QuestionFit a dialog into a view? Pin
rgchezhian8-Mar-05 4:20
rgchezhian8-Mar-05 4:20 
AnswerRe: Fit a dialog into a view? Pin
Chris Losinger8-Mar-05 5:39
professionalChris Losinger8-Mar-05 5:39 
GeneralRe: Fit a dialog into a view? Pin
rgchezhian8-Mar-05 22:06
rgchezhian8-Mar-05 22:06 
QuestionHow to call a constructor in another constructor Pin
Member 341378-Mar-05 4:13
Member 341378-Mar-05 4:13 
AnswerRe: How to call a constructor in another constructor Pin
namaskaaram8-Mar-05 4:28
namaskaaram8-Mar-05 4:28 
AnswerRe: How to call a constructor in another constructor Pin
CP Visitor8-Mar-05 5:40
CP Visitor8-Mar-05 5:40 
GeneralRe: How to call a constructor in another constructor Pin
TheGreatAndPowerfulOz8-Mar-05 6:20
TheGreatAndPowerfulOz8-Mar-05 6:20 
GeneralRe: How to call a constructor in another constructor Pin
basementman8-Mar-05 7:09
basementman8-Mar-05 7:09 
GeneralRe: How to call a constructor in another constructor Pin
Anonymous8-Mar-05 11:48
Anonymous8-Mar-05 11:48 
GeneralRe: How to call a constructor in another constructor Pin
basementman8-Mar-05 12:30
basementman8-Mar-05 12:30 
GeneralRe: How to call a constructor in another constructor Pin
Andrew Walker8-Mar-05 11:44
Andrew Walker8-Mar-05 11:44 
GeneralRe: How to call a constructor in another constructor Pin
TheGreatAndPowerfulOz8-Mar-05 17:00
TheGreatAndPowerfulOz8-Mar-05 17:00 
GeneralRe: How to call a constructor in another constructor Pin
Mouse on Mars8-Mar-05 23:13
sussMouse on Mars8-Mar-05 23:13 
GeneralRe: How to call a constructor in another constructor Pin
TheGreatAndPowerfulOz9-Mar-05 14:45
TheGreatAndPowerfulOz9-Mar-05 14:45 

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.