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

C / C++ / MFC

 
GeneralRe: Where Do I Add the Filters used for File->Open? Pin
David Crow16-Jun-03 4:34
David Crow16-Jun-03 4:34 
GeneralProgrammatically installing a modem using Win32 API Pin
Ajith Kumar16-Jun-03 2:46
Ajith Kumar16-Jun-03 2:46 
GeneralMeasuring time of execution Pin
affzan16-Jun-03 2:04
affzan16-Jun-03 2:04 
GeneralRe: Measuring time of execution Pin
alex.barylski16-Jun-03 2:23
alex.barylski16-Jun-03 2:23 
GeneralRe: Measuring time of execution Pin
peterchen16-Jun-03 2:26
peterchen16-Jun-03 2:26 
GeneralRe: Measuring time of execution Pin
Tarundeep Singh Kalra16-Jun-03 3:09
Tarundeep Singh Kalra16-Jun-03 3:09 
GeneralRe: Measuring time of execution Pin
Hosam Aly Mahmoud16-Jun-03 5:48
Hosam Aly Mahmoud16-Jun-03 5:48 
Generalthe way to access FileSystemObject Pin
Krisna Adityawan16-Jun-03 1:54
Krisna Adityawan16-Jun-03 1:54 
I have 2 program listings as a function in VB6. I want that function run in C++ Builder6, but i confuseConfused | :confused: the way to access FileSystemObject and type, DateLastModified of a file and to initiate interval variable with the type Date

//--------------------------------------------------------------------------
Function del()
Dim a As FileSystemObject
Dim d As Folder
Dim c As file

Set a = New FileSystemObject

Set d = a.GetFolder("d:\oracle\admin\" & HOST.Text & "\udump\")
For Each c In d.Files
If c.Type = "TRC File" Then
c.Delete True
End If
Next

End Function

//-----------------------------------------------------------------------------
Function newest() As file
Dim a As FileSystemObject
Dim d As Folder
Dim c As file
Dim interval As Date

interval = #12/12/2012#
Set a = New FileSystemObject

Set d = a.GetFolder("d:\oracle\admin\" & HOST.Text & "\udump\")
For Each c In d.Files
If (interval > (Now() - c.DateLastModified)) Then
interval = (Now() - c.DateLastModified)
If c.Type = "TRC File" Then
Set newest = c
End If
End If
Next

End Function
//--------------------------------------------------------------------------

Thx for helping me;)
GeneralGetting user information Pin
abhinarulkar16-Jun-03 1:49
abhinarulkar16-Jun-03 1:49 
GeneralRe: Getting user information Pin
David Crow16-Jun-03 3:16
David Crow16-Jun-03 3:16 
GeneraltAB CONTROL Pin
vcseeker16-Jun-03 1:36
vcseeker16-Jun-03 1:36 
GeneralRe: tAB CONTROL Pin
David Crow16-Jun-03 3:47
David Crow16-Jun-03 3:47 
GeneralRe: tAB CONTROL Pin
vcseeker16-Jun-03 18:00
vcseeker16-Jun-03 18:00 
GeneralRe: tAB CONTROL Pin
vcseeker17-Jun-03 0:45
vcseeker17-Jun-03 0:45 
GeneralRe: tAB CONTROL Pin
Joan M16-Jun-03 5:16
professionalJoan M16-Jun-03 5:16 
GeneralRe: tAB CONTROL Pin
vcseeker16-Jun-03 17:59
vcseeker16-Jun-03 17:59 
GeneralRe: tAB CONTROL Pin
vcseeker17-Jun-03 0:45
vcseeker17-Jun-03 0:45 
GeneralRe: tAB CONTROL Pin
Joan M17-Jun-03 0:55
professionalJoan M17-Jun-03 0:55 
GeneralRe: tAB CONTROL Pin
vcseeker17-Jun-03 2:27
vcseeker17-Jun-03 2:27 
GeneralRe: tAB CONTROL Pin
Joan M17-Jun-03 21:40
professionalJoan M17-Jun-03 21:40 
GeneralRe: tAB CONTROL Pin
vcseeker18-Jun-03 1:41
vcseeker18-Jun-03 1:41 
GeneralProblem with displaying images Pin
Franz Klein16-Jun-03 1:10
Franz Klein16-Jun-03 1:10 
GeneralLint-like .h-file tool Pin
Gisle Vanem16-Jun-03 0:12
Gisle Vanem16-Jun-03 0:12 
GeneralRe: Lint-like .h-file tool Pin
Franz Klein16-Jun-03 0:41
Franz Klein16-Jun-03 0:41 
GeneralRe: Lint-like .h-file tool Pin
Ryan Binns16-Jun-03 1:10
Ryan Binns16-Jun-03 1:10 

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.